Re: [Qemu-devel] [PATCH RFC] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Eduardo Habkost
On Tue, Nov 01, 2016 at 04:43:11PM +, Wei Liu wrote: [...] > @@ -114,6 +115,11 @@ static void xen_change_state_handler(void *opaque, int > running, > > static int xen_init(MachineState *ms) > { > +PCMachineState *pcms = PC_MACHINE(ms); > + > +/* Disable ACPI build because Xen handl

Re: [Qemu-devel] [PULL v2 for-2.8 0/9] tcg queued patches

2016-11-01 Thread Richard Henderson
On 11/01/2016 11:43 AM, Daniel P. Berrange wrote: It was a particular pain-point for me when doing mingw builds, where I would typically use 'PKG_CONFIG_PATH=/blah ./configure' so that I didn't permanently pollute my shell with mingw32 pkg-config env The usual pain point for me is building for

Re: [Qemu-devel] [PATCH v2 1/3] target-m68k: add cmpm

2016-11-01 Thread Richard Henderson
On 10/27/2016 03:43 PM, Laurent Vivier wrote: +DISAS_INSN(cmpm) +{ +int opsize = insn_opsize(insn); +TCGv tmp = tcg_temp_new(); +TCGv src, dst, addr; + +src = gen_load(s, opsize, AREG(insn, 0), 1); +/* delay the update after the second gen_load() */ +tcg_gen_addi_i32(tmp,

Re: [Qemu-devel] [PATCH] docs: Fix typos found by codespell

2016-11-01 Thread Eric Blake
On 11/01/2016 12:19 PM, Stefan Weil wrote: > Fix also some indefinite articles. > > Signed-off-by: Stefan Weil > --- > > I still don't understand the comment in docs/colo-proxy.txt. Me neither. > +++ b/docs/colo-proxy.txt > @@ -158,7 +158,7 @@ secondary. > > == Usage == > > -Here, we use

Re: [Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide

2016-11-01 Thread Eric Blake
On 11/01/2016 07:29 AM, Prasanna Kumar Kalever wrote: > Document: > 1. The new debug and logfile options with their usages and > 2. New json format and its usage. > > Signed-off-by: Prasanna Kumar Kalever > --- > qemu-doc.texi | 46 -- > qemu-options

Re: [Qemu-devel] [PULL v2 00/30] Misc patches for 2016-10-31

2016-11-01 Thread Peter Maydell
On 1 November 2016 at 16:29, Paolo Bonzini wrote: > The following changes since commit 39542105bbb19c690219d2f22844d8dfbd9bba05: > > Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging > (2016-11-01 12:48:07 +) > > are available in the git repository at: > > git://

Re: [Qemu-devel] [PATCH RFC] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Wei Liu
On Tue, Nov 01, 2016 at 03:02:31PM -0200, Eduardo Habkost wrote: > On Tue, Nov 01, 2016 at 04:43:11PM +, Wei Liu wrote: > [...] > > @@ -114,6 +115,11 @@ static void xen_change_state_handler(void *opaque, int > > running, > > > > static int xen_init(MachineState *ms) > > { > > +PCMachin

[Qemu-devel] when we add EL2 to QEMU TCG ARM emulation and the virt board, should it default on or off?

2016-11-01 Thread Peter Maydell
I'm working on turning on EL2 support in our TCG ARM emulation, and one area I'm not sure about is whether it should default to on or off. We have a few precedents: For EL3 support: * the CPU property is enabled by default but can be disabled by the board * 'virt' defaults it to disabled, with

Re: [Qemu-devel] [PATCH] docs: Fix typos found by codespell

2016-11-01 Thread Peter Maydell
On 1 November 2016 at 17:19, Stefan Weil wrote: > Fix also some indefinite articles. > > Signed-off-by: Stefan Weil > --- > > I still don't understand the comment in docs/colo-proxy.txt. > diff --git a/docs/colo-proxy.txt b/docs/colo-proxy.txt > index 76767cb..6c8cca5 100644 > --- a/docs/colo-pr

Re: [Qemu-devel] [RFC 1/2] linux-headers: update

2016-11-01 Thread Alexander Graf
On 01/11/2016 11:19, Peter Maydell wrote: On 29 October 2016 at 22:10, Alexander Graf wrote: This patch updates the Linux headers to include the in-progress user space ARM timer patches. It is explicitly RFC, as the patches are not merged yet. --- Is there a cover letter email for this seri

Re: [Qemu-devel] [PULL v2 for-2.8 0/9] tcg queued patches

2016-11-01 Thread Daniel P. Berrange
On Tue, Nov 01, 2016 at 04:26:57PM +, Peter Maydell wrote: > On 1 November 2016 at 16:20, Daniel P. Berrange wrote: > > On Tue, Nov 01, 2016 at 09:34:24AM -0600, Richard Henderson wrote: > >> On 11/01/2016 06:07 AM, Richard Henderson wrote: > >> > V2, now with more windows workarounds. I'll n

Re: [Qemu-devel] [RFC 1/2] linux-headers: update

2016-11-01 Thread Peter Maydell
On 1 November 2016 at 18:13, Alexander Graf wrote: > On 01/11/2016 11:19, Peter Maydell wrote: >> Is there a cover letter email for this series ? > > > I figured that the set is so small that it didn't deserve one :). The usual rule is "one patch: no cover letter; more than one patch: cover lette

Re: [Qemu-devel] [PATCH v3 4/4] pc: memhp: enable nvdimm device hotplug

2016-11-01 Thread Stefan Hajnoczi
On Sat, Oct 29, 2016 at 12:35:40AM +0800, Xiao Guangrong wrote: > _GPE.E04 is dedicated for nvdimm device hotplug > > Signed-off-by: Xiao Guangrong > --- > docs/specs/acpi_mem_hotplug.txt | 3 +++ > hw/acpi/memory_hotplug.c | 31 +++ > hw/i386/acpi-b

Re: [Qemu-devel] [PATCH 09/29] target-sparc: hypervisor mode takes over nucleus mode

2016-11-01 Thread Artyom Tarasenko
On Wed, Oct 12, 2016 at 3:29 PM, Richard Henderson wrote: > On 10/12/2016 06:33 AM, Artyom Tarasenko wrote: >> >> On Mon, Oct 10, 2016 at 11:41 PM, Richard Henderson >> wrote: >>> >>> On 10/01/2016 05:05 AM, Artyom Tarasenko wrote: Signed-off-by: Artyom Tarasenko --- ta

Re: [Qemu-devel] [PULL v2 for-2.8 0/9] tcg queued patches

2016-11-01 Thread Peter Maydell
On 1 November 2016 at 17:51, Richard Henderson wrote: > The usual pain point for me is building for 32-bit on a 64-bit > system, where there is no cross-prefix that one can use, and > PKG_CONFIG_PATH and --extra-cflags are the only changes. That sounds like a bug in how the 32-bit compilers work

Re: [Qemu-devel] [PATCH v2] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Sander Eikelenboom
On 2016-11-01 18:44, Wei Liu wrote: Introduce this field to control whether ACPI build is enabled by a particular machine or accelerator. It defaults to true if the machine itself supports ACPI build. Xen accelerator will disable it because Xen is in charge of building ACPI tables for the guest.

Re: [Qemu-devel] [PATCH] arm-smmu: Fix bug when merging two 32 bit words to form 64 bit word

2016-11-01 Thread Alistair Francis
> -Original Message- > From: Edgar E. Iglesias [mailto:edgar.igles...@xilinx.com] > Sent: Monday, 26 September 2016 7:56 AM > To: Paul Kennedy > Cc: qemu-devel@nongnu.org; Alistair Francis ; qemu- > triv...@nongnu.org > Subject: Re: [PATCH] arm-smmu: Fix bug when merging two 32 bit words t

Re: [Qemu-devel] [PULL v2 for-2.8 0/9] tcg queued patches

2016-11-01 Thread Richard Henderson
On 11/01/2016 12:17 PM, Peter Maydell wrote: On 1 November 2016 at 17:51, Richard Henderson wrote: The usual pain point for me is building for 32-bit on a 64-bit system, where there is no cross-prefix that one can use, and PKG_CONFIG_PATH and --extra-cflags are the only changes. That sounds l

Re: [Qemu-devel] [PATCH 09/29] target-sparc: hypervisor mode takes over nucleus mode

2016-11-01 Thread Richard Henderson
On 11/01/2016 12:12 PM, Artyom Tarasenko wrote: While playing with your patch set, I discovered that we also need a patch to get_asi for ASI_N et al to retain MMU_HYPV_IDX, and not decrease privilege. This happens *very* early in the prom boot, with the first casx (when casx is implemented inline

Re: [Qemu-devel] [PATCH v2] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Stefano Stabellini
On Tue, 1 Nov 2016, Wei Liu wrote: > Introduce this field to control whether ACPI build is enabled by a > particular machine or accelerator. > > It defaults to true if the machine itself supports ACPI build. Xen > accelerator will disable it because Xen is in charge of building ACPI > tables for t

Re: [Qemu-devel] [PATCH v2 1/3] target-m68k: add cmpm

2016-11-01 Thread Laurent Vivier
Le 01/11/2016 à 18:48, Richard Henderson a écrit : > On 10/27/2016 03:43 PM, Laurent Vivier wrote: >> +DISAS_INSN(cmpm) >> +{ >> +int opsize = insn_opsize(insn); >> +TCGv tmp = tcg_temp_new(); >> +TCGv src, dst, addr; >> + >> +src = gen_load(s, opsize, AREG(insn, 0), 1); >> +/

[Qemu-devel] [PATCH v4 0/2] 680x0 mul and div instructions

2016-11-01 Thread Laurent Vivier
This series is another subset of the series I sent in May: https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00501.html It must be applied on top of series: "target-m68k: 680x0 instruction set, part 2" This subset contains reworked patches of mul and div instructions: - "add 64bit mull": c

[Qemu-devel] [PATCH v4 2/2] target-m68k: add 680x0 divu/divs variants

2016-11-01 Thread Laurent Vivier
Update helper to set the throwing location in case of div-by-0. Cleanup divX.w and add quad word variants of divX.l. Signed-off-by: Laurent Vivier --- linux-user/main.c | 7 ++ target-m68k/cpu.h | 4 -- target-m68k/helper.h| 8 ++- target-m68k/op_helper.c | 182

[Qemu-devel] [PATCH v4 1/2] target-m68k: add 64bit mull

2016-11-01 Thread Laurent Vivier
Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/translate.c | 62 +++-- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 8433fa0..61986cc 100644 --- a/t

[Qemu-devel] [Bug 1629618] Re: QEMU causes host hang / reset on PPC64EL

2016-11-01 Thread Timothy Pearson
Unfortunately, the machine just crashed again. It seems related to the use of 4K pages instead of the more typical 64K pages; the machine is rock solid with 64K pages. ** Changed in: qemu Status: Fix Released => New -- You received this bug notification because you are a member of qemu-

[Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() primitive

2016-11-01 Thread Pranith Kumar
Use __atomic_load_n() primitive saving a load and store to a local variable. Signed-off-by: Pranith Kumar --- include/qemu/atomic.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index 878fa07..be44094 10

Re: [Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() primitive

2016-11-01 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Subject: [Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() primitive Message-id: 20161101203953.18065-1-bobby.pr...@gmail.com === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 tota

Re: [Qemu-devel] [PATCH v4 2/2] target-m68k: add 680x0 divu/divs variants

2016-11-01 Thread Richard Henderson
On 11/01/2016 02:03 PM, Laurent Vivier wrote: Update helper to set the throwing location in case of div-by-0. Cleanup divX.w and add quad word variants of divX.l. Signed-off-by: Laurent Vivier --- linux-user/main.c | 7 ++ target-m68k/cpu.h | 4 -- target-m68k/helper.h| 8

Re: [Qemu-devel] [PULL v2 for-2.8 0/9] tcg queued patches

2016-11-01 Thread Peter Maydell
On 1 November 2016 at 19:21, Richard Henderson wrote: > On 11/01/2016 12:17 PM, Peter Maydell wrote: >> On 1 November 2016 at 17:51, Richard Henderson wrote: >>> >>> The usual pain point for me is building for 32-bit on a 64-bit >>> system, where there is no cross-prefix that one can use, and >>>

[Qemu-devel] [PATCH 2/4] target-m68k: Split gen_lea and gen_ea

2016-11-01 Thread Richard Henderson
Provide gen_lea_mode and gen_ea_mode, where the mode can be specified manually, rather than taken from the instruction. Signed-off-by: Richard Henderson --- target-m68k/translate.c | 112 +--- 1 file changed, 59 insertions(+), 53 deletions(-) diff --g

[Qemu-devel] [PATCH 0/4] target-m68k areg writeback

2016-11-01 Thread Richard Henderson
Here's the patch I almost wrote in the email, followed by a cleanup that allows cmpm to be written "nicely". I can test this to some extent with the coldfire kernel, but of course coldfire can't excersise any of the tricky edge cases that m68000 can. I'm particularly interested in edge cases like

[Qemu-devel] [PATCH 1/4] target-m68k: Delay autoinc writeback

2016-11-01 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 83 + 1 file changed, 63 insertions(+), 20 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 9ad974f..f812c4b 100644 --- a/target-m68k/translate.c +++ b/

[Qemu-devel] [PATCH 3/4] target-m68k: add cmpm

2016-11-01 Thread Richard Henderson
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson Message-Id: <1477604609-2206-2-git-send-email-laur...@vivier.eu> Signed-off-by: Richard Henderson --- target-m68k/translate.c | 28 1 file changed, 28 insertions(+) diff --git a/tar

[Qemu-devel] [PATCH 4/4] target-m68k: Use gen_ea_mode in cmpm

2016-11-01 Thread Richard Henderson
The writeback infrastructure takes care of ensuring that Ax == Ay both uses the updated register value from Ay for Ax, and updating the final register result twice. ??? Maybe squash into previous. Signed-off-by: Richard Henderson --- target-m68k/translate.c | 28 1

Re: [Qemu-devel] [PATCH 00/15] optimize Qemu RSS usage

2016-11-01 Thread Michael R. Hines
On 10/31/2016 05:00 PM, Michael R. Hines wrote: On 10/18/2016 05:47 AM, Peter Lieven wrote: Am 12.10.2016 um 23:18 schrieb Michael R. Hines: Peter, Greetings from DigitalOcean. We're experiencing the same symptoms without this patch. We have, collectively, many gigabytes of un-planned-for RSS

Re: [Qemu-devel] [PATCH v2] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Eduardo Habkost
On Tue, Nov 01, 2016 at 05:44:16PM +, Wei Liu wrote: > Introduce this field to control whether ACPI build is enabled by a > particular machine or accelerator. > > It defaults to true if the machine itself supports ACPI build. Xen > accelerator will disable it because Xen is in charge of buildi

Re: [Qemu-devel] [PATCH v2] PCMachineState: introduce acpi_build_enabled field

2016-11-01 Thread Stefano Stabellini
On Tue, 1 Nov 2016, Eduardo Habkost wrote: > On Tue, Nov 01, 2016 at 05:44:16PM +, Wei Liu wrote: > > Introduce this field to control whether ACPI build is enabled by a > > particular machine or accelerator. > > > > It defaults to true if the machine itself supports ACPI build. Xen > > acceler

Re: [Qemu-devel] [PATCH v10 00/19] Add Mediated device support

2016-11-01 Thread Jike Song
On 11/01/2016 11:24 PM, Gerd Hoffmann wrote: >> I rebased KVMGT upon v10, with 2 minor changes: >> >> 1, get_user_pages_remote has only 7 args > > Appears to be a 4.9 merge window change. v10 as-is applies and builds > fine against 4.8, after rebasing to 4.9-rc3 it stops building due to > th

[Qemu-devel] [RESEND PATCH v2 2/3] exec.c: check memory backend file size with 'size' option

2016-11-01 Thread Haozhong Zhang
If the memory backend file is not large enough to hold the required 'size', Qemu will report error and exit. Signed-off-by: Haozhong Zhang Message-Id: <20161027042300.5929-3-haozhong.zh...@intel.com> Reviewed-by: Eduardo Habkost --- Changes in RESEND: * Use format string RAM_ADDR_FMT for variabl

Re: [Qemu-devel] [PULL 00/47] virtio, pc: fixes and features

2016-11-01 Thread Gonglei (Arei)
> -Original Message- > From: Qemu-devel > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of Michael S. Tsirkin > Sent: Wednesday, November 02, 2016 1:26 AM > To: Peter Maydell > Cc: QEMU Developers > Subject: Re: [Qemu-devel] [PULL 00/47] virtio, pc: fixes and f

Re: [Qemu-devel] [PATCH v9 04/12] vfio iommu: Add support for mediated devices

2016-11-01 Thread Alexey Kardashevskiy
On 02/11/16 01:01, Kirti Wankhede wrote: > > > On 10/28/2016 7:48 AM, Alexey Kardashevskiy wrote: >> On 27/10/16 23:31, Kirti Wankhede wrote: >>> >>> >>> On 10/27/2016 12:50 PM, Alexey Kardashevskiy wrote: On 18/10/16 08:22, Kirti Wankhede wrote: > VFIO IOMMU drivers are designed for the

Re: [Qemu-devel] [PULL 08/27] hostmem-file: make option 'size' optional

2016-11-01 Thread Haozhong Zhang
On 11/01/16 12:16 -0200, Eduardo Habkost wrote: On Tue, Nov 01, 2016 at 05:32:20PM +0800, Haozhong Zhang wrote: On 10/31/16 20:22 -0200, Eduardo Habkost wrote: > On Mon, Oct 31, 2016 at 03:47:53PM -0400, Paolo Bonzini wrote: > > > > > > - Original Message - > > > From: "Eduardo Habkost"

Re: [Qemu-devel] [PATCH] docs: Fix typos found by codespell

2016-11-01 Thread Zhang Chen
On 11/02/2016 01:52 AM, Eric Blake wrote: On 11/01/2016 12:19 PM, Stefan Weil wrote: Fix also some indefinite articles. Signed-off-by: Stefan Weil --- I still don't understand the comment in docs/colo-proxy.txt. Me neither. Which part of the docs/colo-proxy.txt? Perhaps I can explain i

Re: [Qemu-devel] [PATCH v2 3/3] hostmem-file: make option 'size' optional

2016-11-01 Thread Haozhong Zhang
On 10/31/16 16:18 -0200, Eduardo Habkost wrote: On Fri, Oct 28, 2016 at 10:06:40AM +0800, Haozhong Zhang wrote: [...] > > diff --git a/exec.c b/exec.c > > index 264a25f..89065bd 100644 > > --- a/exec.c > > +++ b/exec.c > > @@ -1234,7 +1234,7 @@ static int64_t get_file_size(int fd) > > } > > > >

Re: [Qemu-devel] [PATCH 1/1] net: skip virtio-net config of deleted nic's peers

2016-11-01 Thread Jason Wang
On 2016年11月01日 06:42, Michael S. Tsirkin wrote: On Tue, Nov 01, 2016 at 12:01:17AM +0200, yuri.benditov...@daynix.com wrote: From: Yuri Benditovich https://bugzilla.redhat.com/show_bug.cgi?id=1373816 qemu core dump happens during repetitive unpug-plug with multiple queues and Windows RSS-cap

Re: [Qemu-devel] How to print value of float instruction argument

2016-11-01 Thread Programmingkid
On Oct 31, 2016, at 4:39 AM, Peter Maydell wrote: > On 31 October 2016 at 03:13, Programmingkid wrote: >> I'm trying to print the value of the arguments sent to >> gen_fmadds() in target-ppc/translate/fp-impl.inc.c. How >> do I do this? I have tried printf("cpu_fpr[rA(ctx->opcode)] = %d\n", >> c

Re: [Qemu-devel] [PATCH v9 04/12] vfio iommu: Add support for mediated devices

2016-11-01 Thread Kirti Wankhede
On 11/2/2016 6:54 AM, Alexey Kardashevskiy wrote: > On 02/11/16 01:01, Kirti Wankhede wrote: >> >> >> On 10/28/2016 7:48 AM, Alexey Kardashevskiy wrote: >>> On 27/10/16 23:31, Kirti Wankhede wrote: On 10/27/2016 12:50 PM, Alexey Kardashevskiy wrote: > On 18/10/16 08:22, Kirti W

Re: [Qemu-devel] [PATCH v9 04/12] vfio iommu: Add support for mediated devices

2016-11-01 Thread Alexey Kardashevskiy
On 02/11/16 14:29, Kirti Wankhede wrote: > > > On 11/2/2016 6:54 AM, Alexey Kardashevskiy wrote: >> On 02/11/16 01:01, Kirti Wankhede wrote: >>> >>> >>> On 10/28/2016 7:48 AM, Alexey Kardashevskiy wrote: On 27/10/16 23:31, Kirti Wankhede wrote: > > > On 10/27/2016 12:50 PM, Alexe

Re: [Qemu-devel] [PULL 00/47] virtio, pc: fixes and features

2016-11-01 Thread Michael S. Tsirkin
On Tue, Nov 01, 2016 at 03:22:01PM +, Peter Maydell wrote: > On 30 October 2016 at 21:23, Michael S. Tsirkin wrote: > > The following changes since commit 5b2ecabaeabc17f032197246c4846b9ba95ba8a6: > > > > Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20161028-1' > > into staging

Re: [Qemu-devel] [PATCH v1] vhost-pci-net: design vhost-pci-net for the transmission of network packets between VMs

2016-11-01 Thread Wang, Wei W
On Monday, October 24, 2016 3:09 PM, Wei Wang wrote: > To: virtio-comm...@lists.oasis-open.org; qemu-devel@nongnu.org; > m...@redhat.com; marcandre.lur...@gmail.com; stefa...@redhat.com; > pbonz...@redhat.com > Cc: Wang, Wei W > Subject: [PATCH v1] vhost-pci-net: design vhost-pci-net for the trans

[Qemu-devel] [PATCH kernel v4 1/7] virtio-balloon: rework deflate to add page to a list

2016-11-01 Thread Liang Li
When doing the inflating/deflating operation, the current virtio-balloon implementation uses an array to save 256 PFNS, then send these PFNS to host through virtio and process each PFN one by one. This way is not efficient when inflating/deflating a large mount of memory because too many times of t

[Qemu-devel] [PATCH kernel v4 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-11-01 Thread Liang Li
This patch set contains two parts of changes to the virtio-balloon. One is the change for speeding up the inflating & deflating process, the main idea of this optimization is to use bitmap to send the page information to host instead of the PFNs, to reduce the overhead of virtio data transmission

[Qemu-devel] [PATCH kernel v4 3/7] mm: add a function to get the max pfn

2016-11-01 Thread Liang Li
Expose the function to get the max pfn, so it can be used in the virtio-balloon device driver. Simply include the 'linux/bootmem.h' is not enough, if the device driver is built to a module, directly refer the max_pfn lead to build failed. Signed-off-by: Liang Li Cc: Andrew Morton Cc: Mel Gorman

[Qemu-devel] [PATCH kernel v4 2/7] virtio-balloon: define new feature bit and head struct

2016-11-01 Thread Liang Li
Add a new feature which supports sending the page information with a bitmap. The current implementation uses PFNs array, which is not very efficient. Using bitmap can improve the performance of inflating/deflating significantly The page bitmap header will used to tell the host some information abo

[Qemu-devel] [PATCH kernel v4 5/7] mm: add the related functions to get unused page

2016-11-01 Thread Liang Li
Save the unused page info into a split page bitmap. The virtio balloon driver will use this new API to get the unused page bitmap and send the bitmap to hypervisor(QEMU) to speed up live migration. During sending the bitmap, some the pages may be modified and are no free anymore, this inaccuracy ca

[Qemu-devel] [PATCH kernel v4 4/7] virtio-balloon: speed up inflate/deflate process

2016-11-01 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, the time spends on different stages of inflating the balloon to 7GB of a 8GB idle guest: a. allocating pages (6.5%) b. sending PFNs to host (68.3%) c. address translation (6.1%) d. madvise (19%) It takes about 4126ms for the

[Qemu-devel] [PATCH kernel v4 6/7] virtio-balloon: define flags and head for host request vq

2016-11-01 Thread Liang Li
Define the flags and head struct for a new host request virtual queue. Guest can get requests from host and then responds to them on this new virtual queue. Host can make use of this virtual queue to request the guest do some operations, e.g. drop page cache, synchronize file system, etc. And the h

[Qemu-devel] [PATCH kernel v4 7/7] virtio-balloon: tell host vm's unused page info

2016-11-01 Thread Liang Li
Support the request for vm's unused page information, response with a page bitmap. QEMU can make use of this bitmap and the dirty page logging mechanism to skip the transportation of some of these unused pages, this is very helpful to reduce the network traffic and speed up the live migration proc

<    1   2   3