diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-11-28 20:54:14 +0800 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-29 21:14:46 -0200 |
commit | 5a560f8b5ed361c7be783d5a671ea26ca4d6fa01 (patch) | |
tree | ec3e4aa913bcdc0f97222f7a9ee4b52104d1ed1f /virt/kvm | |
parent | e6c7d32172f10b68fa9a3be05aa1231352a52171 (diff) | |
download | op-kernel-dev-5a560f8b5ed361c7be783d5a671ea26ca4d6fa01.zip op-kernel-dev-5a560f8b5ed361c7be783d5a671ea26ca4d6fa01.tar.gz |
KVM: VMX: fix memory order between loading vmcs and clearing vmcs
vmcs->cpu indicates whether it exists on the target cpu, -1 means the vmcs
does not exist on any vcpu
If vcpu load vmcs with vmcs.cpu = -1, it can be directly added to cpu's percpu
list. The list can be corrupted if the cpu prefetch the vmcs's list before
reading vmcs->cpu. Meanwhile, we should remove vmcs from the list before
making vmcs->vcpu == -1 be visible
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions