Message ID | 1433513463-19128-6-git-send-email-joro@8bytes.org (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index d66bec6..cda0901 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -198,8 +198,7 @@ static inline bool root_present(struct root_entry *root) static inline void set_root_value(struct root_entry *root, unsigned long value) { - root->lo &= ~VTD_PAGE_MASK; - root->lo |= value & VTD_PAGE_MASK; + root->lo = (value & VTD_PAGE_MASK) | 1; } static inline struct context_entry *