Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe
  • Repository
Switch branch/tag
  • ipipe
  • arch
  • x86
  • kvm
  • vmx.c
Find file BlameHistoryPermalink
  • Xiao Guangrong's avatar
    KVM: VMX: fix memory order between loading vmcs and clearing vmcs · 5a560f8b
    Xiao Guangrong authored Nov 28, 2012
    
    
    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: default avatarXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    5a560f8b

Imprint & Privacy Policy