|
@@ -4532,11 +4532,11 @@ static void update_permission_bitmask(struct kvm_vcpu *vcpu,
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
/* Faults from writes to non-writable pages */
|
|
/* Faults from writes to non-writable pages */
|
|
|
- u8 wf = (pfec & PFERR_WRITE_MASK) ? ~w : 0;
|
|
|
|
|
|
|
+ u8 wf = (pfec & PFERR_WRITE_MASK) ? (u8)~w : 0;
|
|
|
/* Faults from user mode accesses to supervisor pages */
|
|
/* Faults from user mode accesses to supervisor pages */
|
|
|
- u8 uf = (pfec & PFERR_USER_MASK) ? ~u : 0;
|
|
|
|
|
|
|
+ u8 uf = (pfec & PFERR_USER_MASK) ? (u8)~u : 0;
|
|
|
/* Faults from fetches of non-executable pages*/
|
|
/* Faults from fetches of non-executable pages*/
|
|
|
- u8 ff = (pfec & PFERR_FETCH_MASK) ? ~x : 0;
|
|
|
|
|
|
|
+ u8 ff = (pfec & PFERR_FETCH_MASK) ? (u8)~x : 0;
|
|
|
/* Faults from kernel mode fetches of user pages */
|
|
/* Faults from kernel mode fetches of user pages */
|
|
|
u8 smepf = 0;
|
|
u8 smepf = 0;
|
|
|
/* Faults from kernel mode accesses of user pages */
|
|
/* Faults from kernel mode accesses of user pages */
|