[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] VT-d: drop ROOT_ENTRY_NR
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 11 Apr 2022 11:36:23 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XiXlRp8KAwreSj5L/XmU2xaUcy67hxd0OIDtCutKoAY=; b=kmOSpa/UkF75vWDXm2tWFl88lgghOCxyQfAChE1htTjqQVDiTt4L9qZQOZ9bGrGWQmXCLkTXCs9Hm/+h9lepUyorhuktdo/u5+RQfVYeOTrQYD1S/XyboK2FobiYrNQKxyxfI/1FhrnPYpk257nL6gsqoYsyR2/sOv5MQ0eIc5FmB7s9VdrPRv+ILeZ+AC3QX67URQD+ETcNbbAF3pSdI2mJ8ltPCcExMAqPmCHnLr9TZ/pZMvODkNxTxBqwTsWjQ08rq3+ldoua3PhskQqRJGV1bnU8IWW28HV3i7J+HQizMyzEZUU0h3Ui8qaXxp33WTtD5/ILtfvdMVTlTYmLdQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a7EfJJrsByPSCYJnSK9bd1I3HAaWUpbVbi4B/UvPjPGZ0V2E1xUK7CtFKtCFNF7KM/DykFVISRruqhjRoWXmzWXS2ZN50nZ23B5kbqgCtKqctD4+u9OXGah+9brw6sKjtIFZj3Ykzsa+RVVx3FqQH2GMMZNMJXdR2qO42IaTedCd426vEDPbN95u2TqQhLFNoyPhukd79DOaiQ2RdyKYqnPhEnXFzrHaFhKlVKWnVp+UKoy4mnJNiucnNhlP4PSdAKL38IPd0efZLYcKqgyjvtXvISyTh7gYAeSOi6zwE2B+6Xgb5tG7jBUIwx2zZ/KQgcJitcydG91JfpbmM50d4Q==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Kevin Tian <kevin.tian@xxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 11 Apr 2022 09:36:32 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
It's not only misplaced, but entirely unused.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- 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)
|