[Qemu-devel] [V2 PATCH 5/9] target-ppc: Add is_user_mode Utility Routine

2014-01-31 Thread Tom Musta
This patch adds a boolean function is_user_mode that can be re-used in translation code that is sensitive to the MSR[PR] (user-mode) state. Signed-off-by: Tom Musta --- target-ppc/translate.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-ppc/transl

[Qemu-devel] [V2 PATCH 3/9] target-ppc: Add bctar Instruction

2014-01-31 Thread Tom Musta
This patch adds the Branch Conditional to Address Register (bctar) instruction. Signed-off-by: Tom Musta --- target-ppc/translate.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index d9abcca..b89b4ba 100644 --

[Qemu-devel] [V2 PATCH 2/9] target-ppc: Add Target Address SPR (TAR) to Power8

2014-01-31 Thread Tom Musta
This patch adds support for the Target Address Register (TAR) to the Power8 model. Because supported SPRs are typically identified in an init_proc_*() function and because the Power8 model is currently just using the init_proc_POWER7() function, a new init_proc_POWER8() function is added and plugg

[Qemu-devel] [V2 PATCH 8/9] target-ppc: Add Load Quadword and Reserve

2014-01-31 Thread Tom Musta
This patch adds the Load Quadword and Reserve (lqarx) instruction, which is new in Power ISA 2.07. Signed-off-by: Tom Musta --- V2: Additional changes for handling reserve_val2. target-ppc/cpu.h |1 + target-ppc/translate.c | 35 +++ 2 files changed,

[Qemu-devel] [V2 PATCH 7/9] target-ppc: Store Quadword

2014-01-31 Thread Tom Musta
This patch adds support for the Store Quadword instruction in user mode. Prior to Power ISA 2.07, stq was legal only in privileged mode. Support for Little Endian mode is also new in ISA 2.07. Signed-off-by: Tom Musta --- V2: Refactored user-mode and Little Endian checks per Alex Graf's review.

[Qemu-devel] [V2 PATCH 6/9] target-ppc: Load Quadword

2014-01-31 Thread Tom Musta
This patch adds the Book I (user space) Load Quadword (lq) instruction. This instruction was introduced into Book I in Power ISA V2.07. Previous versions of the architecture supported this as a privileged instruction. Previous versions of the architecture also did not support Little Endian mode.

[Qemu-devel] [V2 PATCH 9/9] target-ppc: Add Store Quadword Conditional

2014-01-31 Thread Tom Musta
This patch adds the Store Quadword Conditionl (stqcx.) instruction which is introduced in Power ISA 2.07. Signed-off-by: Tom Musta --- V2: Updated linux-user/main.c to use the newly added reserve_val2. linux-user/main.c | 18 +- target-ppc/translate.c | 21 +

Re: [Qemu-devel] [RFC PATCH v2] Add option to switch off FDC

2014-01-31 Thread Eric Blake
On 01/31/2014 12:03 PM, Gabriel L. Somlo wrote: > Allow guests to omit the configuration of a floppy disk controller. > > Signed-off-by: Gabriel Somlo > --- > > New in this version: > > - "int have_fdc = 1;" instead of "int no_fdc = 0;" > > - use 8bit field for FDC0's _STA method > > >

Re: [Qemu-devel] [PATCH 01/10] block: Change BDS parameter of bdrv_open() to **

2014-01-31 Thread Max Reitz
On 29.01.2014 12:50, Kevin Wolf wrote: Am 26.01.2014 um 20:02 hat Max Reitz geschrieben: Make bdrv_open() take a pointer to a BDS pointer, similarly to bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open() will create a new BDS with an empty name; if the BDS pointer is not NULL,

Re: [Qemu-devel] [PATCH 06/10] block: Remove bdrv_new() from bdrv_file_open()

2014-01-31 Thread Max Reitz
On 29.01.2014 14:35, Kevin Wolf wrote: Am 26.01.2014 um 20:02 hat Max Reitz geschrieben: Change bdrv_file_open() to take a simple pointer to an already existing BDS instead of an indirect one. The BDS will be created in bdrv_open() if necessary. Signed-off-by: Max Reitz --- block.c | 29

Re: [Qemu-devel] [PATCH 03/10] block: Make bdrv_file_open() static

2014-01-31 Thread Max Reitz
On 29.01.2014 14:26, Kevin Wolf wrote: Am 26.01.2014 um 20:02 hat Max Reitz geschrieben: Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the call to bdrv_file_open(). Additionally, make bdrv_file_open() static and therefore bdrv_open() the only way to call it. Consequently,

Re: [Qemu-devel] [PATCH 08/10] block: Reuse bs->options setting from bdrv_open()

2014-01-31 Thread Max Reitz
On 29.01.2014 14:45, Kevin Wolf wrote: Am 26.01.2014 um 20:02 hat Max Reitz geschrieben: Setting bs->options in bdrv_file_open() is not necessary if it is already done in bdrv_open(). Signed-off-by: Max Reitz Perhaps squash this into patch 7? Because now the reference is created by bdrv_open(

Re: [Qemu-devel] [PATCH V6 8/8] block: Use graph node name as reference in bdrv_file_open().

2014-01-31 Thread Max Reitz
On 28.01.2014 01:04, Benoît Canet wrote: Le Monday 27 Jan 2014 à 20:11:59 (+0100), Max Reitz a écrit : On 27.01.2014 15:36, Benoît Canet wrote: Le Friday 24 Jan 2014 à 15:54:39 (+0100), Max Reitz a écrit : On 24.01.2014 15:48, Kevin Wolf wrote: Am 24.01.2014 um 14:37 hat Max Reitz geschrieben

Re: [Qemu-devel] [PATCH V10 00/13] Quorum block driver

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: Here is the new version of the QUORUM block driver. It now use bdrv_image_open for using QMP references and support snapshotting via the bs node-name infrastructure. I think the series is feature complete. It applies on top of Max bdrv_openv2 branch. W

Re: [Qemu-devel] [PATCHv8 0/5] block: add native support for NFS

2014-01-31 Thread Stefan Hajnoczi
On Fri, Jan 31, 2014 at 6:32 PM, Peter Lieven wrote: > > Am 31.01.2014 um 17:07 schrieb Stefan Hajnoczi : > >> On Fri, Jan 31, 2014 at 12:38:48PM +0100, Peter Lieven wrote: >>> This adds v6 of the NFS protocol driver + qemu-iotest adjustments. >>> >>> v7->v8: >>> - bump libnfs requirement to 1.9.2

Re: [Qemu-devel] [PATCHv8 0/5] block: add native support for NFS

2014-01-31 Thread Max Reitz
On 31.01.2014 21:41, Stefan Hajnoczi wrote: On Fri, Jan 31, 2014 at 6:32 PM, Peter Lieven wrote: Am 31.01.2014 um 17:07 schrieb Stefan Hajnoczi : On Fri, Jan 31, 2014 at 12:38:48PM +0100, Peter Lieven wrote: This adds v6 of the NFS protocol driver + qemu-iotest adjustments. v7->v8: - bump l

Re: [Qemu-devel] [PATCH V10 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Signed-off-by: Benoit Canet --- block/Makefile.objs | 1 + block/quorum.c | 54 + 2 files changed, 55 insertions(+) create mode 100644 block/quorum.c Reviewed-by: Max R

Re: [Qemu-devel] [PATCH V10 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Signed-off-by: Benoit Canet --- block/quorum.c | 25 + 1 file changed, 25 insertions(+) Reviewed-by: Max Reitz

Re: [Qemu-devel] [PATCH V10 03/13] quorum: Add quorum_aio_writev and its dependencies.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Signed-off-by: Benoit Canet --- block/quorum.c | 123 + 1 file changed, 123 insertions(+) Reviewed-by: Max Reitz

[Qemu-devel] [PULL 0/8] Block patches

2014-01-31 Thread Stefan Hajnoczi
The following changes since commit 89e4a51ca9546a7bbe1998c4e3d4a3ac3a0c19be: Merge remote-tracking branch 'stefanha/tags/tracing-pull-request' into staging (2014-01-31 11:13:08 +) are available in the git repository at: git://github.com/stefanha/qemu.git tags/block-pull-request for yo

[Qemu-devel] [PULL 1/8] Describe flaws in qcow/qcow2 encryption in the docs

2014-01-31 Thread Stefan Hajnoczi
From: "Daniel P. Berrange" The qemu-img.texi / qemu-doc.texi files currently describe the qcow2/qcow2 encryption thus "Encryption uses the AES format which is very secure (128 bit keys). Use a long password (16 characters) to get maximum protection." While AES is indeed a strong encrypt

[Qemu-devel] [PULL 3/8] block: remove qcow2 .bdrv_make_empty implementation

2014-01-31 Thread Stefan Hajnoczi
From: Jeff Cody The QCOW2 .bdrv_make_empty implementation always returns 0 for success, but does not actually do anything. The proper way to not support an optional driver function stub is to just not implement it, so let's remove the stub. Signed-off-by: Jeff Cody Reviewed-by: Benoit Canet S

[Qemu-devel] [PULL 8/8] qemu-iotests: only run 071 on qcow2

2014-01-31 Thread Stefan Hajnoczi
The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains "format=raw" but IMGFMT=raw would filter the output to "format=IMGFMT". Perhaps the test case can be rewritten to be more generic,

[Qemu-devel] [PULL 4/8] block/vmdk: add basic .bdrv_check support

2014-01-31 Thread Stefan Hajnoczi
From: Peter Lieven this adds a basic vmdk corruption check. it should detect severe table corruptions and file truncation. Signed-off-by: Peter Lieven Reviewed-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- block/vmdk.c | 48 1 file changed,

[Qemu-devel] [PULL 6/8] block/vhdx: Error checking fixes

2014-01-31 Thread Stefan Hajnoczi
From: Markus Armbruster Errors are inadvertently ignored in a few places. Has always been broken. Spotted by Coverity. Signed-off-by: Markus Armbruster Reviewed-by: Jeff Cody Signed-off-by: Stefan Hajnoczi --- block/vhdx-log.c | 4 ++-- block/vhdx.c | 8 2 files changed, 6 ins

[Qemu-devel] [PULL 5/8] qemu-iotests: Drop assert_no_active_commit in case 040

2014-01-31 Thread Stefan Hajnoczi
From: Fam Zheng It is exactly assert_no_active_block_jobs in iotests.py Signed-off-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/040 | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/tests/qemu-iotests/040 b/tests/qemu-iot

[Qemu-devel] [PULL 7/8] dataplane: Comment fix

2014-01-31 Thread Stefan Hajnoczi
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/block/dataplane/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 456d437..2237edb 100644 --- a/

[Qemu-devel] [PULL 2/8] block: remove QED .bdrv_make_empty implementation

2014-01-31 Thread Stefan Hajnoczi
From: Jeff Cody The QED .bdrv_make_empty() implementation does nothing but return -ENOTSUP, which causes problems in bdrv_commit(). Since the function stub exists for QED, it is called, which then always returns an error. The proper way to not support an optional driver function stub is to just

Re: [Qemu-devel] [PATCH V10 04/13] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Signed-off-by: Benoit Canet --- block/blkverify.c | 108 +- include/qemu-common.h | 2 + util/iov.c| 103 +++ 3 files c

Re: [Qemu-devel] [PATCH V6 8/8] block: Use graph node name as reference in bdrv_file_open().

2014-01-31 Thread Benoît Canet
Le Friday 31 Jan 2014 à 21:32:34 (+0100), Max Reitz a écrit : > On 28.01.2014 01:04, Benoît Canet wrote: > >Le Monday 27 Jan 2014 à 20:11:59 (+0100), Max Reitz a écrit : > >>On 27.01.2014 15:36, Benoît Canet wrote: > >>>Le Friday 24 Jan 2014 à 15:54:39 (+0100), Max Reitz a écrit : > On 24.01.20

Re: [Qemu-devel] [PATCH V10 05/13] quorum: Add quorum_aio_readv.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Signed-off-by: Benoit Canet --- block/quorum.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/block/quorum.c b/block/quorum.c index 85992ab..5bf37b3 100644 --- a/block/q

[Qemu-devel] [PATCH] i386: Add missing include file for QEMU_PACKED

2014-01-31 Thread Stefan Weil
Instead of packing BiosLinkerLoaderEntry, an unused global variable called QEMU_PACKED was created (detected by smatch static code analysis). Including qemu-common.h gets the right definition and also includes some standard include files which now can be removed here. Cc: qemu-sta...@nongnu.org S

Re: [Qemu-devel] [PATCH V10 06/13] quorum: Add quorum mechanism.

2014-01-31 Thread Max Reitz
On 28.01.2014 17:52, Benoît Canet wrote: From: Benoît Canet Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet --- block/Makefile.objs | 2 +- block/quorum.c| 333 +- configure | 36 +

[Qemu-devel] [PATCH v6 1/2] target-ppc: add PowerPCCPU::cpu_dt_id

2014-01-31 Thread Alexey Kardashevskiy
Normally CPUState::cpu_index is used to pick the right CPU for various operations. However default consecutive numbering does not always work for POWERPC. These indexes are reflected in /proc/device-tree/cpus/PowerPC,POWER7@XX and used to call KVM VCPU's ioctls. In order to achieve this, kvmppc_fi

[Qemu-devel] [PATCH v6 0/2] target-ppc: CPU device tree id

2014-01-31 Thread Alexey Kardashevskiy
This is some cleanup. Please, comment. Thanks! Changes: v6: * removed kvmppc_fixup_cpu() v5: * cleanup * removed cpustate::kvm_cpu_id * split into 2 patches - new PPC API and the usage of the API Alexey Kardashevskiy (2): target-ppc: add PowerPCCPU::cpu_dt_id target-ppc: spapr: e500: fi

[Qemu-devel] [PATCH v6 2/2] target-ppc: spapr: e500: fix to use cpu_dt_id

2014-01-31 Thread Alexey Kardashevskiy
This makes use of @cpu_dt_id and related API in: 1. emulated XICS hypercall handlers as they receive fixed CPU indexes; 2. XICS-KVM to enable in-kernel XICS on right CPU; 3. device-tree renderer. This removes @cpu_index fixup as @cpu_dt_id is used instead so QEMU monitor can accept command-line CP

Re: [Qemu-devel] osx bootloader

2014-01-31 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Gabriel L. Somlo wrote: I managed to boot OVMF following their wiki; It seems to work with kvm enabled, but not with -M q35. My current command line is: I've tried with the version compiled from the edk2 HEAD and that also fails with -M q35. I've managed to get some debug

[Qemu-devel] [Bug 1130095] Re: Windows Signed Drivers

2014-01-31 Thread David Lee Lambert
** Description changed: - Hello! + ReactOS has a general offer (subject to certain conditions, which may or + may not be reasonable for the qemu virtual-IO drivers) to sign Open + Source components with their certificate. + http://www.reactos.org/wiki/Driver_Signing - If it helps you :) - Free

Re: [Qemu-devel] [PATCH 20/42] input: mouse: add graphic_rotate support

2014-01-31 Thread Paolo Bonzini
Il 28/01/2014 10:57, Gerd Hoffmann ha scritto: Transform absolute mouse events according to graphic_rotate. Legacy input code does it for both absolute and relative events, but the logic is broken for relative coordinates, so this is most likely not used anyway. Signed-off-by: Gerd Hoffmann --

Re: [Qemu-devel] [PATCH v13 00/14] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2014-01-31 Thread Ian Main
On Wed, Jan 29, 2014 at 01:07:27PM +0800, Fam Zheng wrote: > This series adds for point-in-time snapshot NBD exporting based on > blockdev-backup (variant of drive-backup with existing device as target). > > We get a thin point-in-time snapshot by COW mechanism of drive-backup, and > export it thr

<    1   2   3