diff options
author | Linus Torvalds | 2019-07-24 18:46:13 +0200 |
---|---|---|
committer | Linus Torvalds | 2019-07-24 18:46:13 +0200 |
commit | 76260774575c0ff7464bf5a4beabc9852180799f (patch) | |
tree | e84adce8bc216cfb4c02b2da18cf89dc9e2a88ff /arch/x86/include | |
parent | Merge tag 'dma-mapping-5.3-2' of git://git.infradead.org/users/hch/dma-mapping (diff) | |
parent | KVM: X86: Boost queue head vCPU to mitigate lock waiter preemption (diff) | |
download | kernel-qcow2-linux-76260774575c0ff7464bf5a4beabc9852180799f.tar.gz kernel-qcow2-linux-76260774575c0ff7464bf5a4beabc9852180799f.tar.xz kernel-qcow2-linux-76260774575c0ff7464bf5a4beabc9852180799f.zip |
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull KVM fixes from Paolo Bonzini:
"Bugfixes, a pvspinlock optimization, and documentation moving"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: X86: Boost queue head vCPU to mitigate lock waiter preemption
Documentation: move Documentation/virtual to Documentation/virt
KVM: nVMX: Set cached_vmcs12 and cached_shadow_vmcs12 NULL after free
KVM: X86: Dynamically allocate user_fpu
KVM: X86: Fix fpu state crash in kvm guest
Revert "kvm: x86: Use task structs fpu field for user"
KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 8282b8d41209..7b0a4ee77313 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -607,15 +607,16 @@ struct kvm_vcpu_arch { /* * QEMU userspace and the guest each have their own FPU state. - * In vcpu_run, we switch between the user, maintained in the - * task_struct struct, and guest FPU contexts. While running a VCPU, - * the VCPU thread will have the guest FPU context. + * In vcpu_run, we switch between the user and guest FPU contexts. + * While running a VCPU, the VCPU thread will have the guest FPU + * context. * * Note that while the PKRU state lives inside the fpu registers, * it is switched out separately at VMENTER and VMEXIT time. The * "guest_fpu" state here contains the guest FPU context, with the * host PRKU bits. */ + struct fpu *user_fpu; struct fpu *guest_fpu; u64 xcr0; |