[Qemu-devel] [PATCH 2/2] ioapic use QOM style

2013-09-27 Thread xiaoqiang zhao
Change intc/ioapic kvm/ioapic to use QOM' realizefn. To achive this, I move variable 'ioapic_no' from static to global. Then, ioapic_realize and kvm_ioapic_realize can drop the 'instance_no' argument. Instead of parent, child increase ioapic_no now. Signed-off-by: xiaoqiang zhao

[Qemu-devel] [PATCH 1/2] kvm/apic: use QOM style

2013-09-27 Thread xiaoqiang zhao
From: xiaoqiang.zhao zxq_yx_...@163.com Change apic and kvm/apic to use QOM interface. Includes: 1. APICCommonState now use QOM realizefn 2. Remove DO_UPCAST() for APICCommonState 3. Use type constant 4. Change DeviceState pointers from 'd' to 'dev', sounds better? Signed-off-by: xiaoqiang zhao

[Qemu-devel] Hvmloader: Add _STA for PCI hotplug slots

2013-09-27 Thread Gonglei (Arei)
Hi, In Xen platform, after using upstream qemu, the all of pci devices will show hotplug in the windows guest. In this situation, the windows guest may occur blue screen when VM' user click the icon of VGA card for trying unplug VGA card. However, we don't hope VM's user can do such dangerous

[Qemu-devel] Compiling Instructions for QEMU x86_64 for windows 64 bit

2013-09-27 Thread Vikas Desai
Hi, Where can I find detailed compiling instructions for qemu on native windows x86_64 using mingw64. Cheers,Vikas

Re: [Qemu-devel] [PATCH] exec: cleanup DEBUG_SUBPAGE

2013-09-27 Thread Paolo Bonzini
Michael, want to pick this up for -trivial? Reviewed-by: Paolo Bonzini pbonz...@redhat.com Il 27/09/2013 03:25, Amos Kong ha scritto: Touched some error after enabling DEBUG_SUBPAGE. Signed-off-by: Amos Kong ak...@redhat.com --- exec.c | 18 +- 1 file changed, 9

Re: [Qemu-devel] Patch Round-up for stable 1.6.1, freeze on 2013-09-30

2013-09-27 Thread Michael Tokarev
26.09.2013 23:38, Stefan Weil пишет: Am 25.09.2013 14:57, schrieb Michael Roth: Hi everyone, The following new patches are queued for QEMU stable v1.6.1: https://github.com/mdroth/qemu/commits/stable-1.6-staging The release is planned for 2013-10-02: http://wiki.qemu.org/Planning/1.6

Re: [Qemu-devel] [PATCH v3] kvm: add set_one_reg/get_one_reg helpers

2013-09-27 Thread Alexey Kardashevskiy
On 09/19/2013 12:45 PM, Alexey Kardashevskiy wrote: This adds QEMU wrappers for KVM_SET_ONE_REG/KVM_GET_ONE_REG ioctls. Ping? Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: v3: * changed comments v2: * added Doc Comments * removed error_print ---

[Qemu-devel] [PATCH v7] powerpc: add PVR mask support

2013-09-27 Thread Alexey Kardashevskiy
IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and a CPU version in lower 16 bits. Since there is no significant change in behavior between versions, there is no point to add every single CPU version in QEMU's CPU list. Also, new CPU versions of already supported CPU won't

[Qemu-devel] [PATCH] spapr: add compat machine option

2013-09-27 Thread Alexey Kardashevskiy
To be able to boot on newer hardware that the software support, PowerISA defines a logical PVR, one per every PowerISA specification version from 2.04. This adds the compat option which takes values 205 or 206 and forces QEMU to boot the guest with a logical PVR (CPU_POWERPC_LOGICAL_2_05 or

Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 1.6.1, freeze on 2013-09-30

2013-09-27 Thread Michael Tokarev
25.09.2013 16:57, Michael Roth wrote: Hi everyone, The following new patches are queued for QEMU stable v1.6.1: https://github.com/mdroth/qemu/commits/stable-1.6-staging It looks like at least some stuff from the series http://thread.gmane.org/gmane.comp.emulators.qemu/234440 is also

[Qemu-devel] [PATCH v3] spapr-rtas: fix h_rtas parameters reading

2013-09-27 Thread Alexey Kardashevskiy
On the real hardware, RTAS is called in real mode and therefore top 4 bits of the address passed in the call are ignored. So does the patch. This converts h_rtas() to use existing rtas_ld() handlers. This fixed rtas_ld()/rtas_st() to ignore top 4 bits. Signed-off-by: Alexey Kardashevskiy

Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 1.6.1, freeze on 2013-09-30

2013-09-27 Thread Michael Tokarev
27.09.2013 12:07, Michael Tokarev пишет: 25.09.2013 16:57, Michael Roth wrote: Hi everyone, The following new patches are queued for QEMU stable v1.6.1: https://github.com/mdroth/qemu/commits/stable-1.6-staging It looks like at least some stuff from the series

Re: [Qemu-devel] [RFC PATCH v2 6/6] hw: arm_gic_kvm: Add KVM VGIC save/restore logic

2013-09-27 Thread Alex Bennée
christoffer.d...@linaro.org writes: Save and restore the ARM KVM VGIC state from the kernel. We rely on snip static const VMStateDescription vmstate_gic = { .name = arm_gic, -.version_id = 6, -.minimum_version_id = 6, +.version_id = 7, +.minimum_version_id = 7,

[Qemu-devel] [PATCH] qcow2: Free only newly allocated clusters on error

2013-09-27 Thread Max Reitz
In expand_zero_clusters_in_l1, a new cluster is only allocated if it was not already preallocated. On error, such preallocated clusters should not be freed, but only the newly allocated ones. Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-cluster.c | 16 ++-- 1 file

[Qemu-devel] [PATCH v2] spapr: Add ibm, purr property on power7 and newer

2013-09-27 Thread Alexey Kardashevskiy
PAPR+ says that no ibm,purr tells the guest that H_PURR is not supported. However some guests still try calling H_PURR on POWER7 unless the property is present and equal to 0. This adds the property for CPUs supporting the PURR special register. Signed-off-by: Benjamin Herrenschmidt

Re: [Qemu-devel] [PATCH] icount: disable icount with multiprocessor guests

2013-09-27 Thread Paolo Bonzini
Il 25/09/2013 01:39, Peter Maydell ha scritto: On 25 September 2013 00:52, Paolo Bonzini pbonz...@redhat.com wrote: If -icount is enabled with multiprocessor guests, all CPUs increment the same counter, which then basically runs too fast by a factor of smp_cpus. This makes little sense and

Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-27 Thread Michael Ellerman
On Thu, 2013-09-26 at 13:06 +0200, Alexander Graf wrote: On 26.09.2013, at 08:37, Michael Ellerman wrote: Some powerpc systems have support for a hardware random number generator (hwrng). If such a hwrng is present the host kernel can provide access to it via the H_RANDOM hcall. The

Re: [Qemu-devel] Qxl problem with xen domU, is xen spice and/or qemu bugs?

2013-09-27 Thread Gerd Hoffmann
Hi, #2 When using f19 try without X11 first. You should have a working framebuffer console on qxldrmfb before trying to get X11 going. I tried on Fedora19 minimal installation and with qxl the text console is working and lsmod show also qxl. Good, so the kernel driver is

Re: [Qemu-devel] qemu-img create: set nocow flag to solve performance issue on btrfs

2013-09-27 Thread Chun Yan Liu
On 9/27/2013 at 12:56 AM, in message 5244673f.4000...@redhat.com, Paolo Bonzini pbonz...@redhat.com wrote: Il 26/09/2013 12:30, Chunyan Liu ha scritto: 2013/9/26 Paolo Bonzini pbonz...@redhat.com mailto:pbonz...@redhat.com Il 26/09/2013 09:58, Stefan Hajnoczi ha

Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 10:36, Michael Ellerman ha scritto: So have the host kernel read from the hwrng, export it to userspace via a char device, which is then read by qemu, which then copies it back into the host kernel, which can then give it to the guest. Or from the guest perspective, instead of

Re: [Qemu-devel] [PATCH v3] kvm: add set_one_reg/get_one_reg helpers

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 10:02, Alexey Kardashevskiy ha scritto: On 09/19/2013 12:45 PM, Alexey Kardashevskiy wrote: This adds QEMU wrappers for KVM_SET_ONE_REG/KVM_GET_ONE_REG ioctls. Ping? Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: v3: * changed comments v2: * added

Re: [Qemu-devel] qemu-img create: set nocow flag to solve performance issue on btrfs

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 10:58, Chun Yan Liu ha scritto: If so, you could run QEMU with cache=unsafe and have basically the same data safety guarantees as cache=writeback on every other file system. cache=unsafe means it never calls fsync() ? Yes. However, metadata writes are still done and ordered

Re: [Qemu-devel] [PATCH v3] kvm: add set_one_reg/get_one_reg helpers

2013-09-27 Thread Alexey Kardashevskiy
On 09/27/2013 06:59 PM, Paolo Bonzini wrote: Il 27/09/2013 10:02, Alexey Kardashevskiy ha scritto: On 09/19/2013 12:45 PM, Alexey Kardashevskiy wrote: This adds QEMU wrappers for KVM_SET_ONE_REG/KVM_GET_ONE_REG ioctls. Ping? Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru ---

Re: [Qemu-devel] [PATCH] coroutine: add ./configure --disable-coroutine-pool

2013-09-27 Thread Stefan Hajnoczi
On Fri, Sep 27, 2013 at 07:20:21AM +0200, Stefan Weil wrote: Am 11.09.2013 16:42, schrieb Stefan Hajnoczi: The 'gthread' coroutine backend was written before the freelist (aka pool) existed in qemu-coroutine.c. This means that every thread is expected to exit when its coroutine

Re: [Qemu-devel] [PATCH v3 2/3] block: qemu-iotests for vhdx, read sample dynamic image

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 14:12 hat Jeff Cody geschrieben: This adds the VHDX format to the qemu-iotests format, and adds a read test. The test reads from an existing sample image, that was created with Hyper-V under Windwos Server 2012. The image file is a 1GB dynamic image, with 32MB blocks.

Re: [Qemu-devel] [PATCH v3 0/3] qemu-iotests with sample images, vhdx test, cleanup

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 14:12 hat Jeff Cody geschrieben: Changes in v3: One line in patch 3, for test 043: $TEST_IMG.[123].base instead of $TEST_IMG.[123].base. Thanks Stefan. Added Stefan's Reviewed-by to the patches. Changes in v2: Patch 1: MANIFEST file dropped. Instead of

Re: [Qemu-devel] [PATCH 0/2] Correct bitmap size in zero cluster expansion

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 12:07 hat Max Reitz geschrieben: The current version of the zero cluster expansion uses the guest disk size for determining the size of the expanded_clusters bitmap, however, it is addressed using host offsets. This leads to an assertion failing if the host image size exceeds

Re: [Qemu-devel] [PATCH] qcow2: count_contiguous_clusters and compression

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 17:47 hat Max Reitz geschrieben: The function is not intended to be used on compressed clusters and will not work correctly, if used anyway, since L2E_OFFSET_MASK is not the right mask for determining the offset of compressed clusters. Therefore, assert that the first cluster

Re: [Qemu-devel] [PATCH v5 00/23] qemu: generate acpi tables for the guest

2013-09-27 Thread Gerd Hoffmann
Hi, ACPI gives a way to do this: supply PBlockLength = 0. I applied the following: though this means bytecode is not 1:1 identical to what we have with seabios, so I will keep it as a separate commit. Sure. Retested -- works fine now with both seabios + coreboot. Glad to see this

Re: [Qemu-devel] [PATCH v3] kvm: add set_one_reg/get_one_reg helpers

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 11:08, Alexey Kardashevskiy ha scritto: Include it with the acked-by together with the first patch that needs it. Alex can pick it up. Why to wait? Alex, please pick it up. The first patch which needs it is [PATCH] spapr: add compat machine option, posted earlier

Re: [Qemu-devel] [PATCH 0/3] qcow2: Small error path fixes for l2_allocate

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 16:37 hat Max Reitz geschrieben: Errors in l2_allocate should always go down the error path. If this path is taken, the newly allocated L2 cluster is abandoned and should thus be freed. The L2 table on the other hand should only be put back into the cache if it was taken from

Re: [Qemu-devel] [PATCH] qcow2: Free only newly allocated clusters on error

2013-09-27 Thread Kevin Wolf
Am 27.09.2013 um 10:21 hat Max Reitz geschrieben: In expand_zero_clusters_in_l1, a new cluster is only allocated if it was not already preallocated. On error, such preallocated clusters should not be freed, but only the newly allocated ones. Signed-off-by: Max Reitz mre...@redhat.com

Re: [Qemu-devel] [PATCH V2] block: Add BlockDriver.bdrv_check_ext_snapshot.

2013-09-27 Thread Kevin Wolf
Am 26.09.2013 um 18:48 hat Jeff Cody geschrieben: On Thu, Sep 26, 2013 at 04:33:49PM +0200, Benoît Canet wrote: This field is used by blkverify to disable external snapshots creation. I will also be used by block filters like quorum to disable external snapshots creation.

Re: [Qemu-devel] KVM call for agenda for 2013-10-01

2013-09-27 Thread Frederic Konrad
On 24/09/2013 16:09, Juan Quintela wrote: Hi Please, send any topic that you are interested in covering. Last week I forgot to send the call for topics. We still have a topic there. Thanks, Juan. Agenda so far: - Talk about qemu reverse executing (1st description was done this week) How

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

2013-09-27 Thread Kevin Wolf
Am 26.09.2013 um 18:16 hat Benoît Canet geschrieben: +static void quorum_aio_bh(void *opaque) +{ +QuorumAIOCB *acb = opaque; +BDRVQuorumState *s = acb-bqs; +int ret; + +ret = s-threshold = acb-success_count ? 0 : -EIO; It would be very much preferable if

Re: [Qemu-devel] [PATCH] eepro100: fix simplified mode

2013-09-27 Thread Paolo Bonzini
Il 24/07/2012 09:49, christian schilling ha scritto: On Mon, Jul 23, 2012 at 6:28 PM, Stefan Weil s...@weilnetz.de wrote: Am 23.07.2012 11:25, schrieb initcr...@gmail.com: A driver using simplified mode that works on real hardware did not work in qemu. Signed-off-by: Christian Schilling

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

2013-09-27 Thread Kevin Wolf
Am 26.09.2013 um 18:29 hat Benoît Canet geschrieben: Le Friday 08 Feb 2013 à 11:38:38 (+0100), Kevin Wolf a écrit : Am 28.01.2013 18:07, schrieb Benoît Canet: Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 111

Re: [Qemu-devel] [RFC V8 06/13] quorum: Add quorum mechanism.

2013-09-27 Thread Kevin Wolf
Am 26.09.2013 um 18:46 hat Benoît Canet geschrieben: Le Friday 08 Feb 2013 à 13:07:03 (+0100), Kevin Wolf a écrit : Am 28.01.2013 18:07, schrieb Benoît Canet: Use gnutls's SHA-256 to compare versions. Signed-off-by: Benoit Canet ben...@irqsave.net --- block/quorum.c | 303

[Qemu-devel] [PATCH v3 01/11] ARM: arm64 kvm headers from kernel arm64-kvm tree

2013-09-27 Thread Mian M. Hamayun
From: John Rigby john.ri...@linaro.org Also add the KVM_REG_ARM64 register type to linux/kvm header file. Signed-off-by: John Rigby john.ri...@linaro.org Signed-off-by: Mian M. Hamayun m.hama...@virtualopensystems.com --- linux-headers/asm-arm64/kvm.h | 168

[Qemu-devel] [PATCH v3 11/11] AARCH64: Add 32-bit mode selection parameter

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This commit introduces a commandline argument to select the AARCH64 or AARCH32 mode for processor initilization. Signed-off-by: Mian M. Hamayun m.hama...@virtualopensystems.com --- qemu-options.hx | 8 target-arm/cpu.c | 9

[Qemu-devel] [PATCH v3 07/11] AARCH64: Add boot support for aarch64 processor

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This commit adds support for booting a single AArch64 CPU by setting appropriate registers. The bootloader includes placehoders for Board-ID that are used to implement uniform indexing across different bootloaders. We also introduce

[Qemu-devel] [PATCH v3 06/11] target-arm: Parameterize the bootloader selection and setup mechanism

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This commit replaces the constant indices used in bootloaders, such as for specifying the Board ID and kernel arguments with variable parameters. This change is used as mechanism to minimize code changes for different bootloaders, for example

[Qemu-devel] [PATCH v3 08/11] AARCH64: Enable SMP support for aarch64 processors using PSCI method

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com We enable SMP support for aarch64 processors using the PSCI method, by setting the appropriate CPU feature flags at initilializtion time. Secondary boot code for non-aarch64 processors is disabled in case of compilation for aarch64.

[Qemu-devel] [PATCH v2 0/2] qcow2: count_contiguous_clusters and compression

2013-09-27 Thread Max Reitz
Compressed clusters can never be contiguous and count_contiguous_clusters will not even work correctly for them. Therefore, those cluster should always be treated as non-contiguous. This series makes count_contiguous_clusters always stop at compressed clusters and removes the corresponding flag

[Qemu-devel] [PATCH v3 09/11] AARCH64: Enable configure support for 32-bit guests on AARCH64

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com Signed-off-by: Mian M. Hamayun m.hama...@virtualopensystems.com --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 7298b69..dbaf56f 100755 --- a/configure +++ b/configure @@ -4485,6 +4485,7 @@ case

[Qemu-devel] [PATCH v2 2/2] qcow2: COMPRESSED on count_contiguous_clusters

2013-09-27 Thread Max Reitz
Compressed clusters can never be contiguous, therefore the corresponding flag does not need to be given explicitly to count_contiguous_clusters. Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-cluster.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH v2 1/2] qcow2: count_contiguous_clusters and compression

2013-09-27 Thread Max Reitz
The function is not intended to be used on compressed clusters and will not work correctly, if used anyway, since L2E_OFFSET_MASK is not the right mask for determining the offset of compressed clusters. Therefore, assert that the first cluster is not compressed and always include the compression

[Qemu-devel] [PATCH v3 10/11] AARCH64: Add flags and boot parameters for 32-bit guests on AARCH64

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This commit adds the necessary flags and kernel load address to enable booting of 32-bit guests on AArch64 processors. The actual enable/disable mechanism is not included in this commit, which should tweak the value of env-aarch64 variable

[Qemu-devel] 答复: Cross-Platform KVM

2013-09-27 Thread Wincy Van
I'm sorry for replying this mail for so long. I named the 'Cross-Platform KVM' fvm ('f'is the beginning of my name :)). The kernel module is based on kvm-kmod 3.4, and the qemu (version 1.1~1.6) can be patched easily for fvm. I named the kernel module vmmr0 (VMM in Ring0). Not

[Qemu-devel] [PATCH v3 00/11] AARCH64 support on machvirt machine model using KVM

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This is the v3 of patch series that implements KVM support in QEMU for the ARMv8 Cortex A57 CPU. It depends on the recently mainlined AArch64 preparation patch series and machvirt patches version v7, and uses the already available KVM

[Qemu-devel] [PATCH v3 02/11] AARCH64: add a57core

2013-09-27 Thread Mian M. Hamayun
From: John Rigby john.ri...@linaro.org Just an copy of a15 with a57 substituting a15 for now. Signed-off-by: John Rigby john.ri...@linaro.org Signed-off-by: Mian M. Hamayun m.hama...@virtualopensystems.com --- hw/cpu/Makefile.objs | 1 + hw/cpu/a57mpcore.c | 122

[Qemu-devel] [PATCH v3 04/11] AARCH64: Separate 32-bit specific code from common KVM hooks

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com This commit separates the 32-bit (ARMv7) specific KVM hooks from the common code. It also adds the stub functions for 64-bit (ARMv8). The makefile objects are also tweaked accordingly to compile code either of ARMv7 or ARMv8 depending on the

Re: [Qemu-devel] [PATCH 00/60] AArch64 TCG emulation support

2013-09-27 Thread Alexander Graf
On 27.09.2013, at 04:30, Peter Maydell wrote: On 27 September 2013 10:02, Alexander Graf ag...@suse.de wrote: On 27.09.2013, at 02:47, Alexander Graf wrote: This is the first batch of patches to implement AArch64 instruction emulation in QEMU. It implements enough to execute simple AArch64

Re: [Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-09-27 Thread Stefan Hajnoczi
On Thu, Sep 26, 2013 at 02:53:54PM +0200, Thomas Knauth wrote: As far as I understand the dirty logging infrastructure will only record writes. I want to track reads as well. A better way to express what I would like to do is trace all guest physical addresses that are accessed. Again, I am

[Qemu-devel] [PATCH v3 05/11] AARCH64: Add AARCH64 CPU initialization, get and put registers support

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com The cpu init function tries to initialize with all possible cpu types, as KVM does not provide a means to detect the real cpu type and simply refuses to initialize on cpu type mis-match. By using the loop based init function, we avoid the

[Qemu-devel] [PATCH v3 03/11] AARCH64: Add A57 CPU to default AArch64 configuration and enable KVM

2013-09-27 Thread Mian M. Hamayun
From: Mian M. Hamayun m.hama...@virtualopensystems.com Introduce the A57 cpu to the default AArch64 configuration and enable KVM for 64-bit guests only. Signed-off-by: Mian M. Hamayun m.hama...@virtualopensystems.com --- configure | 2 +-

Re: [Qemu-devel] [PATCH] qemu-xen: make use of xenstore relative paths

2013-09-27 Thread Anthony PERARD
On Thu, Sep 26, 2013 at 07:20:31PM +0200, Roger Pau Monné wrote: On 26/09/13 18:46, Anthony PERARD wrote: On Wed, Sep 18, 2013 at 09:50:58PM +0200, Roger Pau Monne wrote: Qemu has several hardcoded xenstore paths that are only valid on Dom0. Attempts to launch a Qemu instance (to act as a

Re: [Qemu-devel] [v2 30/71] hw/ide/Kconfig: Add Kconfig file

2013-09-27 Thread Stefan Hajnoczi
On Fri, Sep 27, 2013 at 04:30:51AM +0200, Ákos Kovács wrote: diff --git a/hw/net/Kconfig b/hw/net/Kconfig new file mode 100644 index 000..19ca549 --- /dev/null +++ b/hw/net/Kconfig This should be a separate patch. @@ -0,0 +1,74 @@ +menu Network devices +config DP8393X +

Re: [Qemu-devel] [v2 33/71] hw/isa/Kconfig: Add Kconfig file

2013-09-27 Thread Stefan Hajnoczi
On Fri, Sep 27, 2013 at 04:30:54AM +0200, Ákos Kovács wrote: Signed-off-by: Ákos Kovács akoskov...@gmx.com --- hw/isa/Kconfig | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 hw/isa/Kconfig diff --git a/hw/isa/Kconfig b/hw/isa/Kconfig new

Re: [Qemu-devel] [v2 22/71] hw/block/Kconfig: Add Kconfig file

2013-09-27 Thread Stefan Hajnoczi
On Fri, Sep 27, 2013 at 04:30:43AM +0200, Ákos Kovács wrote: Signed-off-by: Ákos Kovács akoskov...@gmx.com --- hw/block/Kconfig | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 hw/block/Kconfig diff --git a/hw/block/Kconfig b/hw/block/Kconfig new

Re: [Qemu-devel] [v2 22/71] hw/block/Kconfig: Add Kconfig file

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 13:14, Stefan Hajnoczi ha scritto: On Fri, Sep 27, 2013 at 04:30:43AM +0200, Ákos Kovács wrote: Signed-off-by: Ákos Kovács akoskov...@gmx.com --- hw/block/Kconfig | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 hw/block/Kconfig diff

Re: [Qemu-devel] [v2 30/71] hw/ide/Kconfig: Add Kconfig file

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 13:11, Stefan Hajnoczi ha scritto: On Fri, Sep 27, 2013 at 04:30:51AM +0200, Ákos Kovács wrote: diff --git a/hw/net/Kconfig b/hw/net/Kconfig new file mode 100644 index 000..19ca549 --- /dev/null +++ b/hw/net/Kconfig This should be a separate patch. @@ -0,0 +1,74 @@

Re: [Qemu-devel] [v2 33/71] hw/isa/Kconfig: Add Kconfig file

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 13:13, Stefan Hajnoczi ha scritto: On Fri, Sep 27, 2013 at 04:30:54AM +0200, Ákos Kovács wrote: Signed-off-by: Ákos Kovács akoskov...@gmx.com --- hw/isa/Kconfig | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 hw/isa/Kconfig

Re: [Qemu-devel] [PATCH v3 2/3] block: qemu-iotests for vhdx, read sample dynamic image

2013-09-27 Thread Jeff Cody
On Fri, Sep 27, 2013 at 11:14:55AM +0200, Kevin Wolf wrote: Am 25.09.2013 um 14:12 hat Jeff Cody geschrieben: This adds the VHDX format to the qemu-iotests format, and adds a read test. The test reads from an existing sample image, that was created with Hyper-V under Windwos Server 2012.

Re: [Qemu-devel] [PATCH v2 0/2] qcow2: count_contiguous_clusters and compression

2013-09-27 Thread Kevin Wolf
Am 27.09.2013 um 12:14 hat Max Reitz geschrieben: Compressed clusters can never be contiguous and count_contiguous_clusters will not even work correctly for them. Therefore, those cluster should always be treated as non-contiguous. This series makes count_contiguous_clusters always stop at

[Qemu-devel] [PATCH] qcow2: Remove useless count_contiguous_clusters() parameter

2013-09-27 Thread Kevin Wolf
All callers pass start = 0, and it's doubtful if any other value would actually do what you expect. Remove the parameter. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-cluster.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block/qcow2-cluster.c

[Qemu-devel] [PATCH 05/11] linux-user: allow use of TIOCGSID

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/ioctls.h

[Qemu-devel] [PATCH 01/11] alpha-linux-user: Fix umount syscall numbers

2013-09-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net It has been pointed out on LKML that the alpha umount syscall numbers are named wrong, and a patch to rectify that has been posted for 3.11. Glibc works around this by treating NR_umount as NR_umount2 if NR_oldumount exists. That's more complicated than

[Qemu-devel] [PATCH 04/11] linux-user: Add setsockopt(SO_ATTACH_FILTER)

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu This is needed to be able to run dhclient. Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 44

[Qemu-devel] [PATCH 02/11] mips-linux-user: Adjust names in mips_syscall_args

2013-09-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net The name field of MIPS_SYS isn't actually used; it's just documentation. But adjust the umount entries to match mips/syscall_nr.h anyway. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org ---

[Qemu-devel] [PATCH 03/11] linux-user: convert /proc/net/route when endianess differs

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu This patch allows to have IP addresses in correct order in the case of netstat -nr when the endianess of the guest differs from one of the host. For instance, an m68k guest on an x86_64 host: WITHOUT this patch: $ netstat -nr Kernel IP routing table

[Qemu-devel] [PULL] [PATCH 00/11] Linux-user updates

2013-09-27 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit f828a4c8faa118e0ebab3e353ac6840f3b2a0318: Merge remote-tracking branch 'stefanha/tracing' into staging (2013-09-23 11:53:22 -0500) are available in the git repository at:

[Qemu-devel] [PATCH 08/11] linux-user: correct how SOL_SOCKET is converted from target to host and back

2013-09-27 Thread riku . voipio
From: Petar Jovanovic petar.jovano...@imgtec.com Previous implementation does not take into account that SOL_SOCKET constant can be arch specific. This change fixes some issues with sendmsg/recvmsg. Signed-off-by: Petar Jovanovic petar.jovano...@imgtec.com Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH 07/11] linux-user: add support of binfmt_misc 'O' flag

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu The binfmt_misc module can calculate the credentials and security token according to the binary instead of to the interpreter if the 'C' flag is enabled. To be able to execute non-readable binaries, this flag implies 'O' flag. When 'O' flag is enabled,

[Qemu-devel] [PATCH 09/11] linux-user: Check type of microMIPS break instruction

2013-09-27 Thread riku . voipio
From: Kwok Cheung Yeung k...@codesourcery.com microMIPS instructions that cause breakpoint exceptions come in 16-bit and 32-bit variants. When handling exceptions caused by such instructions, the instruction type needs to be taken into account when extracting the break code. The code has also

[Qemu-devel] [PATCH 11/11] linux-user: Handle SOCK_CLOEXEC/NONBLOCK if unavailable on host

2013-09-27 Thread riku . voipio
From: Edgar E. Iglesias edgar.igles...@gmail.com If the host lacks SOCK_CLOEXEC, bail out with -EINVAL. If the host lacks SOCK_ONONBLOCK, try to emulate it with fcntl() and O_NONBLOCK. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Riku Voipio riku.voi...@linaro.org ---

[Qemu-devel] [PATCH 06/11] linux-user: add some IPV6 commands in setsockop()

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 20 1 file changed, 20 insertions(+) diff --git

[Qemu-devel] [PATCH 10/11] [v2] linux-user: implement m68k atomic syscalls

2013-09-27 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org With nptl enabled, atomic_cmpxchg_32 and atomic_barrier system calls are needed. This patch enabled really dummy versions of the system calls, modeled after the m68k kernel code. With this patch I am able to execute m68k binaries with qemu linux-user

[Qemu-devel] [PATCH v4] block: qemu-iotests for vhdx, read sample dynamic image

2013-09-27 Thread Jeff Cody
This adds the VHDX format to the qemu-iotests format, and adds a read test. The test reads from an existing sample image, that was created with Hyper-V under Windwos Server 2012. The image file is a 1GB dynamic image, with 32MB blocks. The pattern 0xa5 exists from 0MB-33MB (past a block size

Re: [Qemu-devel] [PATCH v6 20/20] block: qemu-iotests for vhdx, add write test support

2013-09-27 Thread Jeff Cody
This patch should be replaced, because of the vhdx r/o test patch posted upstream: [PATCH v4] block: qemu-iotests for vhdx, read sample dynamic image This patch should be: --- This removes the IMGFMT_GENERIC blocker for read-only, so existing iotests run read/write tests for vhdx images

Re: [Qemu-devel] [PATCH v6 18/20] block: qemu-iotests for vhdx, read sample dynamic image

2013-09-27 Thread Jeff Cody
On Wed, Sep 25, 2013 at 05:03:03PM -0400, Jeff Cody wrote: This adds the VHDX format to the qemu-iotests format, and adds a read test. The test reads from an existing sample image, that was created with Hyper-V under Windwos Server 2012. The image file is a 1GB dynamic image, with 32MB

Re: [Qemu-devel] Qxl problem with xen domU, is xen spice and/or qemu bugs?

2013-09-27 Thread Fabio Fantoni
Il 27/09/2013 10:51, Gerd Hoffmann ha scritto: Hi, #2 When using f19 try without X11 first. You should have a working framebuffer console on qxldrmfb before trying to get X11 going. I tried on Fedora19 minimal installation and with qxl the text console is working and lsmod show also

Re: [Qemu-devel] [PATCH] qcow2: Remove useless count_contiguous_clusters() parameter

2013-09-27 Thread Jeff Cody
On Fri, Sep 27, 2013 at 01:51:10PM +0200, Kevin Wolf wrote: All callers pass start = 0, and it's doubtful if any other value would actually do what you expect. Remove the parameter. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Jeff Cody jc...@redhat.com ---

Re: [Qemu-devel] [PATCH 03/60] arm: Split VFP cmp from FPSCR setting

2013-09-27 Thread Richard Henderson
On 09/26/2013 05:47 PM, Alexander Graf wrote: -DEF_HELPER_3(vfp_cmps, void, f32, f32, env) -DEF_HELPER_3(vfp_cmpd, void, f64, f64, env) -DEF_HELPER_3(vfp_cmpes, void, f32, f32, env) -DEF_HELPER_3(vfp_cmped, void, f64, f64, env) +DEF_HELPER_3(vfp_fpscr_cmps, void, f32, f32, env)

Re: [Qemu-devel] [PATCH 04/60] arm: Add AArch64 disassembler stub

2013-09-27 Thread Richard Henderson
On 09/26/2013 05:47 PM, Alexander Graf wrote: While we don't have a working disassembler for AArch64 yet, we still don't want AArch64 code be disassembled through the old AArch32 disassembler. So add a small disassembler stub that declares every instruction as unsupported. This should be a

Re: [Qemu-devel] [PATCH 1/6] kvm: Add KVM_GET_EMULATED_CPUID

2013-09-27 Thread Eduardo Habkost
On Thu, Sep 26, 2013 at 10:32:06PM +0200, Borislav Petkov wrote: On Thu, Sep 26, 2013 at 04:20:59PM -0300, Eduardo Habkost wrote: Please point me to the code that does this, because I don't see it on patch 6/6. @@ -1850,7 +1850,14 @@ static void filter_features_for_kvm(X86CPU *cpu)

Re: [Qemu-devel] [PATCH 09/60] AArch64: Add b and bl handling

2013-09-27 Thread Claudio Fontana
Hi Alex, On 09/27/13 02:48, Alexander Graf wrote: This adds handling for the b and bl instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 61 ++ 1 file changed, 61 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 09/60] AArch64: Add b and bl handling

2013-09-27 Thread Richard Henderson
On 09/26/2013 05:48 PM, Alexander Graf wrote: +static int get_bits(uint32_t inst, int start, int len) +{ +return (inst start) ((1 len) - 1); +} + +static int get_sbits(uint32_t inst, int start, int len) +{ +int r = get_bits(inst, start, len); +if (r (1 (len - 1))) { +

Re: [Qemu-devel] [PATCH 10/60] AArch64: Add handling for br instructions

2013-09-27 Thread Richard Henderson
On 09/26/2013 05:48 PM, Alexander Graf wrote: +static void handle_br(DisasContext *s, uint32_t insn) +{ +int branch_type = get_bits(insn, 21, 2); +int source = get_bits(insn, 5, 5); + +switch (branch_type) { +case 0: /* JMP */ +break; +case 1: /* CALL */ +

Re: [Qemu-devel] [PATCH 2/3] qcow2: Free allocated L2 cluster on error

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 16:37 hat Max Reitz geschrieben: If an error occurs in l2_allocate, the allocated (but unused) L2 cluster should be freed. Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-cluster.c | 4 1 file changed, 4 insertions(+) This needs an update of the reference

Re: [Qemu-devel] [PULL] [PATCH 00/11] Linux-user updates

2013-09-27 Thread Edgar E. Iglesias
On Fri, Sep 27, 2013 at 03:09:55PM +0300, riku.voi...@linaro.org wrote: From: Riku Voipio riku.voi...@linaro.org The following changes since commit f828a4c8faa118e0ebab3e353ac6840f3b2a0318: Merge remote-tracking branch 'stefanha/tracing' into staging (2013-09-23 11:53:22 -0500) are

[Qemu-devel] [PATCH v2] qemu/xen: make use of xenstore relative paths

2013-09-27 Thread Roger Pau Monne
Qemu has several hardcoded xenstore paths that are only valid on Dom0. Attempts to launch a Qemu instance (to act as a userspace backend for PV disks) will fail because Qemu is not able to access those paths when running on a domain different than Dom0. Instead make the xenstore paths relative to

[Qemu-devel] [PULL 00/30] Block patches

2013-09-27 Thread Kevin Wolf
The following changes since commit f828a4c8faa118e0ebab3e353ac6840f3b2a0318: Merge remote-tracking branch 'stefanha/tracing' into staging (2013-09-23 11:53:22 -0500) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony for you to fetch changes up to

[Qemu-devel] [PULL 01/30] block: fix backing file overriding

2013-09-27 Thread Kevin Wolf
From: Fam Zheng f...@redhat.com Providing backing.file.filename doesn't override backing file as expected: $ x86_64-softmmu/qemu-system-x86_64 -drive \ file=/tmp/child.qcow2,backing.file.filename=/tmp/fake.qcow2 qemu-system-x86_64: -drive \

[Qemu-devel] [PULL 05/30] block/get_block_status: set *pnum = 0 on error

2013-09-27 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de if the call is invoked through bdrv_is_allocated the caller might expect *pnum = 0 on error. however, a new implementation of bdrv_get_block_status might only return a negative exit value on error while keeping *pnum untouched. Reviewed-by: Eric Blake

[Qemu-devel] [PULL 03/30] qemu-iotests: Do not execute 052 with -nocache

2013-09-27 Thread Kevin Wolf
From: Max Reitz mre...@redhat.com Test 052 uses qemu-io -s which will result in bdrv_open trying to create a temporary snapshot file in /tmp. However, since O_DIRECT and tmpfs do not work well together, disable this test for -nocache. Signed-off-by: Max Reitz mre...@redhat.com Signed-off-by:

[Qemu-devel] [PULL 12/30] qdict: Extract qdict_extract_subqdict

2013-09-27 Thread Kevin Wolf
From: Benoît Canet ben...@irqsave.net Signed-off-by: Benoit Canet ben...@irqsave.net Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 23 ++- include/qapi/qmp/qdict.h | 2 ++ qobject/qdict.c | 21 + 3 files changed, 25

[Qemu-devel] [PULL 02/30] qemu-iotests: add test for backing file overriding

2013-09-27 Thread Kevin Wolf
From: Fam Zheng f...@redhat.com Test that backing.file.filename option can be parsed and override the backing file from image (backing file reflected with info block). Signed-off-by: Fam Zheng f...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/051 | 17

[Qemu-devel] [PULL 10/30] block: introduce BlockDriver.bdrv_needs_filename to enable some drivers.

2013-09-27 Thread Kevin Wolf
From: Benoît Canet ben...@irqsave.net Some drivers will have driver specifics options but no filename. This new bool allow the block layer to treat them correctly. The .bdrv_needs_filename is set in drivers not having .bdrv_parse_filename and not having .bdrv_open. The first exception to this

[Qemu-devel] [PULL 06/30] block/get_block_status: avoid segfault if there is no backing_hd

2013-09-27 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Peter Lieven p...@kamp.de Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 9b444b3..3366017 100644 ---

  1   2   >