[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration
From: |
Tan, Jianfeng |
Subject: |
Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration |
Date: |
Tue, 6 Feb 2018 00:51:48 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 2/6/2018 12:29 AM, Igor Mammedov wrote:
On Mon, 5 Feb 2018 14:58:55 +0000
Jianfeng Tan <address@hidden> wrote:
Existing VMs with virtio devices and vhost-kernel as the backend
are always started with mem config:
"-m xG"
(with a ram block named "pc.ram")
while new VMs with virtio devices and vhost-user as the backend
are always started with mem config:
"-m xG -numa node,memdev=pc.ram -object memory-backend-file,id=pc.ram,..."
(with a ram block named "/object/pc.ram")
could you elaborate more on what src command line migrating to what dst command
line?
The src cmdline:
$QEMU -enable-kvm -cpu host -smp 4 /path/to/img \
-m 2G \
-netdev tap,id=mynet1,vhost=on \
-device virtio-net-pci,netdev=mynet1,mac=52:54:00:12:34:58 ...
The dst cmdline:
$QEMU -enable-kvm -cpu host -smp 4 /path/to/img \
-m 2G -numa node,memdev=pc.ram -mem-prealloc \
-object
memory-backend-file,id=pc.ram,size=2G,mem-path=/dev/hugepages,share=on \
-chardev socket,id=char0,path=/tmp/sock0 \
-netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-device virtio-net-pci,netdev=mynet1,mac=52:54:00:12:34:58 \
-incoming tcp:0:4444 ...
Thanks,
Jianfeng
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, (continued)
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Tan, Jianfeng, 2018/02/23
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Tan, Jianfeng, 2018/02/23
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Igor Mammedov, 2018/02/26
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Paolo Bonzini, 2018/02/26
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Tan, Jianfeng, 2018/02/26
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Tan, Jianfeng, 2018/02/26
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Igor Mammedov, 2018/02/28
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Dr. David Alan Gilbert, 2018/02/05
Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, no-reply, 2018/02/05
Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration, Igor Mammedov, 2018/02/05
- Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration,
Tan, Jianfeng <=