[libvirt] [PATCH] build: require avahi instead of avahi-libs on rhel5.

2013-01-10 Thread Yufang Zhang
On rhel5, libs of avahi are packaged into avahi instead of avahi-libs. Actually, there is no avahi-libs package shipped with rhel5. This patch fixes this by requiring avahi on rhel5. --- libvirt.spec.in |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libvirt.spec.in

[libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-09 Thread Yufang Zhang
When building libvirt rpms on rhel5, I got the following error: File must begin with /: rm File must begin with /: -f File must begin with /: $RPM_BUILD_ROOT/etc/sysctl.d/libvirtd Installed (but unpackaged) file(s) found: /etc/sysctl.d/libvirtd It is triggerd by the %files

Re: [libvirt] [PATCH V3] xen: check if device is assigned to guest before reattaching

2011-04-28 Thread Yufang Zhang
On 04/29/2011 04:46 AM, Eric Blake wrote: On 04/28/2011 01:00 AM, Osier Yang wrote: 于 2011年04月27日 20:09, Yufang Zhang 写道: Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=664059 This is the version3 patch for BZ#664059. This sentence is not as useful in the commit message; it's handy

[libvirt] [PATCH V3] xen: check if device is assigned to guest before reattaching

2011-04-27 Thread Yufang Zhang
is being assigned to guest, libvirt refuses to reattach device to host. The patch only works for Xen, for it just checks xenstore to get pci device information. This version fixes some formatting problem and moves lock-unlock out of loop so that the check is atomic. Signed-off-by: Yufang Zhang yuzh

Re: [libvirt] [PATCH V2] xen: check if device is assigned to guest before reattaching

2011-04-27 Thread Yufang Zhang
On 04/26/2011 10:26 PM, Eric Blake wrote: On 01/07/2011 12:15 AM, Yufang Zhang wrote: Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=664059 This is the version2 patch for BZ#664059. Reattaching pci device back to host without destroying guest or detaching device from guest would cause

[libvirt] [PATCH V2] xen: check if device is assigned to guest before reattaching

2011-01-06 Thread Yufang Zhang
is being assigned to guest, libvirt refuses to reattach device to host. The patch only works for Xen, for it just checks xenstore to get pci device information. Signed-off-by: Yufang Zhang yuzh...@redhat.com --- src/xen/xen_driver.c | 67 ++ 1 files

[libvirt] [PATCH] Device reattach: Check if device is assigned to guest before reattaching

2011-01-05 Thread Yufang Zhang
, for it just checks xenstore to get pci device information. Signed-off-by: Yufang Zhang yuzh...@redhat.com --- src/xen/xen_driver.c | 67 ++ 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c