]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
VT-d: drop ROOT_ENTRY_NR
authorJan Beulich <jbeulich@suse.com>
Wed, 20 Apr 2022 08:53:19 +0000 (10:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Apr 2022 08:53:19 +0000 (10:53 +0200)
It's not only misplaced, but entirely unused.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.h

index aca055f57733b645882aa2e2d1437dd47a4ed881..09ec09fe27dc8869d938871d71818c1361bff026 100644 (file)
@@ -204,7 +204,6 @@ struct context_entry {
         __uint128_t full;
     };
 };
-#define ROOT_ENTRY_NR (PAGE_SIZE_4K/sizeof(struct root_entry))
 #define context_present(c) ((c).lo & 1)
 #define context_fault_disable(c) (((c).lo >> 1) & 1)
 #define context_translation_type(c) (((c).lo >> 2) & 3)