Signed-off-by: Erik Skultety <eskultet(a)redhat.com>
Reviewed-by: Daniel P. Berrangé
---
domain_capabilities.go | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/domain_capabilities.go b/domain_capabilities.go
index 3f5a752..0faa06a 100644
--- a/domain_capabilities.go
+++ b/domain_capabilities.go
@@ -106,6 +106,7 @@ type DomainCapsFeatures struct {
GIC *DomainCapsFeatureGIC `xml:"gic"`
VMCoreInfo *DomainCapsFeatureVMCoreInfo `xml:"vmcoreinfo"`
GenID *DomainCapsFeatureGenID `xml:"genid"`
+ SEV *DomainCapsFeatureSEV `xml:"sev"`
}
type DomainCapsFeatureGIC struct {
@@ -121,6 +122,12 @@ type DomainCapsFeatureGenID struct {
Supported string `xml:"supported,attr"`
}
+type DomainCapsFeatureSEV struct {
+ Supported string `xml:"supported,attr"`
+ CBitPos uint `xml:"cbitpos,omitempty"`
+ ReducedPhysBits uint `xml:"reducedPhysBits,omitempty"`
+}
+
func (c *DomainCaps) Unmarshal(doc string) error {
return xml.Unmarshal([]byte(doc), c)
}
--
2.14.4