Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-04-02 Thread Martin Kletzander
On Wed, Apr 01, 2015 at 01:35:36PM -0400, Laine Stump wrote: On 04/01/2015 12:15 PM, Huanle Han wrote: On 2015年03月31日 17:46, Martin Kletzander wrote: On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net

Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-04-02 Thread Huanle Han
2015-04-02 1:35 GMT+08:00 Laine Stump la...@laine.org: On 04/01/2015 12:15 PM, Huanle Han wrote: On 2015年03月31日 17:46, Martin Kletzander wrote: On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net

Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-04-01 Thread Huanle Han
On 2015年03月31日 17:46, Martin Kletzander wrote: On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net hostdev(interface type='hostdev' / with same pci address). 2. virsh start A (Successfully, and configure the SRIOV net

Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-04-01 Thread Laine Stump
On 04/01/2015 12:15 PM, Huanle Han wrote: On 2015年03月31日 17:46, Martin Kletzander wrote: On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net hostdev(interface type='hostdev' / with same pci address). 2. virsh

Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-03-31 Thread Martin Kletzander
On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net hostdev(interface type='hostdev' / with same pci address). 2. virsh start A (Successfully, and configure the SRIOV net with custom mac) 3. virsh start B (Fail because

[libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-03-26 Thread Huanle Han
Fix for such a case: 1. Domain A and B xml contain the same SRIOV net hostdev(interface type='hostdev' / with same pci address). 2. virsh start A (Successfully, and configure the SRIOV net with custom mac) 3. virsh start B (Fail because of the hostdev used by domain A or other reason.) In step 3,