Skip to contentSkip to conversation

kvm: add the __noclone attribute

PATCH In review Lai Jiangshan 2 participants 2 messages Feb 11, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: add the __noclone attribute

The changelog of 104f226 said "adds the __noclone attribute", but it was missing in its patch. I think it is still needed.

---

arch/x86/kvm/vmx.c +1 -1
index bf89ec2..de99a4d 100644
@@ -3962,7 +3962,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);
 
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Lai Jiangshan

The changelog of 104f226 said "adds the __noclone attribute", but it was missing in its patch. I think it is still needed.

Looks good. Thanks.

-Andi