In order to support also the AMD IOMMU with x86_64_paging, we extend
the set of bits returned by get_flags handler. We now include all bits
ignored by the MMU, which includes the bits relevant for the AMD IOMMU.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
static unsigned long x86_64_get_flags(pt_entry_t pte)
{
- return *pte & BIT_MASK(6, 0);
+ return *pte & (BIT_MASK(63, 52) | BIT_MASK(11, 8) | BIT_MASK(6, 0));
}
static void x86_64_set_next_pt(pt_entry_t pte, unsigned long next_pt)