* [Qemu-devel] ask a question
@ 2017-07-18 7:39 皮智
2017-07-21 12:54 ` Stefan Hajnoczi
0 siblings, 1 reply; 4+ messages in thread
From: 皮智 @ 2017-07-18 7:39 UTC (permalink / raw)
To: qemu-devel
hi qemu-devel,I want to know why should add the migration blockers to
prevent live migration in peer mode,if I drop the patch,What other
disadvantages will it bring?
Looking forward to your reply。
thanks!
pizhi
commit 38e0735eb76a1479917ef3501a208d4f70998494
Author: Anthony Liguori <aliguori@us.ibm.com>
Date: Mon Nov 14 15:09:44 2011 -0600
ivshmem: use migration blockers to prevent live migration in peer mode
(v2)
Now when you try to migrate with ivshmem, you get a proper QMP error:
(qemu) migrate tcp:localhost:1025
Migration is disabled when using feature 'peer mode' in device 'ivshmem'
(qemu)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] ask a question
2017-07-18 7:39 皮智
@ 2017-07-21 12:54 ` Stefan Hajnoczi
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2017-07-21 12:54 UTC (permalink / raw)
To: 皮智; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
On Tue, Jul 18, 2017 at 03:39:15PM +0800, 皮智 wrote:
> hi qemu-devel,I want to know why should add the migration blockers to
> prevent live migration in peer mode,if I drop the patch,What other
> disadvantages will it bring?
Peer mode means ivshmem-server is used. It doesn't support live
migration. For example, how should peers be migrated and what happens
to peer IDs?
I don't know whether it's possible to add live migration support, but it
would definitely require code changes. Just removing the migration
blocker will not make migration work correctly in peer mode.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] ask a question
@ 2017-08-16 6:25 皮智
2017-08-16 8:59 ` Stefan Hajnoczi
0 siblings, 1 reply; 4+ messages in thread
From: 皮智 @ 2017-08-16 6:25 UTC (permalink / raw)
To: qemu-devel
Hi,I meet a problem with vm, my environment is qemu-kvm-2.3,
virtio-win-0.1.126, host(centos7.2), guest(windows10).
libvirt xml has four virtio-serial channel as follows:
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0' state='connected'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<channel type='unix'>
<source mode='bind'
path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569'/>
<target type='virtio' name='pv-mon' state='connected'/>
<alias name='channel1'/>
<address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel>
<channel type='unix'>
<source mode='bind'
path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569-qga'/>
<target type='virtio' name='org.qemu.guest_agent.0'
state='connected'/>
<alias name='channel2'/>
<address type='virtio-serial' controller='0' bus='0' port='3'/>
</channel>
<channel type='unix'>
<source mode='bind'
path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569-report'/>
<target type='virtio' name='qga-active-report' state='connected'/>
<alias name='channel3'/>
<address type='virtio-serial' controller='0' bus='0' port='4'/>
</channel>
If I hard reboot the vm, it may happen as follows:
2017-08-14T07:51:18.401008Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:51:18.956482Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:51:29.176795Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:51:34.454819Z qemu-kvm: virtio-serial-bus: Unexpected port id
2042451128 for device virtio-serial0.0
2017-08-14T07:51:44.655068Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:51:49.764201Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:51:59.969836Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:52:21.564461Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:52:47.059452Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:53:22.710677Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:53:32.781204Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T07:53:48.040513Z qemu-kvm: virtio-serial-bus: Unexpected port id
3179968584 for device virtio-serial0.0
2017-08-14T07:54:23.547393Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:55:54.350754Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:56:09.393056Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:57:39.670850Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T07:58:09.867650Z qemu-kvm: virtio-serial-bus: Unexpected port id
1185792 for device virtio-serial0.0
2017-08-14T07:59:10.053208Z qemu-kvm: virtio-serial-bus: Unexpected port id
1122983520 for device virtio-serial0.0
2017-08-14T08:00:20.235162Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
2017-08-14T08:01:20.394196Z qemu-kvm: virtio-serial-bus: Guest failure in
adding device virtio-serial0.0
So, the virtio-serial port will not be available, it cause my program
doesn't start in guest(windows10).
Can you give me some advices ?
Looking forward to your reply.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] ask a question
2017-08-16 6:25 [Qemu-devel] ask a question 皮智
@ 2017-08-16 8:59 ` Stefan Hajnoczi
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2017-08-16 8:59 UTC (permalink / raw)
To: 皮智; +Cc: qemu-devel, libvir-list
[-- Attachment #1: Type: text/plain, Size: 4129 bytes --]
On Wed, Aug 16, 2017 at 02:25:19PM +0800, 皮智 wrote:
> Hi,I meet a problem with vm, my environment is qemu-kvm-2.3,
> virtio-win-0.1.126, host(centos7.2), guest(windows10).
>
> libvirt xml has four virtio-serial channel as follows:
CCing the libvirt mailing list. This may be a libvirt issue.
> <channel type='spicevmc'>
> <target type='virtio' name='com.redhat.spice.0' state='connected'/>
> <alias name='channel0'/>
> <address type='virtio-serial' controller='0' bus='0' port='1'/>
> </channel>
> <channel type='unix'>
> <source mode='bind'
> path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569'/>
> <target type='virtio' name='pv-mon' state='connected'/>
> <alias name='channel1'/>
> <address type='virtio-serial' controller='0' bus='0' port='2'/>
> </channel>
> <channel type='unix'>
> <source mode='bind'
> path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569-qga'/>
> <target type='virtio' name='org.qemu.guest_agent.0'
> state='connected'/>
> <alias name='channel2'/>
> <address type='virtio-serial' controller='0' bus='0' port='3'/>
> </channel>
> <channel type='unix'>
> <source mode='bind'
> path='/var/lib/libvirt/qemu/e597eab9-95db-46e9-96f0-12a84c692569-report'/>
> <target type='virtio' name='qga-active-report' state='connected'/>
> <alias name='channel3'/>
> <address type='virtio-serial' controller='0' bus='0' port='4'/>
> </channel>
>
> If I hard reboot the vm, it may happen as follows:
>
> 2017-08-14T07:51:18.401008Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:51:18.956482Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:51:29.176795Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:51:34.454819Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 2042451128 for device virtio-serial0.0
> 2017-08-14T07:51:44.655068Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:51:49.764201Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:51:59.969836Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:52:21.564461Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:52:47.059452Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:53:22.710677Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:53:32.781204Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T07:53:48.040513Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 3179968584 for device virtio-serial0.0
> 2017-08-14T07:54:23.547393Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:55:54.350754Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:56:09.393056Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:57:39.670850Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T07:58:09.867650Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1185792 for device virtio-serial0.0
> 2017-08-14T07:59:10.053208Z qemu-kvm: virtio-serial-bus: Unexpected port id
> 1122983520 for device virtio-serial0.0
> 2017-08-14T08:00:20.235162Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
> 2017-08-14T08:01:20.394196Z qemu-kvm: virtio-serial-bus: Guest failure in
> adding device virtio-serial0.0
>
> So, the virtio-serial port will not be available, it cause my program
> doesn't start in guest(windows10).
> Can you give me some advices ?
>
> Looking forward to your reply.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-16 8:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16 6:25 [Qemu-devel] ask a question 皮智
2017-08-16 8:59 ` Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2017-07-18 7:39 皮智
2017-07-21 12:54 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).