Permalink
Browse files

Add support for SEV in domain capabilities XML

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information...
Erik Skultety
Erik Skultety committed Jun 14, 2018
1 parent c17e8ad commit 8ca863f55a64aea69ace0727e0f2a69277cae419
Showing with 7 additions and 0 deletions.
  1. +7 −0 domain_capabilities.go
View
@@ -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)
}

0 comments on commit 8ca863f

Please sign in to comment.