<div dir="ltr"><div dir="ltr"><div><div dir="rtl" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="background-color:rgb(255,255,255)"><div dir="rtl" style="font-family:Arial,Verdana,sans-serif"><br></div></span></div></div></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Out of curiosity, I got 2 questions:<br>
<br>
Hi<br>
<br>
> 1. Where does the domcapabilities are being retrieved from?<br>
<br>
You can get it by running 'virsh domcapabilities', it has some<br>
parameters that can change the output, look for domcapabilities<br>
in 'man virsh'.<br>
<br>
To extend the answer, the data are provided by libvirt and libvirt<br>
gets the data from QEMU (libvirt >= 3.2.0 and QEMU >= 2.9.0) or from<br>
it's own database and cpuid.<br></blockquote><div><br></div><div>Ok.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> 2. Is is possible to change some flags (in the CPU section) from 'require'<br>
> to disable and vice versa? (i'm talking system wide, not per VM) if so, how?<br>
<br>
No, these domcapabilities returns what is possible with specific QEMU<br>
on specific host.  If you want to disable some features or enable them<br>
you need to specify that for every singe VM.<br>
<br>
My question is why would you like to change the CPU features?<br><br></blockquote><div>I'm tracking an issue with AMD's Zen/Zen+ based processors. </div><div>The "monitor" CPU flag is not being exposed in nested virtualization in the guest OS. I tried it with Hyper-V, ESXi, and XenServer as well as KVM.</div><div><br></div><div>With Libvirt - it is, indeed, being disabled and this behavior is correct:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">virsh domcapabilities | grep monitor
</span><br>      <feature policy='disable' name='<span style="font-weight:bold;color:rgb(255,84,84)">monitor</span><span style="color:rgb(0,0,0)">'/></span><br></span></div><div><br></div><div>However, when trying to use oVirt in nested virtualization with any AMD Zen/Zen+ based CPU, it doesn't let create or run any VM and it complains about "monitor" is missing, and I'm trying to figure out who needs to fix the code, either oVirt or the KVM devs. That's why I wanted to see if it's an error or not.</div><div><br></div><div>Thanks,</div></div></div>