RE: [libvirt] [RFC] Support for CPUID masking v2

2009-09-13 Thread Itamar Heim
From: libvir-list-boun...@redhat.com [mailto:libvir-list- Hi, This is an attempt to provide similar flexibility to CPU ID masking without being x86-specific and unfriendly to users. As suggested by Dan, we need a way to specify both CPU flags and topology to achieve this goal.

[libvirt] Re: [Qemu-devel] Re: [PATCH 0/2] port over extboot from kvm

2009-09-13 Thread Kevin O'Connor
On Tue, Sep 08, 2009 at 04:40:15PM +0200, Jan Kiszka wrote: Gerd Hoffmann wrote: On 09/08/09 15:47, Jan Kiszka wrote: - This is just an implementation detail: Do we really need to implement booting from virtio and scsi via an extension rom? Isn't it possible to merge the

Re: [libvirt] Interface driver and ESX support

2009-09-13 Thread Shahar Klein
I've defined (among others): int esxVI_PhysicalNic_CastListFromAnyType(virConnectPtr conn, esxVI_AnyType *anyType, esxVI_PhysicalNic **pNicList); but runing it returns somthing like: Expecting type 'PhysicalNic' but found 'ArrayOfPhysicalNic' Does it mean I should also implement:

Re: [libvirt] Interface driver and ESX support

2009-09-13 Thread Matthias Bolte
No, as I said before you should wait until you can use the unpublished binding of HostCpuIdInfo as an example. This also includes the code to handle ArrayOf* types. I'm currently cleaning up this patches (didn't have time on thursday for that) and will post them today, just wait for this patches,

[libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-13 Thread Garry Dolley
Dear libvirt, Is there a way to tell a KVM/QEMU guest managed by libvirt to start with the -no-kvm-irqchip argument? I have some FreeBSD 7 guests with timing issues, and if I try to start the VMs manually with -no-kvm-irqchip, the timing issues go away (the only known workaround right now).

[libvirt] ESX [01/12]: Add esxNodeGetFreeMemory()

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: add esxNodeGetFreeMemory(), cache IP address * src/esx/esx_vi.[ch]: refactor resource pool query into esxVI_GetResourcePool() * src/esx/esx_vi_types.[ch]: bind VI type ResourcePoolResourceUsage diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 8d1af71..fb4edbc

[libvirt] ESX [02/12]: Set challenge for auth callback to hostname

2009-09-13 Thread Matthias Bolte
This enables the auth callback to automatically distinguish between requests for ESX host and vCenter credentials. * src/esx/esx_util.[ch]: set challenge for auth callback to hostname diff --git a/src/esx/esx_util.c b/src/esx/esx_util.c index 92af0ca..38014de 100644 --- a/src/esx/esx_util.c +++

[libvirt] ESX [05/12]: Also strip (C) and (TM) from the CPU model string

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: also strip (C) and (TM) from the CPU model string diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 3f3ee30..96d5976 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -746,9 +746,12 @@ esxNodeGetInfo(virConnectPtr conn, virNodeInfoPtr nodeinfo)

[libvirt] ESX [06/12]: Add x86_64 detection based on the CPUID

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: add esxSupportsLongMode() and update esxCapsInit() * src/esx/esx_vi.[ch]: Add AnyType handling for lists * src/esx/esx_vi_types.c: bind VI type HostCpuIdInfo diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 96d5976..745b744 100644 --- a/src/esx/esx_driver.c

[libvirt] ESX [07/12]: Whitespace cleanup

2009-09-13 Thread Matthias Bolte
Subject says it all. diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 745b744..8194b49 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -752,13 +752,13 @@ esxGetHostname(virConnectPtr conn) } } -if (hostName == NULL || strlen (hostName) 1) { +

[libvirt] ESX [08/12]: Add esxVI_Occurence enum to describe expected occurence of items

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: update the use of esxVI_LookupVirtualMachineByUuid() * src/esx/esx_vi.c: add an esxVI_Occurence parameter to esxVI_LookupVirtualMachineByUuid() and take care if esxVI_FindByUuid() can't find anything for a given uuid * src/esx/esx_vi.h: add esxVI_Occurence enum *

[libvirt] ESX [10/12]: Replace esxUtil_EqualSuffix() with virFileHasSuffix()

2009-09-13 Thread Matthias Bolte
* src/esx/esx_util.[ch]: remove esxUtil_EqualSuffix() * src/esx/esx_driver.c, src/esx/esx_vmx.c: replace esxUtil_EqualSuffix() with virFileHasSuffix() diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 9c9045e..5a93d1f 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@

[libvirt] ESX [11/12]: Reorder some function calls to avoid potential virDomainPtr leaks

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: avoid potential virDomainPtr leaks diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 5a93d1f..91de407 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -1200,14 +1200,14 @@ esxDomainLookupByUUID(virConnectPtr conn, const unsigned char *uuid)

[libvirt] ESX [12/12]: Remove phantom mode

2009-09-13 Thread Matthias Bolte
* src/esx/esx_driver.c: remove phantom mode diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 91de407..bbba445 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -58,7 +58,6 @@ static int esxDomainGetMaxVcpus(virDomainPtr domain); typedef struct _esxPrivate {

Re: [libvirt] Interface driver and ESX support

2009-09-13 Thread Matthias Bolte
Okay, I finally got the patches cleaned up. I just posted this 12 patches series to the mailing list. Apply them all to an up to date git clone and apply the attached, updated ESX interface driver stub patch in the end. Patch 6 of 12 adds the binding for HostCpuIdInfo and contains the functions

Re: [libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-13 Thread Jim Paris
Garry Dolley wrote: Dear libvirt, Is there a way to tell a KVM/QEMU guest managed by libvirt to start with the -no-kvm-irqchip argument? I have some FreeBSD 7 guests with timing issues, and if I try to start the VMs manually with -no-kvm-irqchip, the timing issues go away (the only known