diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-11-20 08:28:27 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-11-20 08:28:27 +0100 |
commit | dee7d981b99435b6c37126821af7826bd9a9d36c (patch) | |
tree | 4c182210666c190b603c1d77949abd048ba07169 /xen | |
parent | bebb49125fd305ae7814d7d4fcc05a85cc2a21e0 (diff) |
SVM: avoid UB in intercept mask definitions
Found by looking for patterns similar to the one Julien did spot in
pci_vtd_quirks().
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/include/asm-x86/hvm/svm/vmcb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/asm-x86/hvm/svm/vmcb.h b/xen/include/asm-x86/hvm/svm/vmcb.h index c4fda389b3..0b03a8f076 100644 --- a/xen/include/asm-x86/hvm/svm/vmcb.h +++ b/xen/include/asm-x86/hvm/svm/vmcb.h @@ -55,7 +55,7 @@ enum GenericIntercept1bits GENERAL1_INTERCEPT_MSR_PROT = 1 << 28, GENERAL1_INTERCEPT_TASK_SWITCH = 1 << 29, GENERAL1_INTERCEPT_FERR_FREEZE = 1 << 30, - GENERAL1_INTERCEPT_SHUTDOWN_EVT = 1 << 31 + GENERAL1_INTERCEPT_SHUTDOWN_EVT = 1u << 31 }; /* general 2 intercepts */ @@ -112,7 +112,7 @@ enum CRInterceptBits CR_INTERCEPT_CR12_WRITE = 1 << 28, CR_INTERCEPT_CR13_WRITE = 1 << 29, CR_INTERCEPT_CR14_WRITE = 1 << 30, - CR_INTERCEPT_CR15_WRITE = 1 << 31, + CR_INTERCEPT_CR15_WRITE = 1u << 31, }; @@ -150,7 +150,7 @@ enum DRInterceptBits DR_INTERCEPT_DR12_WRITE = 1 << 28, DR_INTERCEPT_DR13_WRITE = 1 << 29, DR_INTERCEPT_DR14_WRITE = 1 << 30, - DR_INTERCEPT_DR15_WRITE = 1 << 31, + DR_INTERCEPT_DR15_WRITE = 1u << 31, }; enum VMEXIT_EXITCODE |