mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
KVM: SVM: fix 32-bit compilation
VCPU_REGS_R8...VCPU_REGS_R15 are not defined on 32-bit x86, so cull them from the synchronization of the VMSA. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
722e039d9a
commit
d45f89f743
|
|
@ -529,6 +529,7 @@ static int sev_es_sync_vmsa(struct vcpu_svm *svm)
|
|||
save->rbp = svm->vcpu.arch.regs[VCPU_REGS_RBP];
|
||||
save->rsi = svm->vcpu.arch.regs[VCPU_REGS_RSI];
|
||||
save->rdi = svm->vcpu.arch.regs[VCPU_REGS_RDI];
|
||||
#ifdef CONFIG_X86_64
|
||||
save->r8 = svm->vcpu.arch.regs[VCPU_REGS_R8];
|
||||
save->r9 = svm->vcpu.arch.regs[VCPU_REGS_R9];
|
||||
save->r10 = svm->vcpu.arch.regs[VCPU_REGS_R10];
|
||||
|
|
@ -537,6 +538,7 @@ static int sev_es_sync_vmsa(struct vcpu_svm *svm)
|
|||
save->r13 = svm->vcpu.arch.regs[VCPU_REGS_R13];
|
||||
save->r14 = svm->vcpu.arch.regs[VCPU_REGS_R14];
|
||||
save->r15 = svm->vcpu.arch.regs[VCPU_REGS_R15];
|
||||
#endif
|
||||
save->rip = svm->vcpu.arch.regs[VCPU_REGS_RIP];
|
||||
|
||||
/* Sync some non-GPR registers before encrypting */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user