Skip to content

Commit 93ed2af

Browse files
lyan3wenlingz
authored andcommitted
hv: passthru TSC_ADJUST to VM with lapic pt
Linux access TSC_ADJUST to verify it has not tampered every time when enter idle. So for RTVM running rt-linux, the access will cause vm exit which affect real-time performance. This commit pass through TSC_ADJUST to VM with lapic_pt, to avoid TSC_ADJUST caused vm_exit. For other VMs, TSC_ADJUST msr access is still trapped and emulated. Tracked-On: #2813 Signed-off-by: Yan, Like <like.yan@intel.com>
1 parent f32b59d commit 93ed2af

File tree

1 file changed

+1
-0
lines changed
  • hypervisor/arch/x86/guest

1 file changed

+1
-0
lines changed

hypervisor/arch/x86/guest/vmsr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,4 +661,5 @@ void update_msr_bitmap_x2apic_passthru(const struct acrn_vcpu *vcpu)
661661
enable_msr_interception(msr_bitmap, MSR_IA32_EXT_APIC_LDR, INTERCEPT_READ);
662662
enable_msr_interception(msr_bitmap, MSR_IA32_EXT_APIC_ICR, INTERCEPT_WRITE);
663663
enable_msr_interception(msr_bitmap, MSR_IA32_TSC_DEADLINE, INTERCEPT_DISABLE);
664+
enable_msr_interception(msr_bitmap, MSR_IA32_TSC_ADJUST, INTERCEPT_DISABLE);
664665
}

0 commit comments

Comments
 (0)