https://bugzilla.kernel.org/show_bug.cgi?id=63131

--- Comment #1 from Zhou, Chao <[email protected]> ---
the first bad commit is
commit d7876f1be40a16223a44355740de625849504eb5
Author: Paolo Bonzini <[email protected]>
Date:   Wed Oct 2 16:06:15 2013 +0200

    KVM: x86: prevent setting unsupported XSAVE states

    A guest can still attempt to save and restore XSAVE states even if they
    have been masked in CPUID leaf 0Dh.  This usually is not visible to
    the guest, but is still wrong: "Any attempt to set a reserved bit (as
    determined by the contents of EAX and EDX after executing CPUID with
    EAX=0DH, ECX= 0H) in XCR0 for a given processor will result in a #GP
    exception".

    The patch also performs the same checks as __kvm_set_xcr in KVM_SET_XSAVE.
    This catches migration from newer to older kernel/processor before the
    guest starts running.

    Signed-off-by: Paolo Bonzini <[email protected]>
    Signed-off-by: Gleb Natapov <[email protected]>

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to