[Libvir] [RFC] Host and guest capabilities

Richard W.M. Jones rjones at redhat.com
Wed Mar 7 12:40:53 UTC 2007

Some additional comments on what these mean:

> +int virCapabilitiesGetHostSupportsHVM (virCapabilitiesPtr caps);

Would return true if the host supports HVM ...

> +int virCapabilitiesGetHostHVMDisabledByBIOS (virCapabilitiesPtr caps);

... but this would return true if the HVM isn't available to Xen, 
indicating that it's disabled in the BIOS.  Virt-manager could use this 
to present some sort of message about how to enable in the BIOS.

> +int virGuestArchitecturesGetCount (virGuestArchitecturesPtr archs);
> +char *virGuestArchitecturesGetName (virGuestArchitecturesPtr archs, int n);
> +int virGuestArchitecturesGetIsHVM (virGuestArchitecturesPtr archs, int n);

If this architecture supports full virt.

> +int virGuestArchitecturesGetIsAccelerated (virGuestArchitecturesPtr archs, int n);

If this architecture is accelerated (eg. all Xen architectures, and qemu 
architectures using kqemu).

> +int virGuestArchitecturesGetIsEmulated (virGuestArchitecturesPtr archs, int n);

eg. qemu emulating a completely different architecture.

> +int virGuestArchitecturesGetIsBigEndian (virGuestArchitecturesPtr archs, int n);

Xen on IA64 allows guests to be big endian.  It's not clear if the IA64 
HV is always little endian though.

> +int virGuestArchitecturesGetBits (virGuestArchitecturesPtr archs, int n);

Returns 32 or 64.

> +int virGuestArchitecturesGetIsPAE (virGuestArchitecturesPtr archs, int n);

Xen on x86 allows guests to be PAE or non-PAE.


Emerging Technologies, Red Hat  http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF     Mobile: +44 7866 314 421
  "[Negative numbers] darken the very whole doctrines of the equations
  and make dark of the things which are in their nature excessively
  obvious and simple" (Francis Maseres FRS, mathematician, 1759)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070307/e7706b4d/attachment-0001.bin>

More information about the libvir-list mailing list