Re: [libvirt] Supressing error messages

2010-01-15 Thread Matthias Bolte
2010/1/15 Bryan Kearney : > When using the java library, we are seeing libvirt error messages spit out.. > such as: > > libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': > No such file or directory > > Is there a means of supressing that logging via the api? > > -- bk >

[libvirt] Supressing error messages

2010-01-15 Thread Bryan Kearney
When using the java library, we are seeing libvirt error messages spit out.. such as: libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory Is there a means of supressing that logging via the api? -- bk -- libvir-list mailing list libvir-list

[libvirt] Schedule for libvirt-0.7.6

2010-01-15 Thread Daniel Veillard
So the plan is still to start the feature freeze end of next friday the 22 Jan and try to push 0.7.6 on the 29th. This mean there is still one week to push features :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM sea

Re: [libvirt] [PATCH 02/34] Introduce a standardized data structure for device addresses

2010-01-15 Thread Daniel Veillard
On Fri, Jan 15, 2010 at 04:33:01PM +, Daniel P. Berrange wrote: > On Fri, Jan 15, 2010 at 01:39:18PM +0100, Daniel Veillard wrote: > > On Fri, Jan 08, 2010 at 05:22:58PM +, Daniel P. Berrange wrote: > > > All guest devices now use a common device address structure > > > summarized by: > > >

Re: [libvirt] [PATCH 34/34] Convert VirtIO balloon over to -device syntax

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:30PM +, Daniel P. Berrange wrote: > Replace > >-balloon virtio > > With > >-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 > > This allows it to get correct assigned PCI address as declared in > previous patch ACK, Daniel -- Daniel Veill

Re: [libvirt] [PATCH 33/34] Auto-assign PCI addresses

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:29PM +, Daniel P. Berrange wrote: > Instead of relying on QEMU to assign PCI addresses and then querying > them with 'info pci', manually assign all PCI addresses before starting > the guest. These addresses are not stable across reboots. That will > come in a lat

Re: [libvirt] [PATCH 32/34] Pass -vga none if no video card specified

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:28PM +, Daniel P. Berrange wrote: > QEMU always configures a VGA card. If no video card is included in > the libvirt XML, it is neccessary to explicitly turn off the default > using -vga none > > * src/qemu/qemu_conf.c: Pass -vga none if no video card is configure

Re: [libvirt] [PATCH 31/34] Add support for explicit -sdl flag to QEMU

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:27PM +, Daniel P. Berrange wrote: > Not all QEMU builds default to SDL graphics for their display. > Newer QEMU now has an explicit -sdl flag, which we can use to > explicitly request SDL intead of relying on the default. This > protects libvirt against unexpected

Re: [libvirt] [PATCH 30/34] Convert guestfwd to -device, and add -sdl explicit args

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:26PM +, Daniel P. Berrange wrote: > The old syntax was > >-chardev SOMECONFIG >-nic user,guestfwd=tcp:IP:PORT-chardev:CHARDEV > > The new syntax is > >-chardev SOMECONFIG >-netdev user,guestfwd=tcp:IP:PORT,chardev=ID,id=user-ID > --- > src/qemu/

Re: [libvirt] Current cpu and memory usage for Host and Domains

2010-01-15 Thread su disheng
Seem there is no way to get host CPU usage in libvirt API? I can get freeMemory by virNodeGetFreeMemory, but no cpu usage API. How about add a new api for it? The host CPU usage is also important for VM creation and migration decision, like the free memory. Yes, I know, I can got it from "top"...:

Re: [libvirt] [PATCH 29/34] Convert PCI device assignment over to -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:25PM +, Daniel P. Berrange wrote: > The old syntax is > > -pcidevice host=BUS:SLOT:FUNCTION > > The new syntax is > > -device pci-assign,host=BUS:SLOT:FUNCTION,addr=,id=host0 > --- > src/qemu/qemu_conf.c | 51 > +

Re: [libvirt] [PATCH 28/34] Convert USB input devices to -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:24PM +, Daniel P. Berrange wrote: > --- > src/qemu/qemu_conf.c | 34 -- > 1 files changed, 32 insertions(+), 2 deletions(-) > > diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c > index 1ea61a9..3b39a91 100644 > --- a/src/

Re: [libvirt] [PATCH 27/34] Convert USB hostdevices over to -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:23PM +, Daniel P. Berrange wrote: > The old syntax was > >-usbdevice host:PRODUCT:VENDOR > > Or > >-usbdevice host:BUS.DEV > > The new syntax is > >-device usb-host,product=PRODUCT,vendor=VENDOR > > Or > >-device usb-host,hostbus=BUS,hostaddr

Re: [libvirt] [PATCH 26/34] Convert USB disks over to -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:22PM +, Daniel P. Berrange wrote: > The previous syntax was severely limited in its options > > -usbdevice disk:/home/berrange/output.img > > The new syntax is the same as for other disk types > > -drive file=/home/berrange/output.img,if=none,id=usb-1,index=

Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Marc Haber
On Fri, Jan 15, 2010 at 05:45:27PM +0100, Marc Haber wrote: > Took that patch, applied it to Debian's 0.7.5-4 source package, built > the package, installed it, same error. Looks to me like the issue is still present in git head. git clone ./autogen create debian/ to allow building the debian pac

[libvirt] [PATCH] Fix validation of news.html

2010-01-15 Thread Matthias Bolte
FYI, I pushed this simple fix. Matthias --- docs/news.html.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/docs/news.html.in b/docs/news.html.in index 7e06096..83b394f 100644 --- a/docs/news.html.in +++ b/docs/news.html.in @@ -26,7 +26,7 @@ and check the ChangeLog t

Re: [libvirt] [PATCH] gnulib added a new syntax-check test: use $(VAR), not @VAR@

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 11:11:08AM +0100, Jim Meyering wrote: > Updating to newer gnulib also pulled in a new sytnax-check > test that evoked new warnings. No big deal, but I addressed them. > The only trick was to see that the warnings about @SCHEMADIR@ > and @SYSCONFDIR@ were false positives. T

[libvirt] [PATCH] gnulib added a new syntax-check test: use $(VAR), not @VAR@

2010-01-15 Thread Jim Meyering
Updating to newer gnulib also pulled in a new sytnax-check test that evoked new warnings. No big deal, but I addressed them. The only trick was to see that the warnings about @SCHEMADIR@ and @SYSCONFDIR@ were false positives. To allow them, I defined the variable in cfg.mk. See below. >From 6e7

Re: [libvirt] [PATCH 21/34] Convert character devices over to use -device

2010-01-15 Thread Daniel P. Berrange
On Wed, Jan 13, 2010 at 03:56:03PM +0100, Paolo Bonzini wrote: > On 01/08/2010 06:23 PM, Daniel P. Berrange wrote: > >diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c > >index 5dcd50f..eded887 100644 > >--- a/src/qemu/qemu_conf.c > >+++ b/src/qemu/qemu_conf.c > >@@ -1592,6 +1592,9 @@ static

Re: [libvirt] [PATCH 24/34] Convert disk drive over to use -device where available

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:20PM +, Daniel P. Berrange wrote: > The current preferred syntax for disk drives uses > > -drive file=/vms/plain.qcow,if=virtio,index=0,boot=on,format=qcow > > The new syntax splits this up into a pair of linked args > > -drive file=/vms/plain.qcow,if=none,i

Re: [libvirt] [PATCH 25/34] Convert NICs over to use -device & -netdev where possible

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:21PM +, Daniel P. Berrange wrote: > The current syntax uses a pair of args > >-net nic,macaddr=52:54:00:56:6c:55,vlan=3,model=pcnet,name=pcnet.0 >-net user,vlan=3,name=user.0 > > The new syntax does not need the vlan craziness anymore, and > so has a sim

Re: [libvirt] [PATCH 23/34] Convert audio devices over to -device syntax

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:19PM +, Daniel P. Berrange wrote: > The current syntax for audio devices is a horrible multiplexed > arg > > -soundhw sb16,pcspk,ac97 > > The new syntax is > > -device sb16,id=sound0 > > or > > -device AC97,id=sound1,addr= > > NB, pcspk still uses

Re: [libvirt] [PATCH 22/34] Convert watchdog to -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:18PM +, Daniel P. Berrange wrote: > The current syntax for watchdogs is > > -watchdog i6300esb > > The new syntax will now be > > -device i6300esb,id=watchdogNN,addr= > --- > src/qemu/qemu_conf.c | 91 > +

Re: [libvirt] [PATCH 21/34] Convert character devices over to use -device

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:17PM +, Daniel P. Berrange wrote: > The current character device syntax uses either > > -serial tty,path=/dev/ttyS2 > > Or > > -chardev tty,id=serial0,path=/dev/ttyS2 -serial chardev:serial0 > > With the new -device support, we now prefer > > -chardev fi

Re: [libvirt] [PATCH 20/34] Assign device aliases for all devices at startup

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 05:42:31PM +0100, Daniel Veillard wrote: > On Fri, Jan 08, 2010 at 05:23:16PM +, Daniel P. Berrange wrote: > > When starting a guest, give every device a unique alias. This will > > be used for the 'id' parameter in -device args in later patches. > > It can also be used

Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Marc Haber
On Fri, Jan 15, 2010 at 02:29:09PM +, Daniel P. Berrange wrote: > If I were a betting man, I'd bet on this changeset which was missed > from the 0.7.5 release > > http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5 Took that patch, applied it to Debian's

Re: [libvirt] [PATCH 20/34] Assign device aliases for all devices at startup

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:16PM +, Daniel P. Berrange wrote: > When starting a guest, give every device a unique alias. This will > be used for the 'id' parameter in -device args in later patches. > It can also be used to uniquely identify devices in the monitor > > For old QEMU without -de

Re: [libvirt] [PATCH 02/34] Introduce a standardized data structure for device addresses

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 01:39:18PM +0100, Daniel Veillard wrote: > On Fri, Jan 08, 2010 at 05:22:58PM +, Daniel P. Berrange wrote: > > All guest devices now use a common device address structure > > summarized by: > > > > enum virDomainDeviceAddressType { > > VIR_DOMAIN_DEVICE_ADDRESS_TY

Re: [libvirt] [PATCH 19/34] Probe for -device and use -nodefaults

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:15PM +, Daniel P. Berrange wrote: > Probe for the new -device flag and if available set the -nodefaults > flag, instead of using -net none, -serial none or -parallel none. > Other device types will be converted to use -device in later patches. > The -nodefaults fla

Re: [libvirt] [PATCH] Minor fixes for API extension doc

2010-01-15 Thread Dave Allan
On 01/15/2010 10:30 AM, Jim Fehlig wrote: Update the API Extensions doc to reflect new source directory layout. --- docs/api_extension.html.in |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api_extension.html.in b/docs/api_extension.html.in index 59d3414..

Re: [libvirt] [PATCH 18/34] Add device info to serial, parallel, channel, input & fs devices

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:14PM +, Daniel P. Berrange wrote: > Although the serial, parallel, chanel, input & fs devices do > not have PCI address info, they can all have device aliases. > Thus it neccessary to associate the virDomainDeviceInfo data > with them all. > > * src/conf/domain_co

Re: [libvirt] [PATCH 17/34] Introduce device aliases

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:13PM +, Daniel P. Berrange wrote: > This patch introduces the support for giving all devices a short, > unique name, henceforth known as a 'device alias'. These aliases > are not set by the end user, instead being assigned by the hypervisor > if it decides it want

Re: [libvirt] [PATCH 16/34] Clear assigned PCI devices at shutdown

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:12PM +, Daniel P. Berrange wrote: > The PCI device addresses are only valid while the VM is running, > since they are auto-assigned by QEMU. After shutdown they must > all be cleared. Future QEMU driver enhancement will allow for > persistent PCI address assignment

Re: [libvirt] [PATCH 16/34] Clear assigned PCI devices at shutdown

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 05:12:52PM +0100, Daniel Veillard wrote: > On Fri, Jan 08, 2010 at 05:23:12PM +, Daniel P. Berrange wrote: > > The PCI device addresses are only valid while the VM is running, > > since they are auto-assigned by QEMU. After shutdown they must > > all be cleared. Future Q

[libvirt] [PATCH] Minor fixes for API extension doc

2010-01-15 Thread Jim Fehlig
Update the API Extensions doc to reflect new source directory layout. --- docs/api_extension.html.in |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api_extension.html.in b/docs/api_extension.html.in index 59d3414..de6eedc 100644 --- a/docs/api_extension.html.i

[libvirt] [PATCH] Use closest CPU model when decoding from CPUID

2010-01-15 Thread Jiri Denemark
Current implementation of x86Decode() used for CPUID -> model+features translation does not always select the closest CPU model. When walking through all models from cpu_map.xml the function considers a new candidate as a better choice than a previously selected candidate only if the new one is a s

[libvirt] [PATCH] esx: Add stubs for secondary driver types

2010-01-15 Thread Matthias Bolte
This stops libvirt from probing for a libvirtd on the ESX server and sets the base for the implementation of the secondary drivers. --- src/Makefile.am|5 ++ src/esx/esx_device_monitor.c | 93 +++ src/esx/esx_device_monitor.h | 29 ++

Re: [libvirt] [PATCH 15/34] Auto-add disk controllers based on defined disks

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:11PM +, Daniel P. Berrange wrote: > Existing applications using libvirt are not aware of the disk > controller concept. Thus, after parsing the definitions > in the XML, it is neccessary to create elements > to satisfy all requested disks, as per their defined dr

Re: [libvirt] [PATCH 13/34] Remove restriction on duplicated sound devices in parser

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:09PM +, Daniel P. Berrange wrote: > It is perfectly acceptable to have multiple sound devices of > same type in guest configuration. If the underlying hypervisor > does not like this, it is its job to complain, not the XML > parser's > > * src/conf/domain_conf.c:

Re: [libvirt] [PATCH 12/34] Detect PCI addresses at QEMU startup

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:08PM +, Daniel P. Berrange wrote: > Hotunplug of devices requires that we know their PCI address. Even > hotplug of SCSI drives, required that we know the PCI address of > the SCSI controller to attach the drive to. We can find this out > by running 'info pci' and

Re: [libvirt] [PATCH 14/34] Fixed char device stuff

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:10PM +, Daniel P. Berrange wrote: > Temp hack > --- > src/qemu/qemu_monitor_text.c |9 +++-- > 1 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c > index 52cd97c..2b8c1e8 100644 >

Re: [libvirt] [PATCH 11/34] Properly support SCSI drive hotplug

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:07PM +, Daniel P. Berrange wrote: > The current SCSI hotplug support attaches a brand new SCSI controller > for every disk. This is broken because the semantics differ from those > used when starting the VM initially. In the latter case, each SCSI > controller is f

Re: [libvirt] [PATCH 10/34] Implement SCSI controller hotplug/unplug for QEMU

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:06PM +, Daniel P. Berrange wrote: > From: Wolfgang Mauerer > > This patch allows for explicit hotplug/unplug of SCSI controllers. > Ordinarily this is not required, since QEMU/libvirt will attach > a new SCSI controller whenever one is required. Allowing explicit

Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 03:13:25PM +0100, Marc Haber wrote: > Hi, > > On Fri, Jan 15, 2010 at 11:43:26AM +, Matthew Booth wrote: > > Could you please post the full domain XML, and the QEMU command line it > > generated? You can get the latter from > > /var/log/libvirt/qemu/.log. Can you also p

Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Marc Haber
Hi, On Fri, Jan 15, 2010 at 11:43:26AM +, Matthew Booth wrote: > Could you please post the full domain XML, and the QEMU command line it > generated? You can get the latter from > /var/log/libvirt/qemu/.log. Can you also post the versions of > qemu and libvirt? $ cat /etc/libvirt/qemu/grml-te

Re: [libvirt] [PATCH 06/34] Add new domain device: "controller"

2010-01-15 Thread Daniel Veillard
On Fri, Jan 15, 2010 at 02:08:54PM +0100, Daniel Veillard wrote: > On Fri, Jan 08, 2010 at 05:23:02PM +, Daniel P. Berrange wrote: > > From: Wolfgang Mauerer > > > > This augments virDomainDevice with a element > > that is used to represent disk controllers (e.g., scsi > > controllers). The

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Matthias Bolte
2010/1/15 Matthew Booth : > On 15/01/10 10:37, Matthias Bolte wrote: >> 2010/1/14 Matthew Booth : >>> I'm trying to use the ESX driver to extract metadata from ESX in an easily >>> digestible form for driving V2V. I've noticed the domain XML seems to be >>> missing a few bits: >>> >>> >> >> This i

Re: [libvirt] [PATCH 09/34] Specify bus/unit instead of index for disks with QEMU

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 02:34:21PM +0100, Daniel Veillard wrote: > On Fri, Jan 08, 2010 at 05:23:05PM +, Daniel P. Berrange wrote: > > The current code for using -drive simply sets the -drive 'index' > > parameter. QEMU internally converts this to bus/unit depending > > on the type of drive. Th

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Matthew Booth
On 15/01/10 10:37, Matthias Bolte wrote: > 2010/1/14 Matthew Booth : >> I'm trying to use the ESX driver to extract metadata from ESX in an easily >> digestible form for driving V2V. I've noticed the domain XML seems to be >> missing a few bits: >> >> > > This is currently not implemented, but co

Re: [libvirt] [PATCH 09/34] Specify bus/unit instead of index for disks with QEMU

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:05PM +, Daniel P. Berrange wrote: > The current code for using -drive simply sets the -drive 'index' > parameter. QEMU internally converts this to bus/unit depending > on the type of drive. This does not give us precise control over > the bus/unit assignment though

Re: [libvirt] [PATCH 08/34] Split code for building QEMU -drive arg in separate method

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:04PM +, Daniel P. Berrange wrote: > To enable it to be called from multiple locations, split out > the code for building the -drive arg string. This will be needed > by later patches which do drive hotplug, the conversion to use > -device, and the conversion to con

Re: [libvirt] [PATCH 07/34] Convert monitor over to use virDomainDeviceAddress

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:03PM +, Daniel P. Berrange wrote: > Convert the QEMU monitor APIs over to use virDomainDeviceAddress > structs for passing addresses in/out, instead of individual bits. > This makes the number of parameters smaller & easier to deal with. > No functional change > >

Re: [libvirt] [PATCH 06/34] Add new domain device: "controller"

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:02PM +, Daniel P. Berrange wrote: > From: Wolfgang Mauerer > > This augments virDomainDevice with a element > that is used to represent disk controllers (e.g., scsi > controllers). The XML format is given by > > > > Actually we also allow decimal

Re: [libvirt] [PATCH 05/34] Set default disk controller/bus/unit props

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:01PM +, Daniel P. Berrange wrote: > When parsing the element specification, if no > is provided for the disk, then automatically assign one based on > the device name. This provides for backwards > compatability with existing applications using libvirt, while al

Re: [libvirt] [PATCH 04/34] Add address info to sound, video and watchdog devices

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:23:00PM +, Daniel P. Berrange wrote: > Add the virDomainDeviceAddress information to the sound, video > and watchdog devices. This means all of them gain the new XML > element > > > > This brings them upto par with disk/net/hostdev devices which > already have ad

Re: [libvirt] [PATCH 03/34] Extend the virDomainDeviceAddress struture to allow disk controller addresses

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:22:59PM +, Daniel P. Berrange wrote: > Introduce a new structure > > struct _virDomainDeviceDriveAddress { > unsigned int controller; > unsigned int bus; > unsigned int unit; > }; > > and plug that into virDomainDeviceAddress and

Re: [libvirt] [PATCH 02/34] Introduce a standardized data structure for device addresses

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:22:58PM +, Daniel P. Berrange wrote: > All guest devices now use a common device address structure > summarized by: > > enum virDomainDeviceAddressType { > VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE, > VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI, > }; > > struct _virD

[libvirt] [PATCH v2] Implement CPU topology support for QEMU driver

2010-01-15 Thread Jiri Denemark
QEMU's command line equivalent for the following domain XML fragment 2 ... is -smp 2,sockets=1,cores=2,threads=1 This syntax was introduced in QEMU-0.12. Version 2 changes: - -smp argument build split into a separate function - always add ",sockets=S,cores=C,t

Re: [libvirt] [PATCH 01/34] Make test suite output less verbose

2010-01-15 Thread Daniel Veillard
On Fri, Jan 08, 2010 at 05:22:57PM +, Daniel P. Berrange wrote: > Only print out '.' for each test case, full test output can be > re-enabled with VIR_TEST_VERBOSE=1, or VIR_TEST_DEBUG= > > Sample output now looks like > > TEST: statstest > ..

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Matthias Bolte
2010/1/15 Daniel P. Berrange : > On Fri, Jan 15, 2010 at 12:04:50PM +0100, Matthias Bolte wrote: >> 2010/1/15 Matthias Bolte : >> > 2010/1/14 Matthew Booth : >> >> I'm trying to use the ESX driver to extract metadata from ESX in an easily >> >> digestible form for driving V2V. I've noticed the doma

Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Matthew Booth
On 15/01/10 09:18, Marc Haber wrote: > [my apologies for this re-post. I stupidly managed to hide the first > instance of this mail away in an unrelated patch-thread and am thus > afraid that the people who could have answered didn't see it] > > Hi, > > I have one test host running Debian unstabl

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Daniel P. Berrange
On Fri, Jan 15, 2010 at 12:04:50PM +0100, Matthias Bolte wrote: > 2010/1/15 Matthias Bolte : > > 2010/1/14 Matthew Booth : > >> I'm trying to use the ESX driver to extract metadata from ESX in an easily > >> digestible form for driving V2V. I've noticed the domain XML seems to be > >> missing a few

Re: [libvirt] [PATCH] Fix compilation of virt-aa-helper.c

2010-01-15 Thread Matthias Bolte
2010/1/15 Jim Meyering : > Matthias Bolte wrote: >> Commit 5073aa994af460e775cb3e548528e28d7660fcc8 added an additional >> '}' to a case block that messed up the block structure of the get_files >> function. >> --- >>  src/security/virt-aa-helper.c |    1 - >>  1 files changed, 0 insertions(+), 1 d

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Matthias Bolte
2010/1/15 Matthias Bolte : > 2010/1/14 Matthew Booth : >> I'm trying to use the ESX driver to extract metadata from ESX in an easily >> digestible form for driving V2V. I've noticed the domain XML seems to be >> missing a few bits: >> >> > > This is currently not implemented, but could be by parsi

Re: [libvirt] Using ESX domain XML for V2V

2010-01-15 Thread Matthias Bolte
2010/1/14 Matthew Booth : > I'm trying to use the ESX driver to extract metadata from ESX in an easily > digestible form for driving V2V. I've noticed the domain XML seems to be > missing a few bits: > > This is currently not implemented, but could be by parsing the CPUIDs. This is on my todo lis

Re: [libvirt] [PATCH] Add docs about new mailing list

2010-01-15 Thread Jim Meyering
Daniel P. Berrange wrote: > * docs/contact.html.in: Document new users mailing list ... Sounds good. > + > + Both mailing lists require that you subscribe before posting > to the list, Since both lists are using listhelper, http://savannah.gnu.org/maintenance/ListHelperAntiSpam it i

Re: [libvirt] newer gnulib: requires several header-include fixes

2010-01-15 Thread Daniel Veillard
On Fri, Jan 15, 2010 at 11:03:01AM +0100, Jim Meyering wrote: > A week or two ago, upstream gnulib was fixed to be more namespace friendly > in how it creates replacement headers. For some of its replacements > (e.g., , used via gnulib/lib/stdio.h), it would unnecessarily > include another header,

Re: [libvirt] [PATCH] xen: do not report a write-to-Xen-daemon failure as a read failure

2010-01-15 Thread Daniel Veillard
On Fri, Jan 15, 2010 at 10:41:49AM +0100, Jim Meyering wrote: > FYI, pushed as obvious... > > >From 02765872876ba8a820a5047f664da8a7b870b7b9 Mon Sep 17 00:00:00 2001 > From: Jim Meyering > Date: Fri, 15 Jan 2010 10:22:08 +0100 > Subject: [PATCH] xen: do not report a write-to-Xen-daemon failure as

Re: [libvirt] [PATCH] Fix compilation of virt-aa-helper.c

2010-01-15 Thread Jim Meyering
Matthias Bolte wrote: > Commit 5073aa994af460e775cb3e548528e28d7660fcc8 added an additional > '}' to a case block that messed up the block structure of the get_files > function. > --- > src/security/virt-aa-helper.c |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/src/

[libvirt] newer gnulib: requires several header-include fixes

2010-01-15 Thread Jim Meyering
A week or two ago, upstream gnulib was fixed to be more namespace friendly in how it creates replacement headers. For some of its replacements (e.g., , used via gnulib/lib/stdio.h), it would unnecessarily include another header, e.g., . That would make it so that an application using gnulib's co

[libvirt] [PATCH] xen: do not report a write-to-Xen-daemon failure as a read failure

2010-01-15 Thread Jim Meyering
FYI, pushed as obvious... >From 02765872876ba8a820a5047f664da8a7b870b7b9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 15 Jan 2010 10:22:08 +0100 Subject: [PATCH] xen: do not report a write-to-Xen-daemon failure as a read failure * src/xen/xend_internal.c (wr_sync): Correct the diagnos

Re: [libvirt] [RFC] Proposal for introduction of n etwork traffic filtering capabilities for filtering of n etwork traffic from and to VMs

2010-01-15 Thread Glennie Vignarajah
Le 14/01/2010 vers 01:09, dans le message intitulé "Re: [libvirt] [RFC] Proposal for introduction of network trafficfiltering capabilities for filtering of network traffic from and to VMs", Dimitrios Pendarakis(Dimitrios Pendarakis ) a écrit: Hi, > Note that this is the case for th

[libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

2010-01-15 Thread Marc Haber
[my apologies for this re-post. I stupidly managed to hide the first instance of this mail away in an unrelated patch-thread and am thus afraid that the people who could have answered didn't see it] Hi, I have one test host running Debian unstable (kernel 2.6.32.3), and I would like to virtualize