Re: [PATCH 0/2] virsh: Properly handle detach-interface --live --config.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/04/2016 10:26 AM, Nitesh Konkar wrote:
> The virsh attach virsh detach interface command fails
> when both live and config are set and when the interface
> gets attached to different pci slots on live and config
> xml respectively.
> 
> When we attach an interface with both --live and --config,
> the first time they get the same PCI slots, but the second time
> onwards it differs and hence the virsh detach-interface --live
> --config command fails. This patch makes sure that when both
> --live --config are set , qemuDomainDetachDeviceFlags is called
> twice, once with config xml and once with live xml.
> 
> Steps to see the issue:
> virsh attach-interface --domain DomainName --type network --source default --mac 52:54:00:4b:76:5f --live --config
> virsh detach-interface --domain DomainName --type network --mac 52:54:00:4b:76:5f --live --config
> virsh attach-interface --domain DomainName --type network --source default --mac 52:54:00:4b:76:5f --live --config
> virsh detach-interface --domain DomainName --type network --mac 52:54:00:4b:76:5f --live --config
> 
> 
> Nitesh Konkar (2):
>   virsh: Introduce virshDomainDetachInterface function
>   virsh: Pass the correct live/config xml to virshDomainDetachInterface
> 
>  tools/virsh-domain.c | 128 +++++++++++++++++++++++++++++----------------------
>  1 file changed, 73 insertions(+), 55 deletions(-)
> 

Should have mentioned, the subject should have contained [PATCH v3] or
whatever version we were on. You can do 'git format-patch -v3' for that, or
send-email -v3

Similarly, if you are going through multiple versions, list in the cover
letter what changed between versions. Like

v3:
    Fixed indentation
    Fix memory leak

or similar

Thanks,
Cole

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]