[Qemu-devel] [PATCH v3 1/3] target-arm: kvm64: set guest PMUv3 feature bit if supported

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Check if kvm supports guest PMUv3. If so, set the corresponding feature bit for vcpu. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones --- target-arm/cpu-qom.h | 2 ++ target-arm/kvm64.c | 5 + 2 files changed, 7 insertions(+) diff --git a/target-arm/cpu-qom.h b

[Qemu-devel] [PATCH v3 3/3] hw/arm/virt-acpi-build: Add PMU IRQ number in ACPI table

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Add PMU IRQ number in ACPI table, then we can use PMU in guest through ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones --- hw/arm/virt-acpi-build.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index f

[Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Add a virtual PMU device for virt machine while use PPI 7 for PMU overflow interrupt number. Signed-off-by: Shannon Zhao --- hw/arm/virt.c | 34 ++ include/hw/arm/virt.h | 4 include/sysemu/kvm.h | 1 + stubs/kvm.c |

[Qemu-devel] [PATCH v3 0/3] Add guest PMU in machine virt

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao KVM-ARM64 supports guest PMU now. This series add the support in machine virt so that guest could use PMU. Changes since v2: * address Andrew's comments on PATCH 2, thanks Changes since v1: * rebase on master * Address Andrew's comments, add a macro PPI, fix code style, add

Re: [Qemu-devel] [V9 0/4] AMD IOMMU

2016-04-25 Thread Jan Kiszka
On 2016-04-25 00:16, David Kiarie wrote: > Sorry, I keep missing Jan's email... No problem. I'm planning to give this version a try soon and will also look into some details for a review. Jan > > On Mon, Apr 25, 2016 at 1:12 AM, David Kiarie wrote: >> Hi all, >> >> The current AMD IOMMU patch

Re: [Qemu-devel] [PATCH v4 00/16] IOMMU: Enable interrupt remapping for Intel IOMMU

2016-04-25 Thread Peter Xu
On Mon, Apr 25, 2016 at 07:16:19AM +0200, Jan Kiszka wrote: > On 2016-04-19 10:38, Peter Xu wrote: [...] > > By default, IR is disabled to be better compatible with current > > QEMU. To enable IR, we can using the following command to boot a > > IR-supported VM with virtio-net device with vhost (

Re: [Qemu-devel] [PATCH v4 00/16] IOMMU: Enable interrupt remapping for Intel IOMMU

2016-04-25 Thread Jan Kiszka
On 2016-04-25 09:18, Peter Xu wrote: > On Mon, Apr 25, 2016 at 07:16:19AM +0200, Jan Kiszka wrote: >> On 2016-04-19 10:38, Peter Xu wrote: > > [...] > >>> By default, IR is disabled to be better compatible with current >>> QEMU. To enable IR, we can using the following command to boot a >>> IR-su

Re: [Qemu-devel] [PATCH v6 4/5] ACPI: move acpi_build_srat_memory to common place

2016-04-25 Thread Shannon Zhao
On 2016/4/25 1:00, Andrew Jones wrote: > On Sat, Apr 23, 2016 at 05:06:35PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Move acpi_build_srat_memory to common place so that it could be reused >> > by ARM. >> > >> > Cc: Michael S. Tsirkin >> > Cc: Igor Mammedov >> > Signed-off

[Qemu-devel] [PATCH v7 2/5] ACPI: Add GICC Affinity Structure

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Cc: Michael S. Tsirkin Cc: Igor Mammedov Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones --- hw/i386/acpi-build.c| 2 +- include/hw/acpi/acpi-defs.h | 15 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/hw/i386/acpi-build.c b/

[Qemu-devel] [PATCH v7 3/5] ACPI: Fix the definition of proximity in AcpiSratMemoryAffinity

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao ACPI spec says that Proximity Domain is an "Integer that represents the proximity domain to which the processor belongs". So define it as a uint32_t. Cc: Michael S. Tsirkin Cc: Igor Mammedov Signed-off-by: Shannon Zhao --- hw/i386/acpi-build.c| 3 +-- include/hw/ac

[Qemu-devel] [PATCH v7 5/5] ACPI: Virt: Generate SRAT table

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao To support NUMA, it needs to generate SRAT ACPI table. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones --- hw/arm/virt-acpi-build.c | 52 1 file changed, 52 insertions(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/

[Qemu-devel] [PATCH v7 4/5] ACPI: move acpi_build_srat_memory to common place

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Move acpi_build_srat_memory to common place so that it could be reused by ARM. Rename it to build_acpi_srat_memory. Cc: Michael S. Tsirkin Cc: Igor Mammedov Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 11 +++ hw/i386/acpi-build.c| 29 +

[Qemu-devel] [PATCH v7 0/5] ARM: Add NUMA support for machine virt

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Add NUMA support for machine virt. Tested successfully running a guest Linux kernel with the following patch applied: - [PATCH v16 0/6] arm64, numa: Add numa support for arm64 platforms https://lkml.org/lkml/2016/4/8/571 - [PATCH v5 00/14] ACPI NUMA support for ARM64 https://l

[Qemu-devel] [PATCH v7 1/5] ARM: Virt: Set numa-node-id for cpu and memory nodes

2016-04-25 Thread Shannon Zhao
From: Shannon Zhao Generate memory nodes according to NUMA topology. Set numa-node-id property for cpu and memory nodes. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones --- hw/arm/boot.c | 43 +-- hw/arm/virt.c | 8 2 files changed, 45 i

Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-25 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Apr 22, 2016 at 15:41:13 +0100, Alex Bennée wrote: >> Emilio G. Cota writes: > (snip) >> > Known issues: >> > - Basically compile-tested only, since I've only run this with >> > single-threaded TCG; I also tried running it with linux-user, >> > but in order

Re: [Qemu-devel] [PATCH for 2.7 1/1] qcow2: improve qcow2_co_write_zeroes()

2016-04-25 Thread Kevin Wolf
Am 23.04.2016 um 14:05 hat Denis V. Lunev geschrieben: > Unfortunately Linux kernel could send non-aligned requests to qemu-nbd > if the caller is using O_DIRECT and does not align in-memory data to > page. Thus qemu-nbd will call block layer with non-aligned requests. > > qcow2_co_write_zeroes fo

Re: [Qemu-devel] [PATCH v2 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 02:52:45PM +0800, Shannon Zhao wrote: > > > On 2016/4/25 1:28, Andrew Jones wrote: > > On Sat, Apr 23, 2016 at 06:04:14PM +0800, Shannon Zhao wrote: > >> > From: Shannon Zhao > >> > > >> > Add a virtual PMU device for virt machine while use PPI 7 for PMU > >> > overflow

Re: [Qemu-devel] [PATCH COLO-Frame v16 13/35] COLO: Load VMState into qsb before restore it

2016-04-25 Thread Hailiang Zhang
On 2016/4/22 18:12, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: We should not destroy the state of SVM (Secondary VM) until we receive the whole state from the PVM (Primary VM), in case the primary fails in the middle of sending the state, so, here we c

Re: [Qemu-devel] [PATCH v3 02/44] nbd: Quit server after any write error

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > We should never ignore failure from nbd_negotiate_send_rep(); if > we are unable to write to the client, then it is not worth trying > to continue the negotiation. Fortunately, the problem is not > too severe - chances are that the errors being igno

Re: [Qemu-devel] [RFC PATCH v2 2/2] spapr: Memory hot-unplug support

2016-04-25 Thread Igor Mammedov
On Wed, 16 Mar 2016 10:11:54 +0530 Bharata B Rao wrote: > On Wed, Mar 16, 2016 at 12:36:05PM +1100, David Gibson wrote: > > On Tue, Mar 15, 2016 at 10:08:56AM +0530, Bharata B Rao wrote: > > > Add support to hot remove pc-dimm memory devices. > > > > > > Signed-off-by: Bharata B Rao > > >

Re: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 03:11:45PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Add a virtual PMU device for virt machine while use PPI 7 for PMU > overflow interrupt number. > > Signed-off-by: Shannon Zhao > --- > hw/arm/virt.c | 34 ++ > include

Re: [Qemu-devel] [PATCH v3 07/44] nbd: Limit nbdflags to 16 bits

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Rather than asserting that nbdflags is within range, just give > it the correct type to begin with :) nbdflags corresponds to > the per-export portion of NBD Protocol "transmission flags", which > is 16 bits in response to NBD_OPT_EXPORT_NAME and NB

Re: [Qemu-devel] [PATCH v3 08/44] nbd: Add qemu-nbd -D for human-readable description

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > The NBD protocol allows servers to advertise a human-readable > description alongside an export name during NBD_OPT_LIST. Add > an option to pass through the user's string to the NBD client. > > Doing this also makes it easier to test commit 200650

Re: [Qemu-devel] [PATCH v7 3/5] ACPI: Fix the definition of proximity in AcpiSratMemoryAffinity

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 04:05:45PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > ACPI spec says that Proximity Domain is an "Integer that represents > the proximity domain to which the processor belongs". So define it as a > uint32_t. > > Cc: Michael S. Tsirkin > Cc: Igor Mammedov > Sign

Re: [Qemu-devel] [PATCH v7 4/5] ACPI: move acpi_build_srat_memory to common place

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 04:05:46PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Move acpi_build_srat_memory to common place so that it could be reused > by ARM. Rename it to build_acpi_srat_memory. > > Cc: Michael S. Tsirkin > Cc: Igor Mammedov > Signed-off-by: Shannon Zhao > --- > hw

Re: [Qemu-devel] [PATCH v3 03/44] nbd: Improve server handling of bogus commands

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > We have a few bugs in how we handle invalid client commands: > > - A client can send an NBD_CMD_DISC where from + len overflows, > convincing us to reply with an error and stay connected, even > though the protocol requires us to silently disconnect

Re: [Qemu-devel] [PATCH COLO-Frame v16 for-2.7 00/35] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2016-04-25 Thread Hailiang Zhang
On 2016/4/22 18:42, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: This is the 16th version of COLO (Still only support periodic checkpoint). OK, so the main migration code in here looks OK now (still need one block R-b's and the net R-b's from Jason) - w

Re: [Qemu-devel] [PATCH v3 29/44] nbd: Avoid magic number for NBD max name size

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Declare a constant and use that when determining if an export > name fits within the constraints we are willing to support. > > Note that upstream NBD recently documented that clients MUST > support export names of 256 bytes (not including trailing

Re: [Qemu-devel] [PATCH v3 30/44] nbd: Treat flags vs. command type as separate fields

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Current upstream NBD documents that requests have a 16-bit flags, > followed by a 16-bit type integer; although older versions mentioned > only a 32-bit field with masking to find flags. Since the protocol > is in network order (big-endian over the

Re: [Qemu-devel] [PATCH v3 31/44] nbd: Share common reply-sending code in server

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Rather than open-coding NBD_REP_SERVER, reuse the code we > already have by adding a length parameter. Additionally, > the refactoring will make adding NBD_OPT_GO in a later patch > easier. > > Signed-off-by: Eric Blake Reviewed-by: Alex Bligh >

Re: [Qemu-devel] [PATCH COLO-Frame v16 21/35] qmp event: Add COLO_EXIT event to notify users while exited from COLO

2016-04-25 Thread Hailiang Zhang
On 2016/4/22 22:25, Eric Blake wrote: On 04/08/2016 12:26 AM, zhanghailiang wrote: If some errors happen during VM's COLO FT stage, it's important to notify the users of this event. Together with 'x_colo_lost_heartbeat', users can intervene in COLO's failover work immediately. If users don't w

Re: [Qemu-devel] [PATCH v3 32/44] nbd: Share common option-sending code in client

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Rather than open-coding each option request, it's easier to > have common helper functions do the work. That in turn requires > having convenient packed types for handling option requests > and replies. > > Signed-off-by: Eric Blake > Reviewed-by:

Re: [Qemu-devel] [PATCH v18 0/8] Block replication for continuous checkpoints

2016-04-25 Thread Changlong Xie
The main migration code for COLO looks OK now,and they depend on my block part. So i'd like to ping here. Thanks -Xie On 04/15/2016 04:10 PM, Changlong Xie wrote: Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). You can get the

Re: [Qemu-devel] [PATCH v2 00/11] tcg: Make direct jump patching thread-safe

2016-04-25 Thread Sergey Fedorov
On 25/04/16 00:36, Richard Henderson wrote: > On 04/22/2016 09:08 AM, Sergey Fedorov wrote: >> When patching translated code for direct block chaining/unchaining, >> modification of concurrently executing code can happen in multi-threaded >> execution. Currently only user-mode is affected. To make

Re: [Qemu-devel] [PATCH v3 36/44] nbd: Improve handling of shutdown requests

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > NBD commit 6d34500b clarified how clients and servers are supposed > to behave before closing a connection. It added NBD_REP_ERR_SHUTDOWN > (for the server to announce it is about to go away during option > haggling, so the client should quit sending

[Qemu-devel] MTTCG Sync-up call today?

2016-04-25 Thread Alex Bennée
Hi, We are due to have a sync-up call today but I don't think I'll be able to make it thanks to a very rough voice courtesy of my petri-dishes/children. However since the last call: * Posted final parts of the MTTCG patch set * Lots of reviews Please welcome Pranith to the group who is partici

Re: [Qemu-devel] [RFC PATCH v5 0/7] vfio IGD assignment

2016-04-25 Thread nicolas prochazka
hello again, I'm compiling linux kernel 4.6rc5 i'm compiling your qemu and seabios git then , I unbind my vga card : echo ":00:02.0" > /sys/bus/pci/devices/\:00\:02.0/driver/unbind and start qemu with this command line ( from ssh ) /usr/bin/qemu-kvm -name win -S -machine pc-i440fx-2.6,a

Re: [Qemu-devel] [PATCH for 2.7 1/1] qcow2: improve qcow2_co_write_zeroes()

2016-04-25 Thread Denis V. Lunev
On 04/25/2016 12:05 PM, Kevin Wolf wrote: Am 23.04.2016 um 14:05 hat Denis V. Lunev geschrieben: Unfortunately Linux kernel could send non-aligned requests to qemu-nbd if the caller is using O_DIRECT and does not align in-memory data to page. Thus qemu-nbd will call block layer with non-aligned

Re: [Qemu-devel] [PATCH v3 40/44] nbd: Implement NBD_OPT_GO on client

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > NBD_OPT_EXPORT_NAME is lousy: it doesn't have any sane error > reporting. Upstream NBD recently added NBD_OPT_GO as the > improved version of the option that does what we want: it > reports sane errors on failures (including when a server > requires

Re: [Qemu-devel] MTTCG Sync-up call today?

2016-04-25 Thread alvise rigo
Hi Alex, On Mon, Apr 25, 2016 at 11:53 AM, Alex Bennée wrote: > Hi, > > We are due to have a sync-up call today but I don't think I'll be able > to make it thanks to a very rough voice courtesy of my > petri-dishes/children. However since the last call: > > * Posted final parts of the MTTCG pat

Re: [Qemu-devel] [PATCH kernel 1/2] mm: add the related functions to build the free page bitmap

2016-04-25 Thread Michael S. Tsirkin
On Mon, Apr 25, 2016 at 03:11:05AM +, Li, Liang Z wrote: > > On Fri, Apr 22, 2016 at 10:48:38AM +0100, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Tue, Apr 19, 2016 at 03:02:09PM +, Li, Liang Z wrote: > > > > > > On Tue, 2016-04-19 at 22:34 +

Re: [Qemu-devel] [PATCH v5 5/5] hw/arm/virt-acpi-build: Generate SRAT table

2016-04-25 Thread Igor Mammedov
On Fri, 22 Apr 2016 15:26:05 +0200 Andrew Jones wrote: > On Thu, Apr 21, 2016 at 02:23:54PM +0800, Shannon Zhao wrote: > > From: Shannon Zhao > > > > To support NUMA, it needs to generate SRAT ACPI table. > > > > Signed-off-by: Shannon Zhao > > --- > > hw/arm/virt-acpi-build.c | 58 > >

Re: [Qemu-devel] [PULL 0/1] ppc-for-2.6 queue 20160423

2016-04-25 Thread Peter Maydell
On 23 April 2016 at 07:57, David Gibson wrote: > The following changes since commit 53343338a6e7b83777b82803398572b40afc8c0f: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2016-04-22 16:17:12 +0100) > > are available in the git repository at: > > git://git

Re: [Qemu-devel] [RFC Design Doc]Speed up live migration by skipping free pages

2016-04-25 Thread Michael S. Tsirkin
On Tue, Apr 19, 2016 at 08:12:02PM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Mon, Apr 18, 2016 at 11:08:31AM +, Li, Liang Z wrote: > > > Hi Dave, > > > > > > I am now working on how to benefit post-copy by skipping the free pages, > > > and I

[Qemu-devel] [Bug 1574572] [NEW] config 20 sriov direct bond ports,vm create failed.

2016-04-25 Thread Michael liu
Public bug reported: nova log: 2016-04-08 09:57:48.640 5057 INFO nova.compute.manager [req- 4e1b4d70-62b6-4158-8413-3c9f226fd13b - - - - -] report alarm_instance_shutoff success 2016-04-08 09:57:48.712 5057 INFO nova.compute.manager [req- 4e1b4d70-62b6-4158-8413-3c9f226fd13b - - - - -] [instanc

Re: [Qemu-devel] [PATCH kernel 0/2] speed up live migration by skipping free pages

2016-04-25 Thread Michael S. Tsirkin
On Mon, Apr 25, 2016 at 11:36:41AM +0530, Amit Shah wrote: > On (Tue) 19 Apr 2016 [22:34:32], Liang Li wrote: > > Current QEMU live migration implementation mark all guest's RAM pages > > as dirtied in the ram bulk stage, all these pages will be processed > > and it consumes quite a lot of CPU cycl

Re: [Qemu-devel] MTTCG Sync-up call today?

2016-04-25 Thread Mark Burton
Fred’s away this week too Cheers Mark. > On 25 Apr 2016, at 12:32, alvise rigo wrote: > > Hi Alex, > > On Mon, Apr 25, 2016 at 11:53 AM, Alex Bennée > wrote: > Hi, > > We are due to have a sync-up call today but I don't think I'll be able > to make it thanks to

Re: [Qemu-devel] [PATCH v4 0/5] tcg: Misc clean-up patches

2016-04-25 Thread Sergey Fedorov
On 21/04/16 17:57, Sergey Fedorov wrote: > From: Sergey Fedorov > > This patch series consists of various general TCG clean-up patches extracted > from Paolo's MTTCG tree [1] and Alex's MTTCG base enablement tree [2]. I also > add here a patch from myself to rework tb_invalidated_flag based on the

Re: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Shannon Zhao
On 2016/4/25 17:22, Andrew Jones wrote: > On Mon, Apr 25, 2016 at 03:11:45PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Add a virtual PMU device for virt machine while use PPI 7 for PMU >> > overflow interrupt number. >> > >> > Signed-off-by: Shannon Zhao >> > --- >> > hw/a

Re: [Qemu-devel] ARM PC-relative Loads, and TBs in soft MMU

2016-04-25 Thread Tom Spink
On 23/04/16 13:21, Peter Maydell wrote: TBs are looked up by (virtual) PC + flags + physical address, so if the same lump of code is mapped at two different virtual addresses we'll translate it twice. (More precisely, tb_find_fast() checks only the virtual address, but it does so in a cache which

Re: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 07:37:13PM +0800, Shannon Zhao wrote: > > > On 2016/4/25 17:22, Andrew Jones wrote: > > On Mon, Apr 25, 2016 at 03:11:45PM +0800, Shannon Zhao wrote: > >> > From: Shannon Zhao > >> > > >> > Add a virtual PMU device for virt machine while use PPI 7 for PMU > >> > overflow

[Qemu-devel] [PATCH] exec.c: Ensure right alignment also for file backed ram

2016-04-25 Thread Dominik Dingel
While in the anonymous ram case we already take care of the right alignment such an alignment gurantee does not exist for file backed ram allocation. Instead, pagesize is used for alignment. On s390 this is not enough for gmap, as we need to satisfy an alignment up to segments. Reported-by: Halil

Re: [Qemu-devel] [PATCH kernel 0/2] speed up live migration by skipping free pages

2016-04-25 Thread Amit Shah
On (Mon) 25 Apr 2016 [14:04:06], Michael S. Tsirkin wrote: > On Mon, Apr 25, 2016 at 11:36:41AM +0530, Amit Shah wrote: > > On (Tue) 19 Apr 2016 [22:34:32], Liang Li wrote: > > > Current QEMU live migration implementation mark all guest's RAM pages > > > as dirtied in the ram bulk stage, all these

Re: [Qemu-devel] [PATCH v3 41/44] nbd: Implement NBD_CMD_WRITE_ZEROES on server

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Upstream NBD protocol recently added the ability to efficiently > write zeroes without having to send the zeroes over the wire, > along with a flag to control whether the client wants a hole. > > Signed-off-by: Eric Blake Reviewed-by: Alex Bligh

Re: [Qemu-devel] [PATCH 2.6 candidate] usb/uhci: move pid check

2016-04-25 Thread Peter Maydell
On 22 April 2016 at 11:44, Gerd Hoffmann wrote: > commit "5f77e06 usb: add pid check at the first of uhci_handle_td()" > moved the pid verification to the start of the uhci_handle_td function, > to simplify the error handling (we don't have to free stuff which we > didn't allocate in the first pla

Re: [Qemu-devel] [PATCH v3 42/44] nbd: Implement NBD_CMD_WRITE_ZEROES on client

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Upstream NBD protocol recently added the ability to efficiently > write zeroes without having to send the zeroes over the wire, > along with a flag to control whether the client wants a hole. > > The generic block code takes care of falling back to

Re: [Qemu-devel] [PATCH v3 43/44] nbd: Implement NBD_OPT_BLOCK_SIZE on server

2016-04-25 Thread Alex Bligh
Eric, See my message on nbd-general today re the necessity (or not) of getting NBD_OPT_BLOCK_SIZE first; it may be just that you can assume 512 is OK. Otherwise Reviewed-by: Alex Bligh Alex On 23 Apr 2016, at 00:40, Eric Blake wrote: > The upstream NBD Protocol has defined a new extension t

Re: [Qemu-devel] [PATCH v3 44/44] nbd: Implement NBD_OPT_BLOCK_SIZE on client

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > The upstream NBD Protocol has defined a new extension to allow > the server to advertise block sizes to the client, as well as > a way for the client to inform the server that it intends to > obey block sizes. > > Pass any received sizes on to the b

Re: [Qemu-devel] [PATCH v3 3/3] hw/arm/virt-acpi-build: Add PMU IRQ number in ACPI table

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 03:11:46PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Add PMU IRQ number in ACPI table, then we can use PMU in guest through > ACPI. > > Signed-off-by: Shannon Zhao > Reviewed-by: Andrew Jones > --- > hw/arm/virt-acpi-build.c | 3 +++ > 1 file changed, 3 inser

[Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers

2016-04-25 Thread Stefan Hajnoczi
This patch series eliminates code duplication in libqos virtio. include/standard-headers/ contains the Linux virtio header files so we don't need to define our own version of the structs and constants. Stefan Hajnoczi (8): libqos: use virtio_ids.h for device ID definitions libqos: drop duplica

[Qemu-devel] [PATCH for-2.7 2/8] libqos: drop duplicated PCI vendor ID definition

2016-04-25 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.c | 3 ++- tests/libqos/virtio.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/libqos/virtio-pci.c b/tests/libqos/virtio-pci.c index fde2ff0..275c14d 100644 --- a/tests/libqos/virtio-pci.c +++ b/tests/li

[Qemu-devel] [PATCH for-2.7 1/8] libqos: use virtio_ids.h for device ID definitions

2016-04-25 Thread Stefan Hajnoczi
Avoid redefining device IDs. Use the standard Linux headers that are already in the source tree. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio.h| 9 - tests/virtio-blk-test.c | 7 --- tests/virtio-net-test.c | 5 +++-- tests/virtio-scsi-test.c | 5 +++-- 4 files chang

[Qemu-devel] [PATCH for-2.7 8/8] libqos: drop duplicated virtio_pci.h definitions

2016-04-25 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.c | 42 ++ tests/libqos/virtio-pci.h | 17 - tests/virtio-blk-test.c | 11 ++- tests/virtio-scsi-test.c | 3 ++- 4 files changed, 30 insertions(+), 43 deletions(-) diff

[Qemu-devel] [PATCH for-2.7 4/8] libqos: drop duplicated virtio_ring.h bit definitions

2016-04-25 Thread Stefan Hajnoczi
Note that virtio_ring.h defines feature bits using their bit number: #define VIRTIO_RING_F_INDIRECT_DESC 28 On the other hand libqos virtio.h uses the bit mask: #define QVIRTIO_F_RING_INDIRECT_DESC0x1000 The patch makes the necessary adjustments. I have used "1 << BITMASK" inst

[Qemu-devel] [PATCH for-2.7 6/8] libqos: drop duplicated virtio_blk.h definitions

2016-04-25 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/virtio-blk-test.c | 50 - 1 file changed, 16 insertions(+), 34 deletions(-) diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c index 57a2635..8e28a33 100644 --- a/tests/virtio-blk-test.c +++ b/te

[Qemu-devel] [PATCH for-2.7 3/8] libqos: drop duplicated virtio_config.h definitions

2016-04-25 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio.c | 19 ++- tests/libqos/virtio.h | 9 - tests/virtio-blk-test.c | 5 +++-- 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/tests/libqos/virtio.c b/tests/libqos/virtio.c index 613dece..ee9e892 10

[Qemu-devel] [PATCH for-2.7 5/8] libqos: drop duplicated virtio_vring.h structs

2016-04-25 Thread Stefan Hajnoczi
The descriptor element, used, and avail vring structs are defined in virtio_ring.h. There is no need to duplicate them in libqos virtio. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio.c | 10 +- tests/libqos/virtio.h | 39 +++ 2 files changed,

[Qemu-devel] [PATCH for-2.7 7/8] libqos: drop duplicated virtio_scsi.h definitions

2016-04-25 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/virtio-scsi-test.c | 45 +++-- 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/tests/virtio-scsi-test.c b/tests/virtio-scsi-test.c index 625bd6d..8b8f5f3 100644 --- a/tests/virtio-scsi-test.c +++ b/te

Re: [Qemu-devel] [PATCH kernel 0/2] speed up live migration by skipping free pages

2016-04-25 Thread Michael S. Tsirkin
On Mon, Apr 25, 2016 at 05:38:30PM +0530, Amit Shah wrote: > On (Mon) 25 Apr 2016 [14:04:06], Michael S. Tsirkin wrote: > > On Mon, Apr 25, 2016 at 11:36:41AM +0530, Amit Shah wrote: > > > On (Tue) 19 Apr 2016 [22:34:32], Liang Li wrote: > > > > Current QEMU live migration implementation mark all g

Re: [Qemu-devel] [V9 0/4] AMD IOMMU

2016-04-25 Thread Marcel Apfelbaum
On 04/25/2016 01:12 AM, David Kiarie wrote: Hi all, The current AMD IOMMU patches that fixes Igor's comments. I got rid of structs and instead added individual integer fields into the table data directly, as suggested. I have also got rid of some un-used macros and fixed a few other miscellane

Re: [Qemu-devel] [PATCH v7 4/5] ACPI: move acpi_build_srat_memory to common place

2016-04-25 Thread Marcel Apfelbaum
On 04/25/2016 11:05 AM, Shannon Zhao wrote: From: Shannon Zhao Move acpi_build_srat_memory to common place so that it could be reused by ARM. Rename it to build_acpi_srat_memory. Cc: Michael S. Tsirkin Cc: Igor Mammedov Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 11

Re: [Qemu-devel] [PATCH kernel 0/2] speed up live migration by skipping free pages

2016-04-25 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Mon, Apr 25, 2016 at 05:38:30PM +0530, Amit Shah wrote: > > On (Mon) 25 Apr 2016 [14:04:06], Michael S. Tsirkin wrote: > > > On Mon, Apr 25, 2016 at 11:36:41AM +0530, Amit Shah wrote: > > > > On (Tue) 19 Apr 2016 [22:34:32], Liang Li wrote: > > > >

[Qemu-devel] long irresponsibility or stuck in the migration code

2016-04-25 Thread Denis V. Lunev
Hello, Amit! We have faced very interesting issue with QEMU migration code. Migration thread performs the following operation: #0 0x7f61abe9978d in sendmsg () at ../sysdeps/unix/syscall-template.S:81 #1 0x7f61b2942055 in do_send_recv (sockfd=sockfd@entry=104, iov=iov@entry=0x7f61b71a8

Re: [Qemu-devel] [PATCH v3 3/3] hw/arm/virt-acpi-build: Add PMU IRQ number in ACPI table

2016-04-25 Thread Shannon Zhao
On 2016年04月25日 20:42, Andrew Jones wrote: > On Mon, Apr 25, 2016 at 03:11:46PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Add PMU IRQ number in ACPI table, then we can use PMU in guest through >> > ACPI. >> > >> > Signed-off-by: Shannon Zhao >> > Reviewed-by: Andrew Jones >>

Re: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Shannon Zhao
On 2016年04月25日 19:52, Andrew Jones wrote: > On Mon, Apr 25, 2016 at 07:37:13PM +0800, Shannon Zhao wrote: >> > >> > >> > On 2016/4/25 17:22, Andrew Jones wrote: >>> > > On Mon, Apr 25, 2016 at 03:11:45PM +0800, Shannon Zhao wrote: > > >> > From: Shannon Zhao > > >> > > > >> > Add a

Re: [Qemu-devel] [PATCH v5 5/9] target-mips: Activate IEEE 274-2008 signaling NaN bit meaning

2016-04-25 Thread Maciej W. Rozycki
On Mon, 18 Apr 2016, Aleksandar Markovic wrote: > Functions mips_cpu_reset() and msa_reset() are updated so that flag > snan_bit_is_one is properly set for any Mips FPU/MSA configuration. > For main FPUs, CPUs with FCR31's FCR31_NAN2008 bit set will invoke > set_snan_bit_is_one(0). For MSA, as it

Re: [Qemu-devel] [RFC PATCH v5 0/7] vfio IGD assignment

2016-04-25 Thread Alex Williamson
On Mon, 25 Apr 2016 11:59:17 +0200 nicolas prochazka wrote: > hello again, > I'm compiling linux kernel 4.6rc5 > i'm compiling your qemu and seabios git > > then , I unbind my vga card : > echo ":00:02.0" > /sys/bus/pci/devices/\:00\:02.0/driver/unbind > > and start qemu with this comma

Re: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Add PMU node for virt machine

2016-04-25 Thread Andrew Jones
On Mon, Apr 25, 2016 at 09:54:50PM +0800, Shannon Zhao wrote: > On 2016年04月25日 19:52, Andrew Jones wrote: > > On Mon, Apr 25, 2016 at 07:37:13PM +0800, Shannon Zhao wrote: > >> > > >> > > >> > On 2016/4/25 17:22, Andrew Jones wrote: > >>> > > On Mon, Apr 25, 2016 at 03:11:45PM +0800, Shannon Zhao

[Qemu-devel] [PATCH for-2.7 0/9] First s390x batch for 2.7

2016-04-25 Thread Cornelia Huck
Here's the first round of s390x patches for 2.7. We have the new machine for 2.7 and two features: - Make use of the runtime instrumentation support introduced in the kernel. - Enhance our ipl (boot) process: We can now start from devices in subchannel sets > 0 as well. As a bonus, the conversi

[Qemu-devel] [PATCH for-2.7 6/9] s390x/ipl: Add ssid field to IplParameterBlock

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin Add the ssid field to the ipl parameter block struct and fill it when necessary so the guest can use it. Signed-off-by: Alexander Yarygin Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck --- hw/s390x/ipl.c| 1 + hw/s390x/ipl.h| 3 ++- target

[Qemu-devel] [PATCH for-2.7 4/9] s390x/ipl: Add type and length checks for IplParameterBlock values

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin We can check for valid type and lengths of the IplParameterBlock fields when receiving the struct from the guest. Length of the IplParameterBlock can be less than 4K. To play safe we can read and write only required amount of data. Signed-off-by: Alexander Yarygin Revie

[Qemu-devel] [PATCH for-2.7 8/9] s390-ccw.img: rebuild image

2016-04-25 Thread Cornelia Huck
Contains the following change: pc-bios/s390-ccw: Get device address via diag 308/6 Signed-off-by: Cornelia Huck --- pc-bios/s390-ccw.img | Bin 26424 -> 26424 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pc-bios/s390-ccw.img b/pc-bios/s390-ccw.img index d3978ba0506cb2405

[Qemu-devel] [PATCH for-2.7 3/9] s390x/ipl: Extend the IplParameterBlock struct

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin The IplParameterBlock struct currently has only 200 bytes filled, but it can be up to 4K. This patch converts the struct to union with a fully populated struct inside it and second struct with old values. For compatibility reasons we disable migration of the extended ipl

[Qemu-devel] [PATCH for-2.7 7/9] pc-bios/s390-ccw: Get device address via diag 308/6

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin To IPL from a device, pc-bios receives from qemu a device address via general register 7. The better way to do it is to use diag308/6 instruction which returns so called "IplParameterBlock". IplParameterBlock contains the device address for IPL and additional parameters th

[Qemu-devel] [PATCH for-2.7 5/9] s390x/ipl: Provide ipl parameter block

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin Right now we return the ipl parameter block only if the guest specified one. Let's fill in the parameter block when bootindex parameter is available and not booting from an external kernel. Signed-off-by: Alexander Yarygin Reviewed-by: David Hildenbrand Signed-off-by: C

Re: [Qemu-devel] [RFC v2] translate-all: protect code_gen_buffer with RCU

2016-04-25 Thread Alex Bennée
Emilio G. Cota writes: > [ Applies on top of bennee/mttcg/enable-mttcg-for-armv7-v1 after > reverting "translate-all: introduces tb_flush_safe". A trivial > conflict must be solved after applying. ] > > This is a first attempt at making tb_flush not have to stop all CPUs. > There are issues as p

[Qemu-devel] [PATCH for-2.7 9/9] s390x/ipl: Remove redundant usage of gr7

2016-04-25 Thread Cornelia Huck
From: Alexander Yarygin We don't need to pass device address for pc-bios using gr7 anymore as the pcbios completely relies on diag308 now, so we can remove it from qemu. devno, ssid and cssid are migrated but the value was never reused, so we can safely ignore these fields and migrate 0. Signed-

[Qemu-devel] [PATCH for-2.7 1/9] s390x: add compat machine for 2.7

2016-04-25 Thread Cornelia Huck
Also add some of the option cascading we were missing. Signed-off-by: Cornelia Huck --- hw/s390x/s390-virtio-ccw.c | 21 - include/hw/compat.h| 3 +++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw

[Qemu-devel] [PATCH for-2.7 2/9] s390x: enable runtime instrumentation

2016-04-25 Thread Cornelia Huck
From: Fan Zhang Introduce run-time-instrumentation support when running under kvm for virtio-ccw 2.7 machine and make sure older machines can not enable it. The new ri_allowed field in the s390MachineClass serves as an indicator whether the feature can be used by the machine and should therefore

Re: [Qemu-devel] [RFC v2] translate-all: protect code_gen_buffer with RCU

2016-04-25 Thread Emilio G. Cota
On Mon, Apr 25, 2016 at 16:19:59 +0100, Alex Bennée wrote: > > Emilio G. Cota writes: > > > [ Applies on top of bennee/mttcg/enable-mttcg-for-armv7-v1 after > > reverting "translate-all: introduces tb_flush_safe". A trivial > > conflict must be solved after applying. ] > > > > This is a first at

Re: [Qemu-devel] [PATCH v5] Add optionrom compatible with fw_cfg DMA version

2016-04-25 Thread Stefan Hajnoczi
On Fri, Apr 22, 2016 at 02:02:28PM +0100, Richard W.M. Jones wrote: > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 99437e0..e11152d 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c > @@ -999,8 +999,13 @@ static void load_linux(PCMachineState *pcms, > fw_cfg_add_i32(fw_cfg, FW_CFG_SETUP_SIZ

[Qemu-devel] [PATCH v6] Add optionrom compatible with fw_cfg DMA version

2016-04-25 Thread Richard W.M. Jones
v5 -> v6: - Changed the xen_load_linux assertion as suggested by Stefan. - I renamed the variables in get_e801_addr function, since the registers were really (16 bit 8086-style) AX, not EAX etc. Also I changed the GCC asm to make it a little bit more efficient. I verified by disassem

[Qemu-devel] [PATCH v6] Add optionrom compatible with fw_cfg DMA version

2016-04-25 Thread Richard W.M. Jones
From: Marc Marí This optionrom is based on linuxboot.S. Signed-off-by: Marc Marí Signed-off-by: Richard W.M. Jones --- .gitignore| 4 + hw/i386/pc.c | 10 +- hw/nvram/fw_cfg.c | 2 +- include/hw/nvram/fw_cfg.h | 1 +

Re: [Qemu-devel] [PATCH v4 00/16] IOMMU: Enable interrupt remapping for Intel IOMMU

2016-04-25 Thread Radim Krčmář
2016-04-25 09:24+0200, Jan Kiszka: > On 2016-04-25 09:18, Peter Xu wrote: >> On Mon, Apr 25, 2016 at 07:16:19AM +0200, Jan Kiszka wrote: >>> On 2016-04-19 10:38, Peter Xu wrote: - EIM support >>> >>> That should be fairly easy, I already played with it (hack in EIM cap, >>> change vtd_remap_ir

Re: [Qemu-devel] [RFC 00/13] Multiple fd migration support

2016-04-25 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> Hi >> >> This patch series is "an" initial implementation of multiple fd migration. >> This is to get something out for others to comment, it is not finished at >> all. > > I've had a quick skim: > a) I think mst

[Qemu-devel] [PATCH for-2.7 0/6] virtio: refactor host notifiers

2016-04-25 Thread Cornelia Huck
As promised, my host notifier refactoring (last posted 2016/03/24) rebased unto current master (no further changes). This still fixes an issue where we have no ioeventfd for a short time, but it does not break our necks any more with the recent fixes. Still, I think this is a net win, especially c

[Qemu-devel] [PATCH for-2.7 5/6] virtio-mmio: convert to ioeventfd callbacks

2016-04-25 Thread Cornelia Huck
Convert to the new interface. Signed-off-by: Cornelia Huck --- hw/virtio/virtio-mmio.c | 128 1 file changed, 41 insertions(+), 87 deletions(-) diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index d4cd91f..eb84b74 100644 --- a/hw/

[Qemu-devel] [PATCH for-2.7 4/6] virtio-pci: convert to ioeventfd callbacks

2016-04-25 Thread Cornelia Huck
Convert to new interface. Signed-off-by: Cornelia Huck --- hw/virtio/virtio-pci.c | 124 - 1 file changed, 41 insertions(+), 83 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index bfedbbf..ca2003c 100644 --- a/hw/virtio

[Qemu-devel] [PATCH for-2.7 6/6] virtio-bus: remove old set_host_notifier callback

2016-04-25 Thread Cornelia Huck
All users have been converted to the new ioevent callbacks. Signed-off-by: Cornelia Huck --- hw/block/dataplane/virtio-blk.c | 12 ++-- hw/scsi/virtio-scsi-dataplane.c | 19 --- hw/virtio/vhost.c | 13 + include/hw/virtio/virtio-bus.h | 1 - 4

[Qemu-devel] [PATCH for-2.7 2/6] virtio-bus: have callers tolerate new host notifier api

2016-04-25 Thread Cornelia Huck
Have vhost and dataplane use the new api for transports that have been converted. Signed-off-by: Cornelia Huck --- hw/block/dataplane/virtio-blk.c | 14 +++--- hw/scsi/virtio-scsi-dataplane.c | 20 +++- hw/virtio/vhost.c | 20 3 files ch

  1   2   >