summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2026-04-08 18:42:03 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2026-05-10 15:52:57 +0300
commit2e111d932d1d7d5bbe2ecb5f0557a81281527cb7 (patch)
treec7f157c7bcb43f50fdcf047d34ebe07745a4144c /include/linux/timerqueue.h
parentb95b398d2e6d13ed47d4ab25bce499c7240923a1 (diff)
downloadlinux-2e111d932d1d7d5bbe2ecb5f0557a81281527cb7.tar.xz
KVM: x86/mmu: split XS/XU bits for EPT
When EPT is in use, replace ACC_USER_MASK with ACC_USER_EXEC_MASK, so that supervisor and user-mode execution can be controlled independently (ACC_USER_MASK would not allow a setting similar to XU=0 XS=1 W=1 R=1). Replace shadow_x_mask with shadow_xs_mask/shadow_xu_mask, to allow setting XS and XU bits separately in EPT entries. In fact, ACC_USER_EXEC_MASK is already set through ACC_ALL in the kvm_mmu_page roles and propagates to the XU bit of sPTEs even if MBEC is not (yet) enabled in the execution controls. This is fine, because the XU bit is ignored by the processor, and even once KVM supports MBEC this mode will remain for processors that lack the feature. Tested-by: David Riley <d.riley@proxmox.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions