[PATCH 2/8] VT-d: drop ROOT_ENTRY_NR

Jan Beulich posted 8 patches 3 years, 10 months ago
[PATCH 2/8] VT-d: drop ROOT_ENTRY_NR
Posted by Jan Beulich 3 years, 10 months ago
It's not only misplaced, but entirely unused.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/drivers/passthrough/vtd/iommu.h
+++ b/xen/drivers/passthrough/vtd/iommu.h
@@ -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)
Re: [PATCH 2/8] VT-d: drop ROOT_ENTRY_NR
Posted by Roger Pau Monné 3 years, 10 months ago
On Mon, Apr 11, 2022 at 11:36:23AM +0200, Jan Beulich wrote:
> 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>

Thanks, Roger.