add a NUMA schema element
@@ -220,8 +220,22 @@ type CPU struct {
Model string `xml:"model,omitempty"`
Features []CPUFeature `xml:"feature"`
Topology *CPUTopology `xml:"topology"`
+ NUMA *NUMA `xml:"numa,omitempty"`
}
+type NUMA struct {
+ Cells []NUMACell `xml:"cell"`
+}
+
+type NUMACell struct {
+ ID string `xml:"id,attr"`
+ CPUs string `xml:"cpus,attr"`
+ Memory string `xml:"memory,attr,omitempty"`
+ Unit string `xml:"unit,attr,omitempty"`
+ MemoryAccess string `xml:"memAccess,attr,omitempty"`
+}
+
+
type CPUFeature struct {
Name string `xml:"name,attr"`
Policy string `xml:"policy,attr,omitempty"`
