diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 18:15:59 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 18:15:59 -0500 |
| commit | e4c089f70e50abcfbf4776db9a57316a7e80bcf8 (patch) | |
| tree | 02cccdac102b5868be9879d61d2e5a7db224bd17 | |
| parent | 07da0fa0ee3291d04daf78a91535596d18e1d8f7 (diff) | |
add RNGs
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | xml.go | 29 |
1 files changed, 22 insertions, 7 deletions
@@ -511,19 +511,34 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) { 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 var normalVideo bool = true if domcfg.Devices.Videos != nil { for _, v := range domcfg.Devices.Videos { switch v.Model.Type { case "qxl": - if v.Model.VRam == 65536 { - // standard qxl video - } else { - fmt.Printf("? Video: %+v\n", v) - fmt.Printf("? Video Model: %+v\n", v.Model) - normalVideo = false - } + if v.Model.VRam == 65536 { + // standard qxl video + } else { + fmt.Printf("? Video: %+v\n", v) + fmt.Printf("? Video Model: %+v\n", v.Model) + normalVideo = false + } case "virtio": // this should always be standard //fmt.Printf("? Video: %+v\n", v) |
