Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-iv
  • Repository
Switch branch/tag
  • linux-iv
  • arch
  • x86
  • kvm
  • vmx.c
Find file BlameHistoryPermalink
  • Ladi Prosek's avatar
    KVM: nVMX: fix nested EPT detection · 7ad658b6
    Ladi Prosek authored Mar 23, 2017
    The nested_ept_enabled flag introduced in commit 7ca29de2 was not
    computed correctly. We are interested only in L1's EPT state, not the
    the combined L0+L1 value.
    
    In particular, if L0 uses EPT but L1 does not, nested_ept_enabled must
    be false to make sure that PDPSTRs are loaded based on CR3 as usual,
    because the special case described in 26.3.2.4 Loading Page-Directory-
    Pointer-Table Entries does not apply.
    
    Fixes: 7ca29de2
    
     ("KVM: nVMX: fix CR3 load if L2 uses PAE paging and EPT")
    Cc: qemu-stable@nongnu.org
    Reported-by: default avatarWanpeng Li <wanpeng.li@hotmail.com>
    Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
    Signed-off-by: default avatarLadi Prosek <lprosek@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    7ad658b6