[libvirt] [PATCH] esx: Explicitly disable unused floppy0 device for GSX

Eric Blake eblake at redhat.com
Mon Aug 9 22:44:14 UTC 2010


On 08/05/2010 06:45 PM, Matthias Bolte wrote:
> floppy0.present defaults to true for GSX. Therefore, it needs to be
> explicitly disabled for GSX.
> ---
>  src/esx/esx_vmx.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)

If I understand correctly, you want to uniformly make floppy not present
except when the user asked for it.  The other ESX clients meet this
goal, but for GSX, you have to add an extra argument to make it so.
That being the case, I agree with the approach.

> @@ -2539,6 +2544,11 @@ esxVMX_FormatConfig(esxVMX_Context *ctx, virCapsPtr caps, virDomainDefPtr def,
>          }
>      }
>  
> +    if (!hasFloppyDevice && productVersion & esxVI_ProductVersion_GSX) {

I'd add an extra () here to make precedence clear:

if (!hasFloppyDevice && (productVersion & esxVI_ProductVersion_GSX)) {

ACK with that nit fixed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100809/2a07ab37/attachment-0001.sig>


More information about the libvir-list mailing list