• Nadav Har'El's avatar
    KVM: nVMX: Fix nested VMX TSC emulation · 27fc51b2
    Nadav Har'El authored
    This patch fixes two corner cases in nested (L2) handling of TSC-related
    issues:
    
    1. Somewhat suprisingly, according to the Intel spec, if L1 allows WRMSR to
    the TSC MSR without an exit, then this should set L1's TSC value itself - not
    offset by vmcs12.TSC_OFFSET (like was wrongly done in the previous code).
    
    2. Allow L1 to disable the TSC_OFFSETING control, and then correctly ignore
    the vmcs12.TSC_OFFSET.
    Signed-off-by: default avatarNadav Har'El <nyh@il.ibm.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    27fc51b2
vmx.c 203 KB