diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 39a83a66a28226e05783598143790d41ead9d6cf..939c8724feb4562f23e9344fae6e5af06140d9ca 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2351,7 +2351,9 @@ static unsigned long segment_base(u16 selector) static void vmx_save_host_state(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); +#ifdef CONFIG_X86_64 int cpu = raw_smp_processor_id(); +#endif int i; if (vmx->host_state.loaded)