qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Commit 331b51 breaks live migration on FreeBSD/Xen dom0


From: Igor Druzhinin
Subject: Re: [Qemu-devel] Commit 331b51 breaks live migration on FreeBSD/Xen dom0
Date: Thu, 14 Mar 2019 16:07:55 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 14/03/2019 15:54, Roger Pau Monné wrote:
> The log of the incoming QEMU is:
> 
> qemu-system-i386: -serial pty: char device redirected to /dev/pts/4 (label 
> serial0)
> xen: shared page at pfn feff0
> xen: buffered io page at pfn feff1
> xen: buffered io evtchn is 4
> xen_mapcache: xen_map_cache_init, nr_buckets = 8000 size 1572864
> xen_ram_alloc: do not alloc 1f800000 bytes of ram at 0 when runstate is 
> INMIGRATE
> xen_ram_alloc: do not alloc 800000 bytes of ram at 1f800000 when runstate is 
> INMIGRATE
> xen_ram_alloc: do not alloc 10000 bytes of ram at 20000000 when runstate is 
> INMIGRATE
> xen_ram_alloc: do not alloc 40000 bytes of ram at 20010000 when runstate is 
> INMIGRATE
> VNC server running on 0.0.0.0:5900
> xen: mapping vram to f0000000 - f0800000
> Replacing a dummy mapcache entry for 000000001f800000 with 00000000f0000000
> Assertion failed: (p && p == memory_region_get_ram_ptr(mr)), function 
> xen_add_to_physmap, file 
> /usr/ports/sysutils/xen-tools/work/xen-4.11.1/tools/qemu-xen/hw/i386/xen/xen-hvm.c,
>  line 392.
> 

The change was supposed to be platform independent - it relies on the
fact addr argument to mmap() works as expected - mmaps at the specified
address. If this argument might be ignored on FreeBSD - that is a
problem. Other then that the change was platform independent.

You could also manually enable XEN_COMPAT_PHYSMAP while building QEMU
(it's now gated on only Xen version) and see if it solves your problem.
We may probably keep it enabled on FreeBSD all the time if there is no
other way.

Could you also print p and memory_region_get_ram_ptr(mr) so we could be
sure it's mmap disregarding hint address?

Igor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]