diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-11-28 12:54:14 (GMT) |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-29 23:14:46 (GMT) |
commit | 5a560f8b5ed361c7be783d5a671ea26ca4d6fa01 (patch) | |
tree | ec3e4aa913bcdc0f97222f7a9ee4b52104d1ed1f /crypto/ecb.c | |
parent | e6c7d32172f10b68fa9a3be05aa1231352a52171 (diff) | |
download | linux-fsl-qoriq-5a560f8b5ed361c7be783d5a671ea26ca4d6fa01.tar.xz |
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 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions