KVM: VMX: add the __noclone attribute to vmx_vcpu_run
authorLai Jiangshan <[email protected]>
Fri, 11 Feb 2011 06:29:40 +0000 (14:29 +0800)
committerMarcelo Tosatti <[email protected]>
Thu, 17 Mar 2011 16:08:31 +0000 (13:08 -0300)
The changelog of 104f226 said "adds the __noclone attribute",
but it was missing in its patch. I think it is still needed.

Signed-off-by: Lai Jiangshan <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
arch/x86/kvm/vmx.c

index f76137ce71c6ed82f95a830647eca0416266fb28..a61ed93a1f258af10ffe33fedf014ff0cd2e3d19 100644 (file)
@@ -3999,7 +3999,7 @@ static void vmx_cancel_injection(struct kvm_vcpu *vcpu)
 #define Q "l"
 #endif
 
-static void vmx_vcpu_run(struct kvm_vcpu *vcpu)
+static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
 {
        struct vcpu_vmx *vmx = to_vmx(vcpu);