[Qemu-devel] [PATCH 1/1] ppc: Fix MMU model values needed by PR KVM

2016-07-20 Thread Sam Bobroff
Commit 4322e8c "ppc: Fix 64K pages support in full emulation" added the POWERPC_MMU_64K flag to the POWERPC_MMU_2_06 and POWERPC_MMU_2_07 definitions but not to their "degraded" variants. When running with PR KVM, kvm_fixup_page_sizes() removes the POWERPC_MMU_1TSEG flag from the MMU value then

Re: [Qemu-devel] [PATCH V3] hw/virtio-pci: fix virtio behaviour

2016-07-20 Thread Marcel Apfelbaum
On 07/20/2016 06:28 PM, Marcel Apfelbaum wrote: Enable transitional virtio devices by default. Enable virtio-1.0 for devices plugged into PCIe ports (Root ports or Downstream ports). Using the virtio-1 mode will remove the limitation of the number of devices that can be attached to a machine by

[Qemu-devel] [Bug 498035] Re: qemu hangs on shutdown or reboot (XP guest)

2016-07-20 Thread pranith
Closing since it seems to be fixed in latest release. ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/498035 Title: qemu hangs on

[Qemu-devel] [RFC PATCH 2/2] migration: Allow -incoming to work on file: urls

2016-07-20 Thread zhanghailiang
Usage: -incoming file:/path/to/vm_statefile Besides, use qemu_strtol() instead of strtol(). Signed-off-by: zhanghailiang Signed-off-by: Benoit Canet --- include/migration/migration.h | 2 ++ migration/fd.c| 37

[Qemu-devel] [RFC PATCH 0/2] Migration: support working on file:url

2016-07-20 Thread zhanghailiang
It is more simple to use file:url to migrate VM into file. Besides, it will be used in memory snapshot. Test: 1) migrate VM state into file: migrate file:url 2) Restore VM from the file: qemu-system-x86_64 xxx --incoming file:url zhanghailiang (2): migration: Allow the migrate command

[Qemu-devel] [RFC PATCH 1/2] migration: Allow the migrate command to work on file:urls

2016-07-20 Thread zhanghailiang
Usage: (qemu) migrate file:/path/to/vm_statefile Signed-off-by: zhanghailiang Signed-off-by: Benoit Canet --- include/migration/migration.h | 2 ++ migration/fd.c| 34 --

[Qemu-devel] [PATCH v5] qemu-img: add the 'dd' subcommand

2016-07-20 Thread Reda Sallahi
This patch adds a basic dd subcommand analogous to dd(1) to qemu-img. For the start, this implements the bs, if, of and count options and requires both if and of to be specified (no stdin/stdout if not specified) and doesn't support tty, pipes, etc. The image format must be specified with -O for

[Qemu-devel] oss-security - CVE-2014-3672 libvirt: DoS via excessive logging

2016-07-20 Thread Xulei (Stone)
Hi, A CVE(CVE-2014-3672) vulnerability was reported in Xen. I want to know how to reproduce this CVE and whether the qemu-kvm was affected ? Hyperlink: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3672 Hyperlink: http://www.openwall.com/lists/oss-security/2016/05/24/5 Thank you.

Re: [Qemu-devel] [PATCH v3 09/10] gdbstub: Convert target_memory_rw_debug to use MemoryAccessType

2016-07-20 Thread David Gibson
On Tue, Jul 19, 2016 at 10:02:59PM -0700, Andrey Smirnov wrote: > Convert target_memory_rw_debug to use MemoryAccessType as to follow > similar conversion of cpu_memory_rw_debug. > > Signed-off-by: Andrey Smirnov Reviewed-by: David Gibson

Re: [Qemu-devel] [PATCH v3 08/10] Convert address_space_rw to use MemoryAccessType

2016-07-20 Thread David Gibson
On Tue, Jul 19, 2016 at 10:02:58PM -0700, Andrey Smirnov wrote: > Convert address_space_rw() to use MemoryAccessType following the > conversion of cpu_memory_rw_debug(). > > Signed-off-by: Andrey Smirnov Reviewed-by: David Gibson > --- >

Re: [Qemu-devel] Regression: block: Add .bdrv_co_pwrite_zeroes()

2016-07-20 Thread wangweiwei
Sorry, reply is wrong. 在 2016年07月21日 09:38, wangweiwei 写道: 在 2016年07月20日 19:35, Eric Blake 写道: On 07/04/2016 07:49 AM, Peter Lieven wrote: Hi, the above commit: commit d05aa8bb4a8b6aa9a915ec5074fb12ae632d2323 Author: Eric Blake Date: Wed Jun 1 15:10:03 2016 -0600

Re: [Qemu-devel] Regression: block: Add .bdrv_co_pwrite_zeroes()

2016-07-20 Thread wangweiwei
在 2016年07月20日 19:35, Eric Blake 写道: On 07/04/2016 07:49 AM, Peter Lieven wrote: Hi, the above commit: commit d05aa8bb4a8b6aa9a915ec5074fb12ae632d2323 Author: Eric Blake Date: Wed Jun 1 15:10:03 2016 -0600 block: Add .bdrv_co_pwrite_zeroes() introduces a regression

[Qemu-devel] [PATCH] checkpatch: rename README to README.md

2016-07-20 Thread Changlong Xie
Since commit e5dfc5e broke the logic of @top_of_kernel_tree Cc: Pranith Kumar Cc: Paolo Bonzini Cc: Stefan Hajnoczi Signed-off-by: Changlong Xie --- scripts/checkpatch.pl | 2 +- 1 file changed, 1

Re: [Qemu-devel] [PATCH v2] mirror: double performance of the bulk stage if the disc is full

2016-07-20 Thread Denis V. Lunev
On 07/20/2016 10:08 PM, Paolo Bonzini wrote: - Original Message - From: "Denis V. Lunev" To: "Vladimir Sementsov-Ogievskiy" , qemu-bl...@nongnu.org, qemu-devel@nongnu.org Cc: stefa...@redhat.com, f...@redhat.com, mre...@redhat.com,

Re: [Qemu-devel] Regression: block: Add .bdrv_co_pwrite_zeroes()

2016-07-20 Thread Eric Blake
On 07/04/2016 07:49 AM, Peter Lieven wrote: > Hi, > > the above commit: > > commit d05aa8bb4a8b6aa9a915ec5074fb12ae632d2323 > Author: Eric Blake > Date: Wed Jun 1 15:10:03 2016 -0600 > > block: Add .bdrv_co_pwrite_zeroes() > > introduces a regression (at least for

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Pranith Kumar
On Wed, Jul 20, 2016 at 6:07 PM, Peter Maydell wrote: > On 20 July 2016 at 22:33, Pranith Kumar wrote: >> Hmm, the original README did not have an explicit new line at end of >> file. > > Yes it did: > $ git show 70f87e0f0a:README | tail -c 1 | od

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 22:33, Pranith Kumar wrote: > Hmm, the original README did not have an explicit new line at end of > file. Yes it did: $ git show 70f87e0f0a:README | tail -c 1 | od -An -a nl thanks -- PMM

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Eric Blake
On 07/20/2016 03:33 PM, Pranith Kumar wrote: >>> + - http://qemu-project.org/Contribute/StartHere >>> \ No newline at end of file >> >> Why no ending newline? >> > > Hmm, the original README did not have an explicit new line at end of > file. I am not sure if it is really necessary though. Why

Re: [Qemu-devel] [PULL 13/14] block/gluster: using new qapi schema

2016-07-20 Thread Jeff Cody
On Wed, Jul 20, 2016 at 03:24:41PM -0600, Eric Blake wrote: > On 07/19/2016 06:21 PM, Jeff Cody wrote: > > From: Prasanna Kumar Kalever > > > > this patch adds 'GlusterServer' related schema in qapi/block-core.json > > > > [Jeff: minor fix-ups of comments and

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Pranith Kumar
On Wed, Jul 20, 2016 at 5:29 PM, Eric Blake wrote: > On 07/20/2016 01:39 PM, Pranith Kumar wrote: >> Signed-off-by: Pranith Kumar >> --- >> README | 44 +--- >> 1 file changed, 21 insertions(+), 23 deletions(-) >>

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Eric Blake
On 07/20/2016 01:39 PM, Pranith Kumar wrote: > Signed-off-by: Pranith Kumar > --- > README | 44 +--- > 1 file changed, 21 insertions(+), 23 deletions(-) > In addition to Stefan's comments, > Information on additional methods of

Re: [Qemu-devel] [PULL 13/14] block/gluster: using new qapi schema

2016-07-20 Thread Eric Blake
On 07/19/2016 06:21 PM, Jeff Cody wrote: > From: Prasanna Kumar Kalever > > this patch adds 'GlusterServer' related schema in qapi/block-core.json > > [Jeff: minor fix-ups of comments and formatting, per patch reviews] > > Signed-off-by: Prasanna Kumar Kalever

Re: [Qemu-devel] [PULL 0/4] Block patches

2016-07-20 Thread Eric Blake
On 07/20/2016 10:05 AM, Peter Maydell wrote: > On 19 July 2016 at 23:47, Max Reitz wrote: >> The following changes since commit 5d3217340adcb6c4f0e4af5d2b865331eb2ff63d: >> >> disas: Fix ATTRIBUTE_UNUSED define clash with ALSA headers (2016-07-19 >> 16:40:39 +0100) >> >> are

Re: [Qemu-devel] [PULL v2 00/25] Block patches

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 17:20, Stefan Hajnoczi wrote: > The following changes since commit 338404d061144956b76f9893ca3434d057dff2d4: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20160719' into staging (2016-07-20 > 12:48:18 +0100) > > are available

Re: [Qemu-devel] [PULL v2 00/28] x86 queue, 2016-07-20

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 16:08, Eduardo Habkost wrote: > Changes v2: > * Fixed 32-bit build error by using %d and idx at > pc_cpu_pre_plug() > > The following changes since commit 338404d061144956b76f9893ca3434d057dff2d4: > > Merge remote-tracking branch >

Re: [Qemu-devel] [PULL 0/3] s390x fixes for 2.7

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 15:17, Cornelia Huck <cornelia.h...@de.ibm.com> wrote: > ck/qemu s390x-20160720 > The following changes since commit 1ecfb24da987b862fd46a5b37292879952ea9e7d: > > Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160719-2' > into staging

Re: [Qemu-devel] [PATCH 1/1] vmstateify rc4030

2016-07-20 Thread Hervé Poussineau
Hi, Le 18/07/2016 à 17:18, Dr. David Alan Gilbert (git) a écrit : From: "Dr. David Alan Gilbert" rc4030 seems to be part of a MIPS chipset; this converts it to VMState. Note: a) It builds but I've not found a way to boot a MIPS Jazz image to test it. b) It was

[Qemu-devel] [PATCH v2 0/3] Fix regression caused my moving README

2016-07-20 Thread Pranith Kumar
When we renamed README we caused a bunch of regressions caused by checkpatch.pl and the windows installer which check for the presence of the README file. The ensuring discussion made it clear that having a symlink is preferable. This patch series implements that. This works as expected and can

[Qemu-devel] [PATCH v2 3/3] Create README.md as a symlink to README

2016-07-20 Thread Pranith Kumar
Signed-off-by: Pranith Kumar Reviewed-by: Stefan Weil --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 12 README.md diff --git a/README.md b/README.md new file mode 12 index 000..100b938 --- /dev/null +++ b/README.md @@ -0,0

[Qemu-devel] [PATCH v2 2/3] Update README to accomodate markdown format

2016-07-20 Thread Pranith Kumar
Signed-off-by: Pranith Kumar Reviewed-by: Stefan Weil --- README | 44 +--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/README b/README index f38193f..8a7ac66 100644 --- a/README +++ b/README @@

[Qemu-devel] [PATCH v2 1/3] Revert e5dfc5e8e("Move README to markdown")

2016-07-20 Thread Pranith Kumar
checkpatch.pl and other scripts fail without README. Also in dicussions it was deemed safer to create a symlink, the patch for which follows. This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7. Signed-off-by: Pranith Kumar Reviewed-by: Stefan Weil

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Pranith Kumar
Thank you for reviewing. On Wed, Jul 20, 2016 at 4:10 PM, Stefan Weil wrote: > See comments below. > > I'd also switch commits 2 and 3, because 2 is only valid as soon as > README is in markup format. > OK, I will update patches 2 and 3 and resend a v2. Thanks! -- Pranith

Re: [Qemu-devel] [PATCH] vl: exit if a bad property value is passed to -global

2016-07-20 Thread Eduardo Habkost
Sorry for the long delay: On Thu, Jul 14, 2016 at 10:29:57AM +0200, Igor Mammedov wrote: > On Thu, 14 Jul 2016 11:42:40 +1000 > David Gibson wrote: > > > On Wed, Jul 13, 2016 at 08:05:03PM +0200, Greg Kurz wrote: > > > When passing '-global

Re: [Qemu-devel] [PATCH 1/3] Revert e4dfc5e8e("Move README to markdown")

2016-07-20 Thread Stefan Weil
On 07/20/16 21:39, Pranith Kumar wrote: > checkpatch.pl and other scripts fail without README. Also in dicussions > it was deemed safer to create a symlink, the patch for which follows. > > This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7. > > Signed-off-by: Pranith Kumar

Re: [Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Stefan Weil
See comments below. On 07/20/16 21:39, Pranith Kumar wrote: > Signed-off-by: Pranith Kumar > --- > README | 44 +--- > 1 file changed, 21 insertions(+), 23 deletions(-) > > diff --git a/README b/README > index f38193f..8d5744d

Re: [Qemu-devel] [PULL for-2.7 0/2] usb: xhci assert fix, add usbredir streams property

2016-07-20 Thread Peter Maydell
RIBUTE_UNUSED define clash with ALSA headers (2016-07-19 > 16:40:39 +0100) > > are available in the git repository at: > > git://git.kraxel.org/qemu tags/pull-usb-20160720-1 > > for you to fetch changes up to 87ae924b73cbbe13ad800ab2016d011b42456f25: > &

[Qemu-devel] [PATCH 2/3] Create README.md as a symlink to README

2016-07-20 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 12 README.md diff --git a/README.md b/README.md new file mode 12 index 000..100b938 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +README \ No newline at end of file --

[Qemu-devel] [PATCH 1/3] Revert e4dfc5e8e("Move README to markdown")

2016-07-20 Thread Pranith Kumar
checkpatch.pl and other scripts fail without README. Also in dicussions it was deemed safer to create a symlink, the patch for which follows. This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7. Signed-off-by: Pranith Kumar --- README.md => README | 41

[Qemu-devel] [PATCH 3/3] Update README to accomodate markdown format

2016-07-20 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- README | 44 +--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/README b/README index f38193f..8d5744d 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ - QEMU README -

[Qemu-devel] [PATCH 0/3] Fix regression caused my moving README

2016-07-20 Thread Pranith Kumar
When we renamed README we caused a bunch of regressions caused by checkpatch.pl and the windows installer which check for the presence of the README file. The ensuring discussion made it clear that having a symlink is preferable. This patch series implements that. This works as expected and can

[Qemu-devel] [PATCH] optionrom: fix detection of -Wa,-32

2016-07-20 Thread Paolo Bonzini
The cc-option macro runs $(CC) in -S mode (generate assembly) to avoid a pointless run of the assembler. However, this does not work when you want to detect support for cc->as option passthrough. clang ignores -Wa unless -c is provided, and exits successfully even if the -Wa,-32 option is not

Re: [Qemu-devel] [PULL v1 0/2] Merge qcrypto-next 2016/07/20

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 12:32, Daniel P. Berrange wrote: > The following changes since commit a3b343772114c8c98986508f3352a631164f913c: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2016-07-19 15:08:05 +0100) > > are available in the git

Re: [Qemu-devel] [PULL for-2.7 0/1] qxl: fix qxl_set_dirty call in qxl_dirty_one_surface

2016-07-20 Thread Peter Maydell
define clash with ALSA headers (2016-07-19 > 16:40:39 +0100) > > are available in the git repository at: > > git://git.kraxel.org/qemu tags/pull-vga-20160720-1 > > for you to fetch changes up to e0127d2eec9cd5676ea9f3c47c2a7579a02c0466: > > qxl: fix qxl_set_di

Re: [Qemu-devel] [PATCH v2] mirror: double performance of the bulk stage if the disc is full

2016-07-20 Thread Paolo Bonzini
- Original Message - > From: "Denis V. Lunev" > To: "Vladimir Sementsov-Ogievskiy" , > qemu-bl...@nongnu.org, qemu-devel@nongnu.org > Cc: stefa...@redhat.com, f...@redhat.com, mre...@redhat.com, > jc...@redhat.com, ebl...@redhat.com, >

Re: [Qemu-devel] [PATCH v2] mirror: double performance of the bulk stage if the disc is full

2016-07-20 Thread Denis V. Lunev
On 07/14/2016 08:19 PM, Vladimir Sementsov-Ogievskiy wrote: Mirror can do up to 16 in-flight requests, but actually on full copy (the whole source disk is non-zero) in-flight is always 1. This happens as the request is not limited in size: the data occupies maximum available capacity of s->buf.

Re: [Qemu-devel] [PULL v2 00/10] Docker patches

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 12:22, Fam Zheng wrote: > The following changes since commit 5d3217340adcb6c4f0e4af5d2b865331eb2ff63d: > > disas: Fix ATTRIBUTE_UNUSED define clash with ALSA headers (2016-07-19 > 16:40:39 +0100) > > are available in the git repository at: > >

[Qemu-devel] [PULL v3 53/55] virtio-gpu: Use migrate_add_blocker for virgl migration blocking

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" virgl conditionally registers a vmstate as unmigratable when virgl is enabled; instead use the migrate_add_blocker mechanism. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Michael S. Tsirkin

Re: [Qemu-devel] [PATCH] Symlink README.md as README to unbreak checkpatch.pl

2016-07-20 Thread Stefan Weil
On 07/20/16 20:07, John Snow wrote: > On 07/20/2016 08:31 AM, Eric Blake wrote: >> On 07/20/2016 04:48 AM, Stefan Weil wrote: >>> Am 20.07.2016 um 12:36 schrieb Peter Maydell: On 20 July 2016 at 08:27, Fam Zheng wrote: > Commit e5dfc5e8e71 renamed README to README.md but

Re: [Qemu-devel] [PULL 00/14] Block patches

2016-07-20 Thread Peter Maydell
On 20 July 2016 at 01:20, Jeff Cody wrote: > The following changes since commit 5d3217340adcb6c4f0e4af5d2b865331eb2ff63d: > > disas: Fix ATTRIBUTE_UNUSED define clash with ALSA headers (2016-07-19 > 16:40:39 +0100) > > are available in the git repository at: > >

[Qemu-devel] [PULL v3 51/55] 9pfs: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Greg Kurz Reviewed-by:

Re: [Qemu-devel] [PATCH] Symlink README.md as README to unbreak checkpatch.pl

2016-07-20 Thread John Snow
On 07/20/2016 08:31 AM, Eric Blake wrote: > On 07/20/2016 04:48 AM, Stefan Weil wrote: >> Am 20.07.2016 um 12:36 schrieb Peter Maydell: >>> On 20 July 2016 at 08:27, Fam Zheng wrote: Commit e5dfc5e8e71 renamed README to README.md but scripts/checkpatch.pl still looks

[Qemu-devel] [PULL v3 54/55] virtio-gpu: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 50/55] virtio-serial: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 55/55] virtio: Update migration docs

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Remove references to register_savevm. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 48/55] virtio-balloon: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 47/55] virtio-rng: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 49/55] virtio-net: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 52/55] virtio-input: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 46/55] virtio-blk: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 43/55] virtio-serial: Remove old migration version support

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" virtio-serial-bus has had version 3 since 37f95bf3d0 in 0.13-rc0; it's time to clean it up a bit. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 45/55] virtio-scsi: Wrap in vmstate

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Forcibly convert it to a vmstate wrapper; proper conversion comes later. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 44/55] virtio: Migration helper function and macro

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" To make conversion of virtio devices to VMState simple at first add a helper function for the simple virtio_save case and a helper macro that defines the VMState structure. These will probably go away or change as more of the virtio code gets

[Qemu-devel] [PULL v3 32/55] kvm-irqchip: do explicit commit when update irq

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu In the past, we are doing gsi route commit for each irqchip route update. This is not efficient if we are updating lots of routes in the same time. This patch removes the committing phase in kvm_irqchip_update_msi_route(). Instead, we do explicit commit after

[Qemu-devel] [PULL v3 37/55] virtio: Introduce virtio_add_queue_aio

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng Using this function instead of virtio_add_queue marks the vq as aio based. This differentiation will be useful in later patches. Distinguish between virtqueue processing in the iohandler context and main loop AioContext. iohandler context is isolated from

[Qemu-devel] [PULL v3 40/55] Revert "mirror: Workaround for unexpected iohandler events during completion"

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng This reverts commit ab27c3b5e7408693dde0b565f050aa55c4a1bcef. The virtio storage device host notifiers now work with bdrv_drained_begin/end, so we don't need this hack any more. Signed-off-by: Fam Zheng Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 42/55] virtio-net: Remove old migration version support

2016-07-20 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" virtio-net has had version 11 since 0ce0e8f4 in 2009 (v0.11.0-rc0-1480-g0ce0e8f) - remove the code to support loading anything earlier. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah

[Qemu-devel] [PULL v3 35/55] intel_iommu: disallow kernel-irqchip=on with IR

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu When user specify "intremap=on" with "-M kernel-irqchip=on", throw error and then quit. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/intel_iommu.c

[Qemu-devel] [PULL v3 29/55] kvm-irqchip: simplify kvm_irqchip_add_msi_route

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Changing the original MSIMessage parameter in kvm_irqchip_add_msi_route into the vector number. Vector index provides more information than the MSIMessage, we can retrieve the MSIMessage using the vector easily. This will avoid fetching MSIMessage every time

[Qemu-devel] [PULL v3 36/55] virtio: Add typedef for handle_output

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng The function pointer signature has been repeated a few times, using a typedef may make coding easier. Signed-off-by: Fam Zheng Reviewed-by: Stefan Hajnoczi Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL v3 41/55] virtio-scsi: Replace HandleOutput typedef

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng There is a new common one in virtio.h, use it. Signed-off-by: Fam Zheng Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck Reviewed-by:

[Qemu-devel] [PULL v3 34/55] kvm-all: add trace events for kvm irqchip ops

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu These will help us monitoring irqchip route activities more easily. Signed-off-by: Peter Xu Reviewed-by: Paolo Bonzini Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 28/55] intel_iommu: add SID validation for IR

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu This patch enables SID validation. Invalid interrupts will be dropped. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/intel_iommu.h | 17

[Qemu-devel] [PULL v3 33/55] intel_iommu: support all masks in interrupt entry cache invalidation

2016-07-20 Thread Michael S. Tsirkin
From: Radim Krčmář Linux guests do not gracefully handle cases when the invalidation mask they wanted is not supported, probably because real hardware always allowed all. We can just say that all 16 masks are supported, because both ioapic_iec_notifier and

[Qemu-devel] [PULL v3 38/55] virtio-blk: Call virtio_add_queue_aio

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng AIO based handler is more appropriate here because it will then cooperate with bdrv_drained_begin/end. It is needed by the coming revert patch. Signed-off-by: Fam Zheng Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[Qemu-devel] [PULL v3 26/55] ioapic: register IOMMU IEC notifier for ioapic

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Let IOAPIC the first consumer of x86 IOMMU IEC invalidation notifiers. This is only used for split irqchip case, when vIOMMU receives IR invalidation requests, IOAPIC will be notified to update kernel irq routes. For simplicity, we just update all IOAPIC routes,

[Qemu-devel] [PULL v3 19/55] intel_iommu: define several structs for IOMMU IR

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Several data structs are defined to better support the rest of the patches: IRTE to parse remapping table entries, and IOAPIC/MSI related structure bits to parse interrupt entries to be filled in by guest kernel. Signed-off-by: Peter Xu

[Qemu-devel] [PULL v3 31/55] kvm-irqchip: x86: add msi route notify fn

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu One more IEC notifier is added to let msi routes know about the IEC changes. When interrupt invalidation happens, all registered msi routes will be updated for all PCI devices. Since both vfio and vhost are possible gsi route consumers, this patch will go one

[Qemu-devel] [PULL v3 39/55] virtio-scsi: Call virtio_add_queue_aio

2016-07-20 Thread Michael S. Tsirkin
From: Fam Zheng AIO based handler is more appropriate here because it will then cooperate with bdrv_drained_begin/end. It is needed by the coming revert patch. Signed-off-by: Fam Zheng Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[Qemu-devel] [PULL v3 18/55] intel_iommu: handle interrupt remap enable

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Handle writting to IRE bit in global command register. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/intel_iommu.c | 20 1 file

[Qemu-devel] [PULL v3 23/55] ioapic: introduce ioapic_entry_parse() helper

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Abstract IOAPIC entry parsing logic into a helper function. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/intc/ioapic.c | 110

[Qemu-devel] [PULL v3 30/55] kvm-irqchip: i386: add hook for add/remove virq

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Adding two hooks to be notified when adding/removing msi routes. There are two kinds of MSI routes: - in kvm_irqchip_add_irq_route(): before assigning IRQFD. Used by vhost, vfio, etc. - in kvm_irqchip_send_msi(): when sending direct MSI message, if direct

[Qemu-devel] [PULL v3 24/55] intel_iommu: add support for split irqchip

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu In split irqchip mode, IOAPIC is working in user space, only update kernel irq routes when entry changed. When IR is enabled, we directly update the kernel with translated messages. It works just like a kernel cache for the remapping entries. Since KVM irqfd is

[Qemu-devel] [PULL v3 17/55] intel_iommu: define interrupt remap table addr register

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Defined Interrupt Remap Table Address register to store IR table pointer. Also, do proper handling on global command register writes to store table pointer and its size. One more debug flag "DEBUG_IR" is added for interrupt remapping. Signed-off-by: Peter Xu

[Qemu-devel] [PULL v3 22/55] q35: ioapic: add support for emulated IOAPIC IR

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu This patch translates all IOAPIC interrupts into MSI ones. One pseudo ioapic address space is added to transfer the MSI message. By default, it will be system memory address space. When IR is enabled, it will be IOMMU address space. Currently, only emulated

[Qemu-devel] [PULL v3 27/55] intel_iommu: Add support for Extended Interrupt Mode

2016-07-20 Thread Michael S. Tsirkin
From: Jan Kiszka As neither QEMU nor KVM support more than 255 CPUs so far, this is simple: we only need to switch the destination ID translation in vtd_remap_irq_get if EIME is set. Once CFI support is there, it will have to take EIM into account as well. So far,

[Qemu-devel] [PULL v3 12/55] x86-iommu: introduce "intremap" property

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Adding one property for intel-iommu devices to specify whether we should support interrupt remapping. By default, IR is disabled. To enable it, we should use (take Intel IOMMU as example): -device intel_iommu,intremap=on This property can be shared by Intel

[Qemu-devel] [PULL v3 16/55] acpi: add DMAR scope definition for root IOAPIC

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu To enable interrupt remapping for intel IOMMU device, each IOAPIC device in the system reported via ACPI MADT must be explicitly enumerated under one specific remapping hardware unit. This patch adds the root-complex IOAPIC into the default DMAR device. Please

[Qemu-devel] [PULL v3 20/55] intel_iommu: add IR translation faults defines

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Adding translation fault definitions for interrupt remapping. Please refer to VT-d spec section 7.1. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[Qemu-devel] [PULL v3 25/55] x86-iommu: introduce IEC notifiers

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu This patch introduces x86 IOMMU IEC (Interrupt Entry Cache) invalidation notifier list. When vIOMMU receives IEC invalidate request, all the registered units will be notified with specific invalidation requests. Intel IOMMU is the first provider that generates

[Qemu-devel] [PULL v3 06/55] hw/grackle: fix PCI bus initialization

2016-07-20 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Delay the host-bridge 'realization' until the PCI root bus is attached. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Tested-by: Mark Cave-Ayland

[Qemu-devel] [PULL v3 15/55] intel_iommu: set IR bit for ECAP register

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Enable IR in IOMMU Extended Capability register. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/intel_iommu_internal.h | 2 ++ hw/i386/intel_iommu.c

[Qemu-devel] [PULL v3 14/55] intel_iommu: allow queued invalidation for IR

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Queued invalidation is required for IR. This patch add basic support for interrupt cache invalidate requests. Since we currently have no IR cache implemented yet, we can just skip all interrupt cache invalidation requests for now. Signed-off-by: Peter Xu

[Qemu-devel] [PULL v3 21/55] intel_iommu: Add support for PCI MSI remap

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu This patch enables interrupt remapping for PCI devices. To play the trick, one memory region "iommu_ir" is added as child region of the original iommu memory region, covering range 0xfeeX (which is the address range for APIC). All the writes to this range

[Qemu-devel] [PULL v3 04/55] hw/mips: fix PCI bus initialization

2016-07-20 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Delay the host-bridge 'realization' until the PCI root bus is attached. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Tested-by: Mark Cave-Ayland

[Qemu-devel] [PULL v3 05/55] hw/apb: fix PCI bus initialization

2016-07-20 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Create and connect the PCI root bus to the host bridge before the later is 'realized'. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Tested-by:

[Qemu-devel] [PULL v3 11/55] x86-iommu: provide x86_iommu_get_default

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Instead of searching the device tree every time, one static variable is declared for the default system x86 IOMMU device. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL v3 10/55] intel_iommu: rename VTD_PCI_DEVFN_MAX to x86-iommu

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/intel_iommu.h | 1 - include/hw/i386/x86-iommu.h | 2 ++ hw/i386/intel_iommu.c | 11

[Qemu-devel] [PULL v3 13/55] acpi: enable INTR for DMAR report structure

2016-07-20 Thread Michael S. Tsirkin
From: Peter Xu In ACPI DMA remapping report structure, enable INTR flag when specified. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/intel_iommu.h | 2 ++

[Qemu-devel] [PULL v3 03/55] hw/alpha: fix PCI bus initialization

2016-07-20 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Delay the host-bridge 'realization' until the PCI root bus is attached. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Tested-by: Mark Cave-Ayland

[Qemu-devel] [PULL v3 08/55] hw/versatile: realize the PCI root bus as part of the versatile init

2016-07-20 Thread Michael S. Tsirkin
From: Marcel Apfelbaum 'Realize' the PCI root bus manually since the 'realize' mechanism does not propagate to child devices yet. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

  1   2   3   >