Quote:
Originally Posted by Chetyre 
Some questions:
What is viridian useful for? I read on it a little bit and apparently it is microsoft's solution to make the OS virtualization aware or something, but does it actually affect anything?
Why do you need opengl=1? Doesn't the graphics card take care of opengl in the hvm?
What does serial and tsc do?
Do you really need pae if your system is already x64 (I'm supposing)?

Some questions:
What is viridian useful for? I read on it a little bit and apparently it is microsoft's solution to make the OS virtualization aware or something, but does it actually affect anything?
Why do you need opengl=1? Doesn't the graphics card take care of opengl in the hvm?
What does serial and tsc do?
Do you really need pae if your system is already x64 (I'm supposing)?
Excellent questions! Frankly, I had to look it up again - see here for more info: http://wiki.xen.org/wiki/XenConfigurationFileOptions.
viridian: see http://old-list-archives.xen.org/archives/html/xen-users/2009-07/msg00661.html - not sure if that is relevant to my system, but so far I don't see that this option hurts. I think you are right about this option exposing virtualization to the VM, see also http://digitaldj.net/2010/08/25/a-possible-fix-xen-hvm-windows-2008/. In the end, I didn't make any comparison test viridian=1 vs. viridian=0.
pae: pae=1 is the default if not explicitly set to 0. I inserted this line as a reminder to change if things go bad or don't work well. I haven't tried pae=0, though. Both dom0 and domU are 64bit, by the way.
opengl=1 : should provide graphics acceleration in the (VNC) console window, as long as the graphics card drivers of the host are present (if I got this right, and I'm not sure about it, the VNC console uses the graphics card driver of the host/dom0). See here for some hint: http://www.2virt.com/blog/?p=151. In my system it seems to work fine, though again I didn't compare that with opengl=0. This option has no impact once the VGA is passed thru.
serial='pty' : This option enables a serial console. See https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/sect-Virtualization-Troubleshooting_Xen-Guest_configuration_files.html. It's actually only relevant for Linux HVMs, not for Windows. It's probably best to delete this option, as I can't see any benefit.
tsc_mode=0 : This is the default. This option is actually quite involving. An in-depth explanation on the settings can be found here: http://svn.openfoundry.org/xenids/xen-4.0.0/docs/misc/tscmode.txt. Again, I use this entry as a reminder on what to check/modify when things go wrong.
None of the settings you asked about are critical or likely to influence whether or not your Windows guest will start and run with VGA passthru. What I tried to do is get a list of all potentially relevant options and list them in the config file with their default values (mostly). In some cases, like opengl and viridian, I chose to enable the feature in the hope it would bring benefits. I haven't yet compared those settings enabled versus not enabled, so I can't say if they actually are beneficial.
About gfx_passthru:
gfx_passthru=BOOLEAN (Click to show)
gfx_passthru=BOOLEAN
Enable graphics device PCI passthrough. This option makes an assigned PCI graphics card become primary graphics card in the VM. The QEMU emulated graphics adapter is disabled and the VNC console for the VM will not have any graphics output. All graphics output, including boot time QEMU BIOS messages from the VM, will go to the physical outputs of the passedthrough physical graphics card.
The graphics card PCI device to passthrough is chosen with pci option, exactly in the same way as normal Xen PCI device passthrough/assignment is done. Note that gfx_passthru does not do any kind of sharing of the GPU, so you can only assign the GPU to one single VM at a time.
gfx_passthru also enables various legacy VGA memory ranges, BARs, MMIOs, and ioports to be passed thru to the VM, since those are required for correct operation of things like VGA BIOS, text mode, VBE, etc.
Enabling gfx_passthru option also copies the physical graphics card video BIOS to the guest memory, and executes the VBIOS in the guest to initialize the graphics card.
Most graphics adapters require vendor specific tweaks for properly working graphics passthrough. See the XenVGAPassthroughTestedAdapters http://wiki.xen.org/wiki/XenVGAPassthroughTestedAdapters wiki page for currently supported graphics cards for gfx_passthru.
gfx_passthru is currently only supported with the qemu-xen-traditional device-model. Upstream qemu-xen device-model currently does not have support for gfx_passthru.
Note that some graphics adapters (AMD/ATI cards, for example) do not necessarily require gfx_passthru option, so you can use the normal Xen PCI passthrough to assign the graphics card as a secondary graphics card to the VM. The QEMU-emulated graphics card remains the primary graphics card, and VNC output is available from the QEMU-emulated primary adapter.
More information about Xen gfx_passthru feature is available on the XenVGAPassthrough http://wiki.xen.org/wiki/XenVGAPassthrough wiki page.
Enable graphics device PCI passthrough. This option makes an assigned PCI graphics card become primary graphics card in the VM. The QEMU emulated graphics adapter is disabled and the VNC console for the VM will not have any graphics output. All graphics output, including boot time QEMU BIOS messages from the VM, will go to the physical outputs of the passedthrough physical graphics card.
The graphics card PCI device to passthrough is chosen with pci option, exactly in the same way as normal Xen PCI device passthrough/assignment is done. Note that gfx_passthru does not do any kind of sharing of the GPU, so you can only assign the GPU to one single VM at a time.
gfx_passthru also enables various legacy VGA memory ranges, BARs, MMIOs, and ioports to be passed thru to the VM, since those are required for correct operation of things like VGA BIOS, text mode, VBE, etc.
Enabling gfx_passthru option also copies the physical graphics card video BIOS to the guest memory, and executes the VBIOS in the guest to initialize the graphics card.
Most graphics adapters require vendor specific tweaks for properly working graphics passthrough. See the XenVGAPassthroughTestedAdapters http://wiki.xen.org/wiki/XenVGAPassthroughTestedAdapters wiki page for currently supported graphics cards for gfx_passthru.
gfx_passthru is currently only supported with the qemu-xen-traditional device-model. Upstream qemu-xen device-model currently does not have support for gfx_passthru.
Note that some graphics adapters (AMD/ATI cards, for example) do not necessarily require gfx_passthru option, so you can use the normal Xen PCI passthrough to assign the graphics card as a secondary graphics card to the VM. The QEMU-emulated graphics card remains the primary graphics card, and VNC output is available from the QEMU-emulated primary adapter.
More information about Xen gfx_passthru feature is available on the XenVGAPassthrough http://wiki.xen.org/wiki/XenVGAPassthrough wiki page.











