mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
kvm: support TSC deadline MSR with subsection
KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation work at qemu side. Use subsections to save/restore the field (mtosatti). Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
38d2c27ea6
commit
aa82ba549a
3 changed files with 37 additions and 0 deletions
|
@ -283,6 +283,7 @@
|
|||
#define MSR_IA32_APICBASE_BSP (1<<8)
|
||||
#define MSR_IA32_APICBASE_ENABLE (1<<11)
|
||||
#define MSR_IA32_APICBASE_BASE (0xfffff<<12)
|
||||
#define MSR_IA32_TSCDEADLINE 0x6e0
|
||||
|
||||
#define MSR_MTRRcap 0xfe
|
||||
#define MSR_MTRRcap_VCNT 8
|
||||
|
@ -687,6 +688,7 @@ typedef struct CPUX86State {
|
|||
uint64_t async_pf_en_msr;
|
||||
|
||||
uint64_t tsc;
|
||||
uint64_t tsc_deadline;
|
||||
|
||||
uint64_t mcg_status;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue