Loading domain_capabilities.go +6 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,7 @@ type DomainCapsFeatures struct { S390PV *DomainCapsFeatureS390PV `xml:"s390-pv"` SEV *DomainCapsFeatureSEV `xml:"sev"` SGX *DomainCapsFeatureSGX `xml:"sgx"` HyperV *DomainCapsFeatureHyperV `xml:"hyperv"` } type DomainCapsFeatureGIC struct { Loading Loading @@ -185,6 +186,11 @@ type DomainCapsFeatureSGXSection struct { Unit string `xml:"unit,attr"` } type DomainCapsFeatureHyperV struct { Supported string `xml:"supported,attr"` Enums []DomainCapsEnum `xml:"enum"` } func (c *DomainCaps) Unmarshal(doc string) error { return xml.Unmarshal([]byte(doc), c) } Loading Loading
domain_capabilities.go +6 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,7 @@ type DomainCapsFeatures struct { S390PV *DomainCapsFeatureS390PV `xml:"s390-pv"` SEV *DomainCapsFeatureSEV `xml:"sev"` SGX *DomainCapsFeatureSGX `xml:"sgx"` HyperV *DomainCapsFeatureHyperV `xml:"hyperv"` } type DomainCapsFeatureGIC struct { Loading Loading @@ -185,6 +186,11 @@ type DomainCapsFeatureSGXSection struct { Unit string `xml:"unit,attr"` } type DomainCapsFeatureHyperV struct { Supported string `xml:"supported,attr"` Enums []DomainCapsEnum `xml:"enum"` } func (c *DomainCaps) Unmarshal(doc string) error { return xml.Unmarshal([]byte(doc), c) } Loading