[libvirt] [PATCH] qemu: Relax -no-shutdown check to [0.14.0, 0.15.0]

2011-10-17 Thread Jiri Denemark
The patch that fixes SIGTERM handling with -no-shutdown was taken into 0.15.1 stable release of qemu. --- src/qemu/qemu_capabilities.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 8f16a49..2f55000 1006

[libvirt] [PATCH] qemu: Do not wait if the PCI device is not managed when reattaching

2011-10-17 Thread Osier Yang
Waiting for qemu-kvm cleaning up the PCI bar(s) mapping with long time while the device is not managed is just waste of time. --- src/qemu/qemu_hostdev.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index c

[libvirt] [PATCH] Add support for autodestroy of guests to the LXC and UML drivers

2011-10-17 Thread Daniel P. Berrange
From: "Daniel P. Berrange" I wrote this months ago and thought I had already submitted/merged it. Obviously not. I need this for the virt sandbox tools asap. We recently added support for VIR_DOMAIN_START_AUTODESTROY and an impl to the QEMU driver. It is very desirable to support in other driver

[libvirt] [PATCH] qemu: Honor the original properties of PCI device when detaching

2011-10-17 Thread Osier Yang
This patch fixes two problems: 1) The device will be reattached to host even if it's not managed, as there is a "pciDeviceSetManaged". 2) The device won't be reattached to host with original driver properly. As it doesn't honor the device original properties which are m

Re: [libvirt] [PATCH] qemu: Relax -no-shutdown check to [0.14.0, 0.15.0]

2011-10-17 Thread Michal Privoznik
On 17.10.2011 12:18, Jiri Denemark wrote: > The patch that fixes SIGTERM handling with -no-shutdown was taken into > 0.15.1 stable release of qemu. > --- > src/qemu/qemu_capabilities.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/qemu/qemu_capabilities.c b/

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-17 Thread Osier Yang
于 2011年10月17日 09:40, Osier Yang 写道: 于 2011年10月15日 02:53, Eric Blake 写道: On 10/12/2011 10:05 PM, Osier Yang wrote: When failing on starting a domain, it tries to reattach all the PCI devices defined in the domain conf, regardless of whether the devices are still used by other domain. This will c

[libvirt] [libvirt-glib] Remove vir- prefix from signals

2011-10-17 Thread Christophe Fergeau
gobject signals are generally not namespaced this way, removing this prefix makes things look a bit nicer. --- libvirt-gobject/libvirt-gobject-connection.c | 50 +- libvirt-gobject/libvirt-gobject-domain.c | 10 +++--- libvirt-gobject/libvirt-gobject-manager.c|

[libvirt] [libvirt-glib] Use gvir-stream as GVirStream quark name

2011-10-17 Thread Christophe Fergeau
The previous vir-g-stream name isn't consistent with the naming of all the other quarks used in libvirt-glib --- libvirt-gobject/libvirt-gobject-stream.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libvirt-gobject/libvirt-gobject-stream.c b/libvirt-gobject/libvirt-go

Re: [libvirt] [PATCHv2 01/13] virbuf: fix const-correctness

2011-10-17 Thread Hai Dong Li
On 09/30/2011 12:22 AM, Eric Blake wrote: Although the compiler wasn't complaining (since it was the pointer, rather than what was being pointed to, that was actually const), it looks quite suspicious to call a function with an argument labeled const when the nature of the pointer (virBufferPtr)

Re: [libvirt] [libvirt-glib] Use gvir-stream as GVirStream quark name

2011-10-17 Thread Daniel P. Berrange
On Mon, Oct 17, 2011 at 01:31:00PM +0200, Christophe Fergeau wrote: > The previous vir-g-stream name isn't consistent with the naming of > all the other quarks used in libvirt-glib > --- > libvirt-gobject/libvirt-gobject-stream.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > d

Re: [libvirt] [libvirt-glib] Remove vir- prefix from signals

2011-10-17 Thread Daniel P. Berrange
On Mon, Oct 17, 2011 at 01:32:58PM +0200, Christophe Fergeau wrote: > gobject signals are generally not namespaced this way, removing > this prefix makes things look a bit nicer. > --- > libvirt-gobject/libvirt-gobject-connection.c | 50 > +- > libvirt-gobject/libvirt-go

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt

2011-10-17 Thread Serge E. Hallyn
Quoting Eli Qiao (ta...@linux.vnet.ibm.com): > hi Serge : Thanks for taking a look. > I checked the code , only in lxc_controller.c call virFileOpenTtyAt(). > I didn't test the path, but my suggestion is that modify the > utility function in /src/util/util.c instead of adding a new > fun

[libvirt] [BUG, RFC] Python generator: missing error_codes in generated libvirError exceptions

2011-10-17 Thread Philipp Hahn
Hello, I just encountered a situation, where a KVM instance was reported as "no state" in virsh. This broke some code of mine, which was using "lookupByUUID()" to lookup several VMs. The Python code did raise a libvirt.libvirtError('virDomainLookupByUUID() failed',), where all get_error_*() fu

Re: [libvirt] [PATCH 00/10] Console coruption with two or more clients series

2011-10-17 Thread Peter Krempa
I rebased this series for current head. To fetch this series from my repo conviniently: git checkout -b console_corruption 1afcfbdda0cac112faa61f74ec943e46aa43f2f5 git pull git://aeon.pipo.sk/libvirt.git console_corruption Peter -- libvir-list mailing list libvir-list@redhat.com https://www.red

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt

2011-10-17 Thread Eric Blake
On 10/17/2011 07:26 AM, Serge E. Hallyn wrote: Quoting Eli Qiao (ta...@linux.vnet.ibm.com): hi Serge : Thanks for taking a look. I checked the code , only in lxc_controller.c call virFileOpenTtyAt(). I didn't test the path, but my suggestion is that modify the utility function in

[libvirt] [PATCH V1 2/6] Introduce an internal priority for chains

2011-10-17 Thread Stefan Berger
For better handling of the sorting of chains introduce an internally used priority. Use a lookup table to store the priorities. For now their actual values do not matter just that the values cause the chains to be properly sorted through changes in the following patches. --- src/conf/nwfilter_con

Re: [libvirt] [PATCHv2 01/13] virbuf: fix const-correctness

2011-10-17 Thread Eric Blake
On 10/17/2011 05:20 AM, Hai Dong Li wrote: On 09/30/2011 12:22 AM, Eric Blake wrote: Although the compiler wasn't complaining (since it was the pointer, rather than what was being pointed to, that was actually const), it looks quite suspicious to call a function with an argument labeled const wh

[libvirt] [PATCH V1 4/6] Use scripting for cleaning and renaming of chains

2011-10-17 Thread Stefan Berger
Use scripts for the renaming and cleaning up of chains. This allows us to get rid of some of the code that is only capable of renaming and removing chains whose names are hardcoded. A shell function 'collect_chains' is introduced that is given the name of an ebtables chain and then recursively det

[libvirt] [PATCH V1 5/6] Use actual name of a chain in data structure

2011-10-17 Thread Stefan Berger
Use the name of the chain rather than its type index (enum). This pushes the later enablement of chains with user-given names into the XML parser. For now we still only allow those names that are well known ('root', 'arp', 'rarp', 'ipv4' and 'ipv6'). --- src/conf/nwfilter_conf.c

[libvirt] [PATCH V1 1/6] Extend virHashTable with function to get hash tables keys

2011-10-17 Thread Stefan Berger
Add a function to the virHashTable for getting an array of the hash table's keys and have the keys optionally sorted. --- src/libvirt_private.syms |3 + src/util/hash.c | 98 +++ src/util/hash.h | 14 ++ 3 files changed, 11

[libvirt] [PATCH V1 3/6] Make filter creation in root table more flexible

2011-10-17 Thread Stefan Berger
Use the previously introduced chain priorities to sort the chains for access from the 'root' table and have them created in the proper order. This gets rid of a lot of code that was previously creating the chains in a more hardcoded way. To detmerine what protocol a filter is used for evaluation

[libvirt] [PATCH V1 0/6] Make part of inner workings of nwfilters more flexible

2011-10-17 Thread Stefan Berger
The following series of patches re-does some of the inner workings of nwfilters with the goal to enable users to write filters that have other than the system-known chains supported right now ('root','arp','rarp','ipv4' and 'ipv6'). Ideally users should be able to provide a chain name in the chains

[libvirt] [PATCH V1 6/6] Example of adding a new filter called arpmac.

2011-10-17 Thread Stefan Berger
Only as an example show how to add a new 'system filter' called 'arpmac'. Using 'prefix matching' introduced in previous patches, it generates a table 'arpmac' that will be jumped into using '-p arp'. The below patch adds arpmac with a priority of 650, which helps sorting its entry in the 'root' t

[libvirt] [PATCH] Fix two comments related to error handling

2011-10-17 Thread Philipp Hahn
Signed-off-by: Philipp Hahn --- include/libvirt/virterror.h |2 +- python/libvirt-override.py |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index dfbe2bc..a8549b7 100644 --- a/include/libvirt/virterror.h ++

Re: [libvirt] [PATCH] Fix two comments related to error handling

2011-10-17 Thread Peter Krempa
On 10/17/2011 05:02 PM, Philipp Hahn wrote: Signed-off-by: Philipp Hahn --- include/libvirt/virterror.h |2 +- python/libvirt-override.py |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ACK and pushed. Peter -- libvir-list mailing list libvir-list@redhat.com https://www.re

[libvirt] Compiler warnings

2011-10-17 Thread Alex Jia
Hi all, I meet the following compiler warnings today: .. CC libvirt_util_la-buf.lo util/buf.c: In function 'virBufferEscape': util/buf.c:430: warning: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op] CC libvirt_util_la-command.lo .. CC libvir

Re: [libvirt] Compiler warnings

2011-10-17 Thread Eric Blake
On 10/17/2011 09:35 AM, Alex Jia wrote: Hi all, I meet the following compiler warnings today: .. CC libvirt_util_la-buf.lo util/buf.c: In function 'virBufferEscape': util/buf.c:430: warning: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op] Which version

Re: [libvirt] [libvirt PATCHv3 03/10] reverse sense of address matching

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch changes rules of the form: if ! addr drop accept to: if addr return ... drop The patch adds a "mac" chain to do a mac address list and separates the "arp" chain into separate "arpmac" and "arpip"

Re: [libvirt] Compiler warnings

2011-10-17 Thread Alex Jia
Eric, # rpm -q gcc gcc-4.4.6-3.el6.x86_64 Regards, Alex - Original Message - From: "Eric Blake" To: "Alex Jia" Cc: libvir-list@redhat.com Sent: Monday, October 17, 2011 11:38:50 PM Subject: Re: [libvirt] Compiler warnings On 10/17/2011 09:35 AM, Alex Jia wrote: > Hi all, > I meet the

Re: [libvirt] [libvirt PATCHv3 04/10] make default chain policy "DROP"

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch simplifies the table rules by setting the protocol chains policy to be "DROP" and removes the explicit "-j DROP" entries that the protocol rules had previously. It also makes "no-other-rarp-traffic.xml" obsolete. I agree with Danie

[libvirt] [PATCH] Fix VPATH build

2011-10-17 Thread Jiri Denemark
probes.h is generated in build directory; setting a dependency on probes.h from source directory doesn't work well in VPATH builds. Caused by commit 1afcfbdda0cac112faa61f74ec943e46aa43f2f5 --- src/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Makefile.a

Re: [libvirt] [PATCH] Fix VPATH build

2011-10-17 Thread Eric Blake
On 10/17/2011 09:54 AM, Jiri Denemark wrote: probes.h is generated in build directory; setting a dependency on probes.h from source directory doesn't work well in VPATH builds. Caused by commit 1afcfbdda0cac112faa61f74ec943e46aa43f2f5 --- src/Makefile.am |2 +- 1 files changed, 1 insertion

[libvirt] [PATCH] qemu: avoid dereferencing a NULL pointer

2011-10-17 Thread ajia
From: Alex Jia * src/qemu/qemu_hostdev.c: function 'pciDeviceListFind' probably explicitly returns null, however, the function 'pciDeviceSetUsedBy' directly uses it without any judgement. Signed-off-by: Alex Jia --- src/qemu/qemu_hostdev.c |5 ++--- 1 files changed, 2 insertions(+), 3

Re: [libvirt] Compiler warnings

2011-10-17 Thread Eric Blake
On 10/17/2011 09:51 AM, Alex Jia wrote: Eric, # rpm -q gcc gcc-4.4.6-3.el6.x86_64 I'm still not seeing it on my RHEL 6 host. What version of glibc (in case it's a header problem), and is this the latest libvirt.git or a particular source rpm rebuild? What's on line 430 of the file in questi

Re: [libvirt] [libvirt PATCHv3 05/10] allow chain modification

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch adds the internal capability to add rules to existing chains instead of using temporary chains and to generate placeholders for chains that are referenced without generating a rule for them immediately. Finally, it includes variabl

Re: [libvirt] Compiler warnings

2011-10-17 Thread Alex Jia
Eric, It's latest libvirt upstream, current commit id is commit 0a71c79. # rpm -q glibc glibc-2.12-1.42.el6.x86_64 399 void 400 virBufferEscape(const virBufferPtr buf, 401 const char *toescape, 402 const char *format, 403 const char *str) 404 {

Re: [libvirt] [PATCH] qemu: avoid dereferencing a NULL pointer

2011-10-17 Thread Eric Blake
On 10/17/2011 10:09 AM, a...@redhat.com wrote: From: Alex Jia * src/qemu/qemu_hostdev.c: function 'pciDeviceListFind' probably explicitly returns null, however, the function 'pciDeviceSetUsedBy' directly uses it without any judgement. Signed-off-by: Alex Jia --- src/qemu/qemu_hostdev.c

[libvirt] [PATCH] Fix virt-sanlock-cleanup documentation

2011-10-17 Thread Philipp Hahn
The referenced page does not exist, but locking.html has a section about sanlock. Signed-off-by: Philipp Hahn --- tools/virt-sanlock-cleanup.in |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/virt-sanlock-cleanup.in b/tools/virt-sanlock-cleanup.in index 72cd5e

Re: [libvirt] [libvirt PATCHv3 07/10] support variable value changing

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch adds a function that applies or deletes filter rules to existing chains. Rules referencing the given variable are instantiated with the given value, or optionally deleted. For example, passing variable "IP" with different values will insta

Re: [libvirt] [PATCH] qemu: avoid dereferencing a NULL pointer

2011-10-17 Thread Alex Jia
- Original Message - From: "Eric Blake" False positive. Just a few lines earlier, in loop 4, we guaranteed that dev was added to driver->activePciHostdevs, therefore, activeDev cannot be NULL here. That said, we could probably simplify things by consolidating loop 5 and 6 into one, a

Re: [libvirt] [libvirt PATCHv3 09/10] add leasefile support

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch adds support for saving DHCP snooping leases to an on-disk file and restoring saved leases that are still active on restart. Signed-off-by: David L Stevens --- src/nwfilter/nwfilter_dhcpsnoop.c | 370 +++

Re: [libvirt] Compiler warnings

2011-10-17 Thread Eric Blake
On 10/17/2011 11:03 AM, Eric Blake wrote: On 10/17/2011 10:17 AM, Alex Jia wrote: Eric, It's latest libvirt upstream, current commit id is commit 0a71c79. # rpm -q glibc glibc-2.12-1.42.el6.x86_64 430 if (strchr(toescape, *cur)) CC libvirt_util_la-buf.lo util/buf.c: In function 'virBuffe

Re: [libvirt] Compiler warnings

2011-10-17 Thread Eric Blake
On 10/17/2011 10:17 AM, Alex Jia wrote: Eric, It's latest libvirt upstream, current commit id is commit 0a71c79. # rpm -q glibc glibc-2.12-1.42.el6.x86_64 430 if (strchr(toescape, *cur)) CC libvirt_util_la-buf.lo util/buf.c: In function 'virBufferEscape': util/buf.c:430:

Re: [libvirt] [PATCH] Fix virt-sanlock-cleanup documentation

2011-10-17 Thread Eric Blake
On 10/17/2011 10:21 AM, Philipp Hahn wrote: The referenced page does not exist, but locking.html has a section about sanlock. Signed-off-by: Philipp Hahn --- tools/virt-sanlock-cleanup.in |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) ACK and pushed. -- Eric Blake ebl...

Re: [libvirt] [libvirt PATCHv3 04/10] make default chain policy "DROP"

2011-10-17 Thread David Stevens
Stefan Berger wrote on 10/17/2011 08:50:14 AM: > I agree with Daniel's previous comments that this could introduce > compatibility problems. It would be best not to change it or if really > need be later on introduce an XML attribute for a chain that allows to > choose whether the default po

Re: [libvirt] [libvirt PATCHv3 05/10] allow chain modification

2011-10-17 Thread David Stevens
Stefan Berger wrote on 10/17/2011 09:07:12 AM: > On 10/12/2011 03:50 PM, David L Stevens wrote: > >This patch adds the internal capability to add rules to existing > > chains instead of using temporary chains and to generate placeholders for > > chains that are referenced without generating

Re: [libvirt] [libvirt PATCHv3 05/10] allow chain modification

2011-10-17 Thread Stefan Berger
On 10/17/2011 01:23 PM, David Stevens wrote: Stefan Berger wrote on 10/17/2011 09:07:12 AM: On 10/12/2011 03:50 PM, David L Stevens wrote: This patch adds the internal capability to add rules to existing chains instead of using temporary chains and to generate placeholders for chains th

Re: [libvirt] [PATCH] qemu: Do not wait if the PCI device is not managed when reattaching

2011-10-17 Thread Eric Blake
On 10/17/2011 04:58 AM, Osier Yang wrote: Waiting for qemu-kvm cleaning up the PCI bar(s) mapping with long time while the device is not managed is just waste of time. --- src/qemu/qemu_hostdev.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) ACK. -- Eric Blake e

Re: [libvirt] [libvirt PATCHv3 04/10] make default chain policy "DROP"

2011-10-17 Thread Stefan Berger
On 10/17/2011 01:04 PM, David Stevens wrote: Stefan Berger wrote on 10/17/2011 08:50:14 AM: I agree with Daniel's previous comments that this could introduce compatibility problems. It would be best not to change it or if really need be later on introduce an XML attribute for a chain that all

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-17 Thread Eric Blake
On 10/17/2011 04:44 AM, Osier Yang wrote: After thinking a while, even we set the used_by during domains reloading, the other attrs (dev->unbind_from_stub, dev->reprobe, dev->remove_slot) of the PCI dev still will be lost. We can't known what values should be for these attrs as generally they are

Re: [libvirt] [libvirt PATCHv3 07/10] support variable value changing

2011-10-17 Thread David Stevens
Stefan Berger wrote on 10/17/2011 09:17:21 AM: > > +int > > +virNWFilterChangeVar(virConnectPtr conn, > > +if (virNWFilterHashTablePut(vars, var, value, 1)) { > > +virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, _("Cound not add " > > + "variable \"

Re: [libvirt] [PATCH 3/3] snapshot: implement LIST_LEAVES flag in esx

2011-10-17 Thread Eric Blake
On 10/15/2011 04:47 PM, Matthias Bolte wrote: 2011/10/8 Eric Blake: Relatively straight-forward filtering. * src/esx/esx_vi.h (esxVI_GetNumberOfSnapshotTrees) (esxVI_GetSnapshotTreeNames): Add parameter. * src/esx/esx_vi.c (esxVI_GetNumberOfSnapshotTrees) (esxVI_GetSnapshotTreeNames): Allow lea

Re: [libvirt] [libvirt PATCHv3 05/10] allow chain modification

2011-10-17 Thread David Stevens
Stefan Berger wrote on 10/17/2011 10:31:29 AM: > > was not. > Yes, then I understood this correctly. See the other mails regarding the > problems I am seeing with it. If there was a way to figure out at what > position to insert a rule into an existing chain, i.e. at position 5, > rather th

Re: [libvirt] [PATCH] Add support for autodestroy of guests to the LXC and UML drivers

2011-10-17 Thread Eric Blake
On 10/17/2011 04:32 AM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" I wrote this months ago and thought I had already submitted/merged it. Obviously not. I need this for the virt sandbox tools asap. We recently added support for VIR_DOMAIN_START_AUTODESTROY and an impl to the QEMU driv

Re: [libvirt] [PATCH] qemu: Honor the original properties of PCI device when detaching

2011-10-17 Thread Eric Blake
On 10/17/2011 05:07 AM, Osier Yang wrote: This patch fixes two problems: 1) The device will be reattached to host even if it's not managed, as there is a "pciDeviceSetManaged". 2) The device won't be reattached to host with original driver properly. As it doesn't honor t

Re: [libvirt] [libvirt PATCHv3 05/10] allow chain modification

2011-10-17 Thread Stefan Berger
On 10/17/2011 01:58 PM, David Stevens wrote: Stefan Berger wrote on 10/17/2011 10:31:29 AM: was not. Yes, then I understood this correctly. See the other mails regarding the problems I am seeing with it. If there was a way to figure out at what position to insert a rule into an existing chai

Re: [libvirt] [libvirt PATCHv3 08/10] add DHCP snooping

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: + +#include + +#ifdef HAVE_LIBPCAP +#include +#endif HAVE_LIBPCAP also has to be handled in the parts that actually call the pcap library API and provide a way of failing if libpcap is not available. -- libvir-list mailing list libvir-list@redhat.

[libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-17 Thread Serge E. Hallyn
The glibc ones cannot handle ptys opened in a devpts not mounted at /dev/pts. Changelog: Oct 17: Per Eli Qiao, use VIR_ALLOC_N when appropriate, make sure to check return values, and follow coding style convention. Change lxcGetTtyGid() to return -1 on error, otherw

Re: [libvirt] [PATCH] Add AHCI support to qemu driver

2011-10-17 Thread Jim Fehlig
Adam Litke wrote: > On Mon, Oct 03, 2011 at 10:46:18PM -0600, Jim Fehlig wrote: > >> Adam Litke wrote: >> >>> Hi Jim. I was testing this and found that I could not boot from the sata >>> disks >>> I defined. When I switch them back to ide, they can be booted just fine. >>> Perhaps someth

Re: [libvirt] [PATCH] Add AHCI support to qemu driver

2011-10-17 Thread Eric Blake
On 09/28/2011 04:43 PM, Jim Fehlig wrote: Tested with multiple AHCI controllers and multiple disks attached to a controller. E.g., +++ b/src/qemu/qemu_capabilities.c @@ -139,6 +139,7 @@ VIR_ENUM_IMPL(qemuCaps, QEMU_CAPS_LAST, "no-shutdown", "cache-unsafe", /* 75

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-17 Thread Eric Blake
On 10/17/2011 01:04 PM, Serge E. Hallyn wrote: The glibc ones cannot handle ptys opened in a devpts not mounted at /dev/pts. Changelog: Oct 17: Per Eli Qiao, use VIR_ALLOC_N when appropriate, make sure to check return values, and follow coding style convention.

Re: [libvirt] [libvirt PATCHv3 04/10] make default chain policy "DROP"

2011-10-17 Thread David Stevens
Stefan Berger wrote on 10/17/2011 10:29:08 AM: > Yes, '_at_the_end_', that's what I thought. I am not sure whether this > particular requirement is the best way to proceed since obviously you > cannot have any other rules with lesser priority after the ones doing > the 'return' -- whatever th

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-17 Thread Serge E. Hallyn
Quoting Eric Blake (ebl...@redhat.com): > On 10/17/2011 01:04 PM, Serge E. Hallyn wrote: > >The glibc ones cannot handle ptys opened in a devpts not mounted at > >/dev/pts. > > > >Changelog: > > Oct 17: Per Eli Qiao, use VIR_ALLOC_N when appropriate, make > > sure to check return values

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-17 Thread Eric Blake
On 10/17/2011 03:29 PM, Serge E. Hallyn wrote: that matter, the whole point of the mount("devpts",...",gid=5") designation is that the new pty will be owned by gid 5, without needing to fchown() it. Are there kernels that are new enough to support newinstance mounting, yet old enough to not hono

Re: [libvirt] [PATCH] Add AHCI support to qemu driver

2011-10-17 Thread Jim Fehlig
Eric Blake wrote: > On 09/28/2011 04:43 PM, Jim Fehlig wrote: >> Tested with multiple AHCI controllers and multiple disks attached >> to a controller. E.g., >> >> +++ b/src/qemu/qemu_capabilities.c >> @@ -139,6 +139,7 @@ VIR_ENUM_IMPL(qemuCaps, QEMU_CAPS_LAST, >> "no-shutdown", >> >

Re: [libvirt] [libvirt PATCHv3 04/10] make default chain policy "DROP"

2011-10-17 Thread Stefan Berger
On 10/17/2011 05:22 PM, David Stevens wrote: Stefan Berger wrote on 10/17/2011 10:29:08 AM: Yes, '_at_the_end_', that's what I thought. I am not sure whether this particular requirement is the best way to proceed since obviously you cannot have any other rules with lesser priority after the on

Re: [libvirt] [libvirt PATCHv3 10/10] support multiple static IP addresses

2011-10-17 Thread Stefan Berger
On 10/12/2011 03:50 PM, David L Stevens wrote: This patch adds support for multiple static IP addresses in a comma-separated list. For example: ... Signed-off-by: David L Stevens --- src/nwfilter/nwfilter_gentech_driver.c | 26 +

Re: [libvirt] [PATCH] qemu: Do not wait if the PCI device is not managed when reattaching

2011-10-17 Thread Osier Yang
于 2011年10月18日 01:47, Eric Blake 写道: On 10/17/2011 04:58 AM, Osier Yang wrote: Waiting for qemu-kvm cleaning up the PCI bar(s) mapping with long time while the device is not managed is just waste of time. --- src/qemu/qemu_hostdev.c | 15 --- 1 files changed, 8 insertions(+), 7 deletio

Re: [libvirt] Compiler warnings

2011-10-17 Thread Wen Congyang
At 10/18/2011 01:04 AM, Eric Blake Write: > On 10/17/2011 11:03 AM, Eric Blake wrote: >> On 10/17/2011 10:17 AM, Alex Jia wrote: >>> Eric, >>> It's latest libvirt upstream, current commit id is commit 0a71c79. >>> >>> # rpm -q glibc >>> glibc-2.12-1.42.el6.x86_64 >>> >> >>> 430 if (strchr(toescape,

Re: [libvirt] [PATCHv2 01/13] virbuf: fix const-correctness

2011-10-17 Thread Hai Dong Li
On 10/17/2011 10:36 PM, Eric Blake wrote: On 10/17/2011 05:20 AM, Hai Dong Li wrote: On 09/30/2011 12:22 AM, Eric Blake wrote: Although the compiler wasn't complaining (since it was the pointer, rather than what was being pointed to, that was actually const), it looks quite suspicious to call a

Re: [libvirt] Compiler warnings

2011-10-17 Thread Wen Congyang
At 10/18/2011 01:03 AM, Eric Blake Write: > On 10/17/2011 10:17 AM, Alex Jia wrote: >> Eric, >> It's latest libvirt upstream, current commit id is commit 0a71c79. >> >> # rpm -q glibc >> glibc-2.12-1.42.el6.x86_64 >> > >> 430 if (strchr(toescape, *cur)) > CC libvirt_util_la-

Re: [libvirt] Compiler warnings

2011-10-17 Thread Wen Congyang
At 10/18/2011 09:32 AM, Wen Congyang Write: > At 10/18/2011 01:04 AM, Eric Blake Write: >> On 10/17/2011 11:03 AM, Eric Blake wrote: >>> On 10/17/2011 10:17 AM, Alex Jia wrote: Eric, It's latest libvirt upstream, current commit id is commit 0a71c79. # rpm -q glibc glibc-2.1

Re: [libvirt] Compiler warnings

2011-10-17 Thread Alex Jia
On 10/18/2011 10:09 AM, Wen Congyang wrote: At 10/18/2011 09:32 AM, Wen Congyang Write: At 10/18/2011 01:04 AM, Eric Blake Write: On 10/17/2011 11:03 AM, Eric Blake wrote: On 10/17/2011 10:17 AM, Alex Jia wrote: Eric, It's latest libvirt upstream, current commit id is commit 0a71c79. # rpm -

[libvirt] [PATCH] compile: Add a missing function 'pciDeviceListFind' to libvirt_private.syms

2011-10-17 Thread Xu He Jie
compile error: ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_hostdev.o): In function `qemuPrepareHostdevPCIDevices': /home/soulxu/data/work-code/libvirt/src/qemu/qemu_hostdev.c:183: undefined reference to `pciDeviceListFind' /home/soulxu/data/work-code/libvirt/src/qemu/qemu_hostd

Re: [libvirt] [PATCHv2 02/13] virbuf: improve testsuite reporting

2011-10-17 Thread Hai Dong Li
On 09/30/2011 12:22 AM, Eric Blake wrote: I had some temporary test failures while working on virbuf improvements in later patches, with output that looked like: Expected [<] Actual [<] which is pretty hard to figure out. Adding an Offset designation made it much easier to find which particula

Re: [libvirt] [PATCH] compile: Add a missing function 'pciDeviceListFind' to libvirt_private.syms

2011-10-17 Thread Wen Congyang
At 10/18/2011 10:46 AM, Xu He Jie Write: > compile error: > ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_hostdev.o): In > function `qemuPrepareHostdevPCIDevices': > /home/soulxu/data/work-code/libvirt/src/qemu/qemu_hostdev.c:183: undefined > reference to `pciDeviceListFind' > /h

Re: [libvirt] [PATCH] compile: Add a missing function 'pciDeviceListFind' to libvirt_private.syms

2011-10-17 Thread Xu He Jie
于 2011年10月18日 11:12, Wen Congyang 写道: At 10/18/2011 10:46 AM, Xu He Jie Write: compile error: ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_hostdev.o): In function `qemuPrepareHostdevPCIDevices': /home/soulxu/data/work-code/libvirt/src/qemu/qemu_hostdev.c:183: undefined refere

[libvirt] [PATCH v2] qemu: Honor the original properties of PCI device when detaching

2011-10-17 Thread Osier Yang
This patch fixes two problems: 1) The device will be reattached to host even if it's not managed, as there is a "pciDeviceSetManaged". 2) The device won't be reattached to host with original driver properly. As it doesn't honor the device original properties which are m

Re: [libvirt] [PATCHv2 03/13] virbuf: more detailed error reporting

2011-10-17 Thread Hai Dong Li
On 09/30/2011 12:22 AM, Eric Blake wrote: The next patch wants to add some sanity checking, which would be a different error than ENOMEM. Many existing callers blindly report OOM failure if virBuf reports an error, and this will be wrong in the (unlikely) case that they actually had a usage erro