[libvirt] [libvirt-go-xml PATCH v2 2/2] Add support for SEV in domain capabilities XML

Daniel P. Berrangé berrange at redhat.com
Mon Jun 18 12:15:54 UTC 2018


On Mon, Jun 18, 2018 at 09:06:00AM +0200, Erik Skultety wrote:
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> Reviewed-by: Daniel P. Berrangé

Lost my email address here.

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


> ---
>  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
> 
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list