parent
07da0fa0ee
commit
e4c089f70e
29
xml.go
29
xml.go
|
@ -511,19 +511,34 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) {
|
||||||
domcfg.Devices.RedirDevs = nil
|
domcfg.Devices.RedirDevs = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var normalRNGs bool = true
|
||||||
|
if domcfg.Devices.RNGs != nil {
|
||||||
|
for _, rng := range domcfg.Devices.RNGs {
|
||||||
|
if rng.Model == "virtio" {
|
||||||
|
// nothing to do for this
|
||||||
|
} else {
|
||||||
|
fmt.Printf("? RNGs: %+v\n", rng)
|
||||||
|
normalRNGs = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if normalRNGs {
|
||||||
|
domcfg.Devices.RNGs = nil
|
||||||
|
}
|
||||||
|
|
||||||
// this is probably for spice to have keyboard and mouse input
|
// this is probably for spice to have keyboard and mouse input
|
||||||
var normalVideo bool = true
|
var normalVideo bool = true
|
||||||
if domcfg.Devices.Videos != nil {
|
if domcfg.Devices.Videos != nil {
|
||||||
for _, v := range domcfg.Devices.Videos {
|
for _, v := range domcfg.Devices.Videos {
|
||||||
switch v.Model.Type {
|
switch v.Model.Type {
|
||||||
case "qxl":
|
case "qxl":
|
||||||
if v.Model.VRam == 65536 {
|
if v.Model.VRam == 65536 {
|
||||||
// standard qxl video
|
// standard qxl video
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("? Video: %+v\n", v)
|
fmt.Printf("? Video: %+v\n", v)
|
||||||
fmt.Printf("? Video Model: %+v\n", v.Model)
|
fmt.Printf("? Video Model: %+v\n", v.Model)
|
||||||
normalVideo = false
|
normalVideo = false
|
||||||
}
|
}
|
||||||
case "virtio":
|
case "virtio":
|
||||||
// this should always be standard
|
// this should always be standard
|
||||||
//fmt.Printf("? Video: %+v\n", v)
|
//fmt.Printf("? Video: %+v\n", v)
|
||||||
|
|
Loading…
Reference in New Issue