hv: Remove multiple definitions for dmar translation structures

Except for few translation structures in x86 IOMMU, all translation
structures are 128-bit. All the translation structures used by ACRN
are 128 bit. So removed multiple definitions and defined a struct
that accomodates 128 bit entries.

Tracked-On: #2668
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Sainath Grandhi
2019-03-05 13:30:58 -08:00
committed by Eddie Dong
parent 18b619da4d
commit 137892fdd5
3 changed files with 89 additions and 102 deletions

View File

@@ -489,11 +489,13 @@ struct dmar_info {
struct dmar_drhd *drhd_units;
};
struct dmar_entry {
uint64_t lo_64;
uint64_t hi_64;
};
union dmar_ir_entry {
struct {
uint64_t lower;
uint64_t upper;
} entry;
struct dmar_entry entry;
struct {
uint64_t present:1;
uint64_t fpd:1;