Commit cf606bac authored by Daniel P. Berrangé's avatar Daniel P. Berrangé 💬
Browse files

Add domain capabilities for hyperv

parent a1da461e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 {
@@ -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)
}