File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 453
453
454
454
#define MAX_DOMAIN_ID 65536
455
455
456
- /* Protection domain flags */
457
- #define PD_DMA_OPS_MASK BIT(0) /* domain used for dma_ops */
458
- #define PD_DEFAULT_MASK BIT(1) /* domain is a default dma_ops
459
- domain for an IOMMU */
460
- #define PD_PASSTHROUGH_MASK BIT(2) /* domain has no page
461
- translation */
462
- #define PD_IOMMUV2_MASK BIT(3) /* domain has gcr3 table */
463
- #define PD_GIOV_MASK BIT(4) /* domain enable GIOV support */
464
-
465
456
/* Timeout stuff */
466
457
#define LOOP_TIMEOUT 100000
467
458
#define MMIO_STATUS_TIMEOUT 2000000
@@ -563,10 +554,7 @@ struct protection_domain {
563
554
struct amd_io_pgtable iop ;
564
555
spinlock_t lock ; /* mostly used to lock the page table*/
565
556
u16 id ; /* the domain id written to the device table */
566
- int glx ; /* Number of levels for GCR3 table */
567
557
int nid ; /* Node ID */
568
- u64 * gcr3_tbl ; /* Guest CR3 table */
569
- unsigned long flags ; /* flags to find out type of domain */
570
558
enum protection_domain_mode pd_mode ; /* Track page table type */
571
559
bool dirty_tracking ; /* dirty tracking is enabled in the domain */
572
560
unsigned dev_cnt ; /* devices assigned to this domain */
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ static void set_dte_entry(struct amd_iommu *iommu,
86
86
87
87
static inline bool pdom_is_v2_pgtbl_mode (struct protection_domain * pdom )
88
88
{
89
- return (pdom && (pdom -> flags & PD_IOMMUV2_MASK ));
89
+ return (pdom && (pdom -> pd_mode == PD_MODE_V2 ));
90
90
}
91
91
92
92
static inline int get_acpihid_device_id (struct device * dev ,
You can’t perform that action at this time.
0 commit comments