• Avi Kivity's avatar
    KVM: Add accessor for reading cr4 (or some bits of cr4) · fc78f519
    Avi Kivity authored
    Some bits of cr4 can be owned by the guest on vmx, so when we read them,
    we copy them to the vcpu structure.  In preparation for making the set of
    guest-owned bits dynamic, use helpers to access these bits so we don't need
    to know where the bit resides.
    
    No changes to svm since all bits are host-owned there.
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    fc78f519
mmu.h 1.99 KB