diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-13 16:55:33 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-20 22:34:14 +0200 |
commit | 1c57572d754fc54e0b8ac0df5350969ce6292d12 (patch) | |
tree | ac9090c23f79f2f3a404c60ee6ce114f2412fc07 /arch/x86/kvm/x86.c | |
parent | x86/fpu: Replace KVMs xstate component clearing (diff) | |
download | linux-1c57572d754fc54e0b8ac0df5350969ce6292d12.tar.xz linux-1c57572d754fc54e0b8ac0df5350969ce6292d12.zip |
x86/KVM: Convert to fpstate
Convert KVM code to the new register storage mechanism in preparation for
dynamically sized buffers.
No functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Link: https://lkml.kernel.org/r/20211013145322.451439983@linutronix.de
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 96936a2e8267..0eb1021e0275 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -10403,7 +10403,7 @@ int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) vcpu_load(vcpu); - fxsave = &vcpu->arch.guest_fpu->state.fxsave; + fxsave = &vcpu->arch.guest_fpu->fpstate->regs.fxsave; memcpy(fpu->fpr, fxsave->st_space, 128); fpu->fcw = fxsave->cwd; fpu->fsw = fxsave->swd; @@ -10426,7 +10426,7 @@ int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) vcpu_load(vcpu); - fxsave = &vcpu->arch.guest_fpu->state.fxsave; + fxsave = &vcpu->arch.guest_fpu->fpstate->regs.fxsave; memcpy(fxsave->st_space, fpu->fpr, 128); fxsave->cwd = fpu->fcw; |