base-nova: export iommu feature from HIP to platform_info

issue #4665
This commit is contained in:
Sebastian Sumpf 2022-11-04 08:04:42 +01:00 committed by Christian Helmuth
parent a89eb5e7e3
commit b66987e1ce
2 changed files with 4 additions and 2 deletions

View File

@ -128,8 +128,9 @@ namespace Nova {
uint32_t const tsc_freq; /* time-stamp counter frequency in kHz */
uint32_t const bus_freq; /* bus frequency in kHz */
bool has_feature_vmx() const { return feature_flags & (1 << 1); }
bool has_feature_svm() const { return feature_flags & (1 << 2); }
bool has_feature_iommu() const { return feature_flags & (1 << 0); }
bool has_feature_vmx() const { return feature_flags & (1 << 1); }
bool has_feature_svm() const { return feature_flags & (1 << 2); }
struct Cpu_desc {
uint8_t flags;

View File

@ -685,6 +685,7 @@ Platform::Platform()
xml.attribute("name", "nova");
xml.attribute("acpi", true);
xml.attribute("msi" , true);
xml.attribute("iommu", hip.has_feature_iommu());
});
if (efi_sys_tab_phy) {
xml.node("efi-system-table", [&] () {