Re: [PATCH] KVM: x86: add hint to skip hidden rdpkru under kvm_load_host_xsave_state

From: Paolo Bonzini
Date: Mon May 17 2021 - 12:44:23 EST


On 17/05/21 15:54, Dave Hansen wrote:
On 5/13/21 10:11 PM, Andy Lutomirski wrote:
I don't even want to think about what happens if a perf NMI hits and
accesses host user memory while the guest PKRU is live (on VMX -- I
think this can't happen on SVM).

What's the relevant difference between SVM and VMX here? I'm missing
something.

SVM has the global interrupt flag that blocks NMIs and SMIs, and PKRU is loaded while GIF=0.

Paolo