diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-05-29 08:07:21 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 05:05:42 -0400 |
commit | 8d7282036f82244c5a1146a1a7edf03c50d278d9 (patch) | |
tree | 4d820e730b13862247f7a960b6842b6db24bc4d8 /drivers | |
parent | 06ff0d37285094cf9cc25370e6a78ce9bc70ddb0 (diff) |
KVM: Use symbolic constants instead of magic numbers
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 6dd0da9a5d15..183d4ca9b315 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -213,7 +213,7 @@ static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *page, | |||
213 | if (~gpte & (PT_PRESENT_MASK | PT_ACCESSED_MASK)) | 213 | if (~gpte & (PT_PRESENT_MASK | PT_ACCESSED_MASK)) |
214 | return; | 214 | return; |
215 | pgprintk("%s: gpte %llx spte %p\n", __FUNCTION__, (u64)gpte, spte); | 215 | pgprintk("%s: gpte %llx spte %p\n", __FUNCTION__, (u64)gpte, spte); |
216 | FNAME(set_pte)(vcpu, gpte, spte, 6, | 216 | FNAME(set_pte)(vcpu, gpte, spte, PT_USER_MASK | PT_WRITABLE_MASK, |
217 | (gpte & PT_BASE_ADDR_MASK) >> PAGE_SHIFT); | 217 | (gpte & PT_BASE_ADDR_MASK) >> PAGE_SHIFT); |
218 | } | 218 | } |
219 | 219 | ||