Skip to content
Commit 929d1cfa authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: MMU: pass arbitrary CR0/CR4/EFER to kvm_init_shadow_mmu



This allows fetching the registers from the hsave area when setting
up the NPT shadow MMU, and is needed for KVM_SET_NESTED_STATE (which
runs long after the CR0, CR4 and EFER values in vcpu have been switched
to hold L2 guest state).

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c513f484
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment