[Qemu-devel] [PULL 03/33] hw: use ld_p/st_p instead of ld_raw/st_raw

2014-06-05 Thread Paolo Bonzini
The ld_raw and st_raw definitions are only needed in code that must compile for both user-mode and softmmu emulation. Device models can use the equivalent ld_p/st_p which are simple pointer accessors. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Paolo Bonzini

[Qemu-devel] [PULL 22/33] target-i386: tweak handling of PG_NX_MASK

2014-06-05 Thread Paolo Bonzini
Remove the tail of the PAE case, so that we can use goto in the next patch to jump to the protection checks. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target-i386/helper.c

[Qemu-devel] [PULL 28/33] target-i386: simplify pte/vaddr calculation

2014-06-05 Thread Paolo Bonzini
They can moved to after the dirty bit processing, and unified between CR0.PG=1 and CR0.PG=0. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c

[Qemu-devel] [PULL 24/33] target-i386: introduce support for 1 GB pages

2014-06-05 Thread Paolo Bonzini
Given the simplifications to the code in the previous patches, this is now very simple to do. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.c| 4 +--- target-i386/helper.c | 7 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c

[Qemu-devel] [PULL 26/33] target-i386: test reserved PS bit on PML4Es

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-i386/helper.c b/target-i386/helper.c index a8e4088..787fbba 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -580,6 +580,9 @@ int

[Qemu-devel] [PULL 09/33] softmmu: commonize helper definitions

2014-06-05 Thread Paolo Bonzini
They do not need to be in op_helper.c. Because cputlb.c now includes softmmu_template.h twice for each size, io_readX must be elided the second time through. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- cputlb.c| 18

[Qemu-devel] [PULL 32/33] target-i386: fix protection bits in the TLB for SMEP

2014-06-05 Thread Paolo Bonzini
User pages must be marked as non-executable when running under SMEP; otherwise, fetching the page first and then calling it will fail. With this patch, all SMEP testcases in kvm-unit-tests now pass. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 4 +++- 1 file

[Qemu-devel] [PATCH 5/5] qmp: add ACPI_DEVICE_OST event handling

2014-06-05 Thread Igor Mammedov
emmits event when ACPI OSPM evaluates _OST method of ACPI device. Signed-off-by: Igor Mammedov imamm...@redhat.com --- v2: - move event decription at the beginning of file to preserve alphabet ordering in file - fix example json --- docs/qmp/qmp-events.txt | 10 ++

[Qemu-devel] [PULL 29/33] target-i386: unify reserved bits and NX bit check

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 153a91b..a2e8bd1 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -549,6

[Qemu-devel] [PATCH 3/5] acpi: implement ospm_status() method for PIIX4/ICH9_LPC devices

2014-06-05 Thread Igor Mammedov
... using TYPE_ACPI_DEVICE_IF interface. Which provides status reporting of ACPI declared memory devices Signed-off-by: Igor Mammedov imamm...@redhat.com --- v2: - set slot-type to DIMM - take into account that 'device' field could be optional --- hw/acpi/ich9.c |7

Re: [Qemu-devel] [PATCH v7 3/4] spapr_pci_vfio: Add spapr-pci-vfio-host-bridge to support vfio

2014-06-05 Thread Alexey Kardashevskiy
On 06/05/2014 11:34 PM, Alexander Graf wrote: On 05.06.14 07:50, Alexey Kardashevskiy wrote: The patch adds a spapr-pci-vfio-host-bridge device type which is a PCI Host Bridge with VFIO support. The new device inherits from the spapr-pci-host-bridge device and adds an iommu property which

[Qemu-devel] [PULL 21/33] target-i386: commonize checks for PAE and non-PAE

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 120 ++- 1 file changed, 41 insertions(+), 79 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 5842531..eae3e7e 100644 --- a/target-i386/helper.c

[Qemu-devel] [PULL 06/33] softmmu: move definition of CPU_MMU_INDEX to inclusion site, drop ACCESS_TYPE

2014-06-05 Thread Paolo Bonzini
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/exec/exec-all.h | 4 ++-- include/exec/softmmu_exec.h | 28 ++-- include/exec/softmmu_header.h | 11 --- 3 files changed, 16 insertions(+), 27

Re: [Qemu-devel] [PATCH v10 15/18] Add the vhost-user netdev backend to the command line

2014-06-05 Thread Luiz Capitulino
On Tue, 27 May 2014 15:06:43 +0300 Nikolay Nikolaev n.nikol...@virtualopensystems.com wrote: The supplied chardev id will be inspected for supported options. Only a socket backend, with a set path (i.e. a Unix socket) and optionally the server parameter set, will be allowed. Other options

[Qemu-devel] [PULL 04/33] softmmu: start introducing SOFTMMU_CODE_ACCESS in softmmu_header.h

2014-06-05 Thread Paolo Bonzini
This preprocessor symbol is already used in softmmu_template.h. We will use it to distinguish the two fake ACCESS_TYPEs NB_MMU_MODES and NB_MMU_MODES + 1. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/exec/exec-all.h | 2 ++

Re: [Qemu-devel] [PATCH v4 11/21] qcow2: Handle failure for potentially large allocations

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:36:23 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the

Re: [Qemu-devel] [PATCH v2] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 16:19:26 (+0200), Kevin Wolf wrote : Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..898fcfe 100644 --- a/block/rbd.c +++ b/block/rbd.c

[Qemu-devel] [PULL 17/33] target-i386: simplify SMAP handling in MMU_KSMAP_IDX

2014-06-05 Thread Paolo Bonzini
Do not use this MMU index at all if CR4.SMAP is false, and drop the SMAP check from x86_cpu_handle_mmu_fault. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.h| 2 +- target-i386/helper.c | 12 2 files changed, 5 insertions(+), 9 deletions(-) diff --git

[Qemu-devel] [PULL 20/33] target-i386: commonize checks for 4MB and 4KB pages

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 118 ++- 1 file changed, 41 insertions(+), 77 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index cf18336..5842531 100644 --- a/target-i386/helper.c

[Qemu-devel] [PULL 31/33] target-i386: support long addresses for 4MB pages (PSE-36)

2014-06-05 Thread Paolo Bonzini
4MB pages can use 40-bit addresses by putting the higher 8 bits in bits 20-13 of the PDE. Bit 21 is reserved. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.c| 3 +-- target-i386/helper.c | 12 +--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 0/5] ACPI memory hotplug: QMP interfaces

2014-06-05 Thread Igor Mammedov
this is implemented on top of v4 memory hotplug series: http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg00129.html Series adds following QMP commands: - query-memory-devices - query-acpi-ospm-status and event: - ACPI_DEVICE_OST Which could be used by management tools to query current

[Qemu-devel] [PATCH 1/5] qmp: add query-memory-devices command

2014-06-05 Thread Igor Mammedov
... allowing to get state of present memory devices. Currently implemented only for PCDIMMDevice. Signed-off-by: Igor Mammedov imamm...@redhat.com --- v2: * fix typos an json syntax in QMP example * make 'id' optional to allow command work with anonymous memory devices --- hw/mem/pc-dimm.c

Re: [Qemu-devel] [PATCH v4 10/21] qcow1: Handle failure for potentially large allocations

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:36:22 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the

Re: [Qemu-devel] [PATCH v4 14/21] raw-win32: Handle failure for potentially large allocations

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:36:26 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the

[Qemu-devel] [PATCH v4 2/2] qga: Add guest-get-fsinfo command

2014-06-05 Thread Tomoki Sekiyama
Add command to get mounted filesystems information in the guest. The returned value contains a list of mountpoint paths and corresponding disks info such as disk bus type, drive address, and the disk controllers' PCI addresses, so that management layer such as libvirt can resolve the disk

Re: [Qemu-devel] [PATCH v4 13/21] raw-posix: Handle failure for potentially large allocations

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:36:25 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the

[Qemu-devel] [PULL 27/33] target-i386: raise page fault for reserved physical address bits

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.h| 10 ++ target-i386/helper.c | 34 ++ 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index f2d5b19..8ceea8b 100644 ---

Re: [Qemu-devel] 答复: Expansion Ratio Issue

2014-06-05 Thread Sergey Fedorov
On 05.06.2014 17:07, Peter Maydell wrote: Probably worth making sure you also test workloads that do different things in multiple processes (to catch performance issues from over frequent TB/TLB flushes, and so on). Maybe make -jN? Thanks, Sergey

[Qemu-devel] [PULL 33/33] target-i386: cleanup x86_cpu_get_phys_page_debug

2014-06-05 Thread Paolo Bonzini
Make the code a bit more similar to x86_cpu_handle_mmu_fault. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
On 06/05/2014 11:36 PM, Alexander Graf wrote: On 05.06.14 15:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14 15:10, Alexey Kardashevskiy wrote: On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14 08:43, Alexey Kardashevskiy wrote: On

[Qemu-devel] [PATCH 2/5] acpi: introduce TYPE_ACPI_DEVICE_IF interface

2014-06-05 Thread Igor Mammedov
... it will be used to abstract generic ACPI bits from device that implements ACPI interface. ACPIOSTInfo type is used for passing-through raw _OST event/status codes reported by guest OS to a management layer. It lets management tools to interpret values as specified by ACPI spec if it

[Qemu-devel] [PULL 25/33] target-i386: set correct error code for reserved bit access

2014-06-05 Thread Paolo Bonzini
The correct error code is 9 (present, reserved), not 8. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 5a50364..a8e4088

Re: [Qemu-devel] [PATCH v4 15/21] rbd: Handle failure for potentially large allocations

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:36:27 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the rbd

Re: [Qemu-devel] [Qemu-ppc] qemu does not support PAPR

2014-06-05 Thread Stuart Yoder
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, June 05, 2014 2:59 AM To: sonia verma Cc: Paolo Bonzini; abhishek jain; qemu-...@nongnu.org; qemu-devel; Yoder Stuart-B08248 Subject: Re: [Qemu-ppc] qemu does not support PAPR Am 05.06.2014 um

[Qemu-devel] Use-after-free during unrealize in system_reset

2014-06-05 Thread Stefan Hajnoczi
qemu-iotests ./check -qcow2 067 is entering an infinite loop during system_reset. This failure is a non-deterministic use-after-free and the infinite loop happens maybe 1/3 of the time. Michael Tsirkin found that pci_unregister_device() is called before pci_find_capability_list() since the

[Qemu-devel] [PATCH 4/5] qmp: add query-acpi-ospm-status command

2014-06-05 Thread Igor Mammedov
... to get ACPI OSPM status reported by ACPI devices via _OST method. Signed-off-by: Igor Mammedov imamm...@redhat.com --- qapi-schema.json | 10 ++ qmp-commands.hx | 22 ++ qmp.c| 20 3 files changed, 52 insertions(+), 0

[Qemu-devel] [PULL 07/33] softmmu: make do_unaligned_access a method of CPU

2014-06-05 Thread Paolo Bonzini
We will reference it from more files in the next patch. To avoid ruining the small steps we're making towards multi-target, make it a method of CPU rather than just a global. Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

Re: [Qemu-devel] [PATCH v2 1/5] qapi: Extract qapi/common.json definitions

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: Signed-off-by: Benoit Canet ben...@irqsave.net --- qapi-schema.json | 87 ++ qapi/common.json | 89 2 files changed, 91 insertions(+), 85

Re: [Qemu-devel] [PATCH] smbios: use g_free directly on NULL pointers

2014-06-05 Thread Benoît Canet
The Wednesday 04 Jun 2014 à 18:00:28 (+0200), Paolo Bonzini wrote : No need to wrap it with an if. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/i386/smbios.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hw/i386/smbios.c b/hw/i386/smbios.c index

[Qemu-devel] [PULL 05/33] softmmu: move MMUSUFFIX under SOFTMMU_CODE_ACCESS

2014-06-05 Thread Paolo Bonzini
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/exec/softmmu_header.h | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/exec/softmmu_header.h b/include/exec/softmmu_header.h index 087b2d4..cc85a43

[Qemu-devel] [PATCH v4 1/2] qga: Add guest-fsfreeze-freeze-list command

2014-06-05 Thread Tomoki Sekiyama
If an array of mount point paths is specified as 'mountpoints' argument of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems mounted on specified paths in Linux guests. Otherwise, it works as the same way as guest-fsfreeze-freeze. This would be useful when the host wants to

[Qemu-devel] [PULL 30/33] target-i386: raise page fault for reserved bits in large pages

2014-06-05 Thread Paolo Bonzini
In large pages, bit 12 is for PAT, but bits starting at 13 are reserved. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.h| 2 ++ target-i386/helper.c | 1 + 2 files changed, 3 insertions(+) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 8ceea8b..51959be

[Qemu-devel] [PATCH v4 0/2] qga: Add guest-fsfreeze-freeze-list command

2014-06-05 Thread Tomoki Sekiyama
Hi, This is v4 patch for qemu-ga to add functions to freeze specific file systems mounted in a guest. PATCH 1 adds a guest-fsfreeze-freeze-list command, which takes an additional argument to specify which filesystems to be frozen, derived from guest-fsfreeze-freeze command. PATCH 2 adds a

[Qemu-devel] [PULL 12/33] softmmu: introduce cpu_ldst.h

2014-06-05 Thread Paolo Bonzini
This will collect all load and store helpers soon. For now it is just a replacement for softmmu_exec.h, which this patch stops including directly, but we also include it where this will be necessary in order to simplify the next patch. Reviewed-by: Richard Henderson r...@twiddle.net

Re: [Qemu-devel] [ping PATCH v4 0/2] qdev: Display warning about unused -global

2014-06-05 Thread Don Slutz
ping. On 05/05/14 14:03, Don Slutz wrote: I might have named this v2, but since this is a split out of: [PATCH v3 2/4] GlobalProperty: Display warning about unused -global From: [PATCH v3 0/4] Add max-ram-below-4g (was Add pci_hole_min_size machine option) I feel v4 is better. Changes v3

Re: [Qemu-devel] [PATCH] linux-user: Tell guest about big host page sizes

2014-06-05 Thread Richard Henderson
On 06/05/2014 02:43 AM, Alexander Graf wrote: We tell the guest its page size via AUX vectors. The guest process then uses this page size as information on which boundaries it can mmap() things. However, if the host has a bigger page size granularity than the guest, it can not fulfill these

Re: [Qemu-devel] [PATCH v10 15/18] Add the vhost-user netdev backend to the command line

2014-06-05 Thread Eric Blake
On 05/27/2014 06:06 AM, Nikolay Nikolaev wrote: The supplied chardev id will be inspected for supported options. Only a socket backend, with a set path (i.e. a Unix socket) and optionally the server parameter set, will be allowed. Other options (nowait, telnet) will make the chardev unusable

[Qemu-devel] [RFC 2/2] target-i386: Add allow-emulation X86CPU property

2014-06-05 Thread Eduardo Habkost
The new option will allow slow emulated features (the ones returned by GET_EMULATED_CPUID) to be enabled. We don't want to allow them to be enabled by accident, so they will be enabled only if emulation is explicitly allowed by the user. Signed-off-by: Eduardo Habkost ehabk...@redhat.com ---

Re: [Qemu-devel] Problems compiling HEAD on Mac OS X 10.9.2

2014-06-05 Thread Peter Maydell
On 5 June 2014 14:38, Rainer Müller rai...@codingfarm.de wrote: On 2014-03-14 13:29, Paolo Bonzini wrote: Il 13/03/2014 19:48, Peter Maydell ha scritto: Yep, here we are: LIBSSH2_LIBS=-L/opt/local/lib -lssh2 -Wl,-headerpad_max_install_names -arch x86_64 CURL_LIBS=-L/opt/local/lib -lcurl

[Qemu-devel] [RFC 1/2] kvm: Implement kvm_arch_get_emulated_cpuid()

2014-06-05 Thread Eduardo Habkost
From: Borislav Petkov b...@suse.de Add support for the KVM_GET_EMULATED_CPUID ioctl and leave feature bits enabled, when requested by userspace, if kvm emulates them. Signed-off-by: Borislav Petkov b...@suse.de [ehabkost: removed target-i386/cpu.c code, changed patch description] Signed-off-by:

[Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
This implements GET_SUPPORTED_CPUID support using an explicit option for it: allow-emulation. We don't want any emulated feature to be enabled by accident, so they will be enabled only if the user explicitly wants to allow them. References to previous patch and discussions: Message-Id:

Re: [Qemu-devel] Use-after-free during unrealize in system_reset

2014-06-05 Thread Michael S. Tsirkin
On Thu, Jun 05, 2014 at 05:31:45PM +0200, Stefan Hajnoczi wrote: qemu-iotests ./check -qcow2 067 is entering an infinite loop during system_reset. This failure is a non-deterministic use-after-free and the infinite loop happens maybe 1/3 of the time. This patch makes it fail

Re: [Qemu-devel] [PATCH v10 16/18] Add vhost-user protocol documentation

2014-06-05 Thread Eric Blake
On 05/27/2014 06:06 AM, Nikolay Nikolaev wrote: This document describes the basic message format used by vhost-user for communication over a unix domain socket. The protocol is based on the existing ioctl interface used for the kernel version of vhost. Signed-off-by: Antonios Motakis

Re: [Qemu-devel] [PATCH v2 2/5] qapi: create two block related json modules

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: qapi/block-core.json contains block definitions unrelated to emulation. qapi/block.json is a superset of the previous and contains definitions related to emulation. The purpose of these extractions is to be able to hook qapi/block-core.json

Re: [Qemu-devel] [PATCH v4 0/2] qdev: Display warning about unused -global

2014-06-05 Thread Michael S. Tsirkin
On Mon, May 05, 2014 at 02:03:05PM -0400, Don Slutz wrote: I might have named this v2, but since this is a split out of: [PATCH v3 2/4] GlobalProperty: Display warning about unused -global From: [PATCH v3 0/4] Add max-ram-below-4g (was Add pci_hole_min_size machine option) I feel v4

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 18:12, Eduardo Habkost wrote: This implements GET_SUPPORTED_CPUID support using an explicit option for it: allow-emulation. We don't want any emulated feature to be enabled by accident, so they will be enabled only if the user explicitly wants to allow them. So is this an

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 18:24, Alexander Graf ha scritto: On 05.06.14 18:12, Eduardo Habkost wrote: This implements GET_SUPPORTED_CPUID support using an explicit option for it: allow-emulation. We don't want any emulated feature to be enabled by accident, so they will be enabled only if the user

Re: [Qemu-devel] [PATCH v4 2/3] pc q35: Add new machine opt max-ram-below-4g

2014-06-05 Thread Igor Mammedov
On Thu, 5 Jun 2014 12:11:55 -0400 Don Slutz dsl...@verizon.com wrote: This is a pc q35 only machine opt. One use is to allow for more ram in a 32bit guest for example: -machine pc,max-ram-below-4g=3.75G If you add enough PCI devices then all mmio for them will not fit below 4G which

[Qemu-devel] [PATCH v4 2/3] pc q35: Add new machine opt max-ram-below-4g

2014-06-05 Thread Don Slutz
This is a pc q35 only machine opt. One use is to allow for more ram in a 32bit guest for example: -machine pc,max-ram-below-4g=3.75G If you add enough PCI devices then all mmio for them will not fit below 4G which may not be the layout the user wanted. This allows you to increase the below 4G

[Qemu-devel] [PATCH v4 3/3] xen-hvm: Pass is_default to xen_hvm_init

2014-06-05 Thread Don Slutz
This is the xen part of pc q35: Add new machine opt max-ram-below-4g Signed-off-by: Don Slutz dsl...@verizon.com --- v4: Pass is_default instead of max_ram_below_4g. Also did not add Acked-by: Stefano Stabellini since code changed a lot. hw/i386/pc_piix.c| 1 + hw/i386/pc_q35.c

[Qemu-devel] [PATCH v4 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option)

2014-06-05 Thread Don Slutz
Changes v3 to v4: Split out #2 GlobalProperty: Display warning about unused -global rebase on e00fcfe (origin/master) rename xen-all to xen-hvm Adjust #1 xen-hvm: Fix xen_hvm_init() to adjust pc memory layout Switch Acked-by Signed-off-by rebase on master Rework #3 xen-hvm:

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 18:26, Paolo Bonzini wrote: Il 05/06/2014 18:24, Alexander Graf ha scritto: On 05.06.14 18:12, Eduardo Habkost wrote: This implements GET_SUPPORTED_CPUID support using an explicit option for it: allow-emulation. We don't want any emulated feature to be enabled by accident, so

Re: [Qemu-devel] [PATCH v2 3/5] qapi: Extract qapi/block-core.json definitions

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: Signed-off-by: Benoit Canet ben...@irqsave.net --- qapi-schema.json | 1428 +- qapi/block-core.json | 1406 + 2 files changed, 1417 insertions(+),

[Qemu-devel] [PATCH v4 1/3] xen-hvm: Fix xen_hvm_init() to adjust pc memory layout

2014-06-05 Thread Don Slutz
This is just below_4g_mem_size and above_4g_mem_size which is used later in QEMU. Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Don Slutz dsl...@verizon.com --- v4: Switch Acked-by Signed-off-by rebase on master hw/i386/pc_piix.c| 31

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 18:40, Alexander Graf ha scritto: kvm_set_cpuid(cpuid); but enabling all experimental features inside KVM just because we want one or two of them is very counter-intuitive. Imagine we'd introduce emulation support for AVX. Suddenly allow-emulation (which I'd need for Mac OS X

Re: [Qemu-devel] [PATCH v2 4/5] qapi: Extract qapi/block.json definitions

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: Signed-off-by: Benoit Canet ben...@irqsave.net --- qapi-schema.json | 159 --- qapi/block.json | 159 +++ 2 files changed, 159

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 18:44, Paolo Bonzini wrote: Il 05/06/2014 18:40, Alexander Graf ha scritto: kvm_set_cpuid(cpuid); but enabling all experimental features inside KVM just because we want one or two of them is very counter-intuitive. Imagine we'd introduce emulation support for AVX. Suddenly

Re: [Qemu-devel] [PATCH v4 2/3] pc q35: Add new machine opt max-ram-below-4g

2014-06-05 Thread Don Slutz
On 06/05/14 12:27, Igor Mammedov wrote: On Thu, 5 Jun 2014 12:11:55 -0400 Don Slutz dsl...@verizon.com wrote: This is a pc q35 only machine opt. One use is to allow for more ram in a 32bit guest for example: -machine pc,max-ram-below-4g=3.75G If you add enough PCI devices then all mmio

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexander Graf
On 05.06.14 16:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:36 PM, Alexander Graf wrote: On 05.06.14 15:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14 15:10, Alexey Kardashevskiy wrote: On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14

Re: [Qemu-devel] [PATCH v2 5/5] qapi: Set QAPI descriptions files under the GPL V2 license

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: Signed-off-by: Benoit Canet ben...@irqsave.net --- qapi-schema.json | 4 qapi/block-core.json | 4 qapi/block.json | 4 qapi/common.json | 4 4 files changed, 16 insertions(+) diff --git a/qapi-schema.json

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 18:45, Alexander Graf ha scritto: Only if you were using -cpu somethingThatHasAVX, though, no? Yes. The same argument goes the other way around. I want to use AVX emulation, do allow-emulation and suddenly I get MONITOR/MWAIT emulation. What about: - letting -cpu

Re: [Qemu-devel] [PATCH v2 0/5] Extract QAPI block commands

2014-06-05 Thread Eric Blake
On 06/05/2014 05:45 AM, Benoît Canet wrote: in v2: squash commits [Stefan] Get rid of dependency on quorum maintainance series [Stefan] Add proper GPL V2 license in headers [Eric] Benoît Canet (5): qapi: Extract qapi/common.json definitions qapi: create two

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 18:52, Paolo Bonzini wrote: Il 05/06/2014 18:45, Alexander Graf ha scritto: Only if you were using -cpu somethingThatHasAVX, though, no? Yes. The same argument goes the other way around. I want to use AVX emulation, do allow-emulation and suddenly I get MONITOR/MWAIT

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 18:52, Paolo Bonzini wrote: Il 05/06/2014 18:45, Alexander Graf ha scritto: Only if you were using -cpu somethingThatHasAVX, though, no? Yes. The same argument goes the other way around. I want to use AVX emulation, do allow-emulation and suddenly I get MONITOR/MWAIT

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 18:54, Alexander Graf ha scritto: What about: - letting -cpu foo,+emulatedfeature just work - adding emulated=yes that blindly enables all emulated features - making -cpu ...,check prints a warning for emulated features unless emulated=yes How about we remove the emulated=yes

Re: [Qemu-devel] [RFC PATCH 01/16] Visitor: Add methods for migration format use

2014-06-05 Thread Markus Armbruster
Dr. David Alan Gilbert (git) dgilb...@redhat.com writes: From: Dr. David Alan Gilbert dgilb...@redhat.com array types From https://lists.gnu.org/archive/html/qemu-devel/2011-09/msg02465.html str256 type For the upto 256byte strings QEMU commonly uses for IDs Naive question: why

Re: [Qemu-devel] [Qemu-ppc] qemu does not support PAPR

2014-06-05 Thread sonia verma
Hi Stuart. Thanks for the information.I need to run libguestfs on powerpc ubuntu.How can i do that? Are there any patches for the same. On Jun 5, 2014 8:59 PM, Stuart Yoder stuart.yo...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent:

[Qemu-devel] [PULL 00/10] pc,pci,virtio,qdev fixes, tests

2014-06-05 Thread Michael S. Tsirkin
The following changes since commit c5fa6c86d0765f837515d1c10654c621724a77e0: Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging (2014-05-19 14:10:01 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream

[Qemu-devel] [PULL 03/10] SMBIOS: Update Type 0 struct generator for machines = 2.1

2014-06-05 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com Update how type 0 (bios info) structures are generated, as follows: - convert bios_characteristics field to uin64_t (instead of uint8_t[8]), as described in the current smbios spec (v2.8) - enable virtual machine bit in

[Qemu-devel] [PULL 05/10] pcie_host: Turn pcie_host_init() into an instance_init

2014-06-05 Thread Michael S. Tsirkin
From: Andreas Färber afaer...@suse.de This assures the trivial field initialization is applied for any derived type - currently only Q35PCIHost. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PULL 07/10] tests: rename acpi-test to bios-tables-test

2014-06-05 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com The test harness for acpi (generating a boot disk, starting qemu, waiting for the BIOS to finish booting before examining guest memory, etc.) is perfectly suited for testing other bios tables beside acpi, such as e.g., smbios. This patch renames acpi-test

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 06:57:57PM +0200, Paolo Bonzini wrote: Il 05/06/2014 18:54, Alexander Graf ha scritto: What about: - letting -cpu foo,+emulatedfeature just work - adding emulated=yes that blindly enables all emulated features - making -cpu ...,check prints a warning for

[Qemu-devel] [PULL 04/10] SMBIOS: Fix type 17 field sizes

2014-06-05 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com Fields for configured_clock_speed and various voltage values introduced in spec v2.7+ should be word, i.e. 16 bits. Reported-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Gabriel Somlo so...@cmu.edu Reviewed-by: Laszlo Ersek ler...@redhat.com

[Qemu-devel] [PULL 02/10] SMBIOS: Fix endian-ness when populating multi-byte fields

2014-06-05 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com When i386 guests are emulated on big endian hosts, make sure multi-byte fields are populated safely via cpu_to_le*(). Signed-off-by: Gabriel Somlo so...@cmu.edu Reviewed-by: Laszlo Ersek ler...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

[Qemu-devel] [PULL 01/10] serial-pci: Set prog interface field of pci config to 16550 compatible

2014-06-05 Thread Michael S. Tsirkin
From: BALATON Zoltan bala...@eik.bme.hu Signed-off-by: BALATON Zoltan bala...@eik.bme.hu Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Gerd Hoffmann kra...@redhat.com --- include/hw/i386/pc.h | 15 +++

[Qemu-devel] [PULL 10/10] qdev: Add test of qdev_prop_check_global

2014-06-05 Thread Michael S. Tsirkin
From: Don Slutz dsl...@verizon.com This will generate a warning from make check: ... GTESTER tests/test-qdev-global-props Warning: -global dynamic-prop-type-bad.prop3=103 not used GTESTER tests/check-qom-interface ... If the warning is not generated, the test will fail. Signed-off-by: Don

[Qemu-devel] [PULL 09/10] qdev: Display warning about unused -global

2014-06-05 Thread Michael S. Tsirkin
From: Don Slutz dsl...@verizon.com This can help a user understand why -global was ignored. For example: with -vga cirrus; -global vga.vgamem_mb=16 is just ignored when -global cirrus-vga.vgamem_mb=16 is not. This is currently clear when the wrong property is provided:

[Qemu-devel] [PATCH 0/3] FreeBSD-user, breakout the BSDs

2014-06-05 Thread Sean Bruno
This is the first patch-set being pulled from current development of FreeBSD user mode code. This work is based on Stacey Son's developement work from Caimbridge. Refresh the syscalls for FreeBSD. This is a resend as I haven't seen it hit the tree yet in my pulls. Breakout the three major BSD

Re: [Qemu-devel] [RFC 1/5] nbd: Correct name comparison for export_set_name()

2014-06-05 Thread Max Reitz
On 04.06.2014 13:52, Stefan Hajnoczi wrote: On Sat, May 31, 2014 at 08:43:08PM +0200, Max Reitz wrote: exp-name == name is certainly true if both strings are equal and will work for both of them being NULL (which is important to check here); however, the strings may also be equal without having

Re: [Qemu-devel] [RFC 4/5] block: Add AIO followers

2014-06-05 Thread Max Reitz
On 04.06.2014 14:41, Stefan Hajnoczi wrote: On Sat, May 31, 2014 at 08:43:11PM +0200, Max Reitz wrote: If a long-running operation on a BDS wants to always remain in the same AIO context, it somehow needs to keep track of the BDS changing its context. This adds a function for registering

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 06:40:25PM +0200, Alexander Graf wrote: On 05.06.14 18:26, Paolo Bonzini wrote: Il 05/06/2014 18:24, Alexander Graf ha scritto: On 05.06.14 18:12, Eduardo Habkost wrote: This implements GET_SUPPORTED_CPUID support using an explicit option for it: allow-emulation.

[Qemu-devel] [PULL 06/10] virtio-balloon: return empty data when no stats are available

2014-06-05 Thread Michael S. Tsirkin
From: Ján Tomko jto...@redhat.com If the guest hasn't updated the stats yet, instead of returning an error, return '-1' for the stats and '0' as 'last-update'. This lets applications ignore this without parsing the error message. Related libvirt patch and discussion:

Re: [Qemu-devel] [PATCH 3/3] bsd-user: move strace OS/arch dependent code to host/arch dirs

2014-06-05 Thread Peter Maydell
On 5 June 2014 18:27, Sean Bruno sbr...@freebsd.org wrote: From: Stacey Son s...@freebsd.org This change moves host OS and arch dependent code for the sysarch system call related to the -strace functionality into the appropriate host OS and target arch directories. +{

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 19:17, Eduardo Habkost ha scritto: If you don't want MONITOR/MWAIT you shouldn't be using a CPU model containing MONITOR/MWAIT in the first place. If you use -cpu somethingWithMONITOR, that means you are already asking QEMU for a CPU with MONITOR. If you were not getting

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 19:19, Eduardo Habkost ha scritto: On Thu, Jun 05, 2014 at 06:57:57PM +0200, Paolo Bonzini wrote: Il 05/06/2014 18:54, Alexander Graf ha scritto: What about: - letting -cpu foo,+emulatedfeature just work - adding emulated=yes that blindly enables all emulated features -

Re: [Qemu-devel] [Qemu-ppc] qemu does not support PAPR

2014-06-05 Thread Stuart Yoder
From: sonia verma [mailto:soniaverma9...@gmail.com] Sent: Thursday, June 05, 2014 12:13 PM To: Yoder Stuart-B08248 Cc: abhishek jain; Alexander Graf; qemu-...@nongnu.org; qemu-devel; Paolo Bonzini Subject: RE: [Qemu-ppc] qemu does not support PAPR Hi Stuart. Thanks for the

Re: [Qemu-devel] [RFC 0/5] nbd: Adapt for dataplane

2014-06-05 Thread Max Reitz
On 03.06.2014 16:38, Stefan Hajnoczi wrote: On Sat, May 31, 2014 at 08:43:07PM +0200, Max Reitz wrote: For the NBD server to work with dataplane, it needs to correctly access the exported BDS. It makes the most sense to run both in the same AioContext, therefore this series implements methods

Re: [Qemu-devel] [RFC PATCH 01/16] Visitor: Add methods for migration format use

2014-06-05 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: Dr. David Alan Gilbert (git) dgilb...@redhat.com writes: Hi Markus, Thanks for the review. I've reordered your comments to group some of the replies together. From: Dr. David Alan Gilbert dgilb...@redhat.com Your patch drags

[Qemu-devel] [PATCH 1/3] bsd-user: refresh freebsd system call numbers

2014-06-05 Thread Sean Bruno
From: Stacey Son s...@freebsd.org Update FreeBSD system call numbers in freebsd/syscall_nr.h. Reviewed-by: Ed Maste ema...@freebsd.org Signed-off-by: Stacey Son s...@freebsd.org Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/syscall_nr.h | 813

Re: [Qemu-devel] [RFC 2/5] aio: Add io_read_poll() callback

2014-06-05 Thread Max Reitz
On 03.06.2014 19:55, Paolo Bonzini wrote: Il 31/05/2014 20:43, Max Reitz ha scritto: @@ -108,7 +120,9 @@ bool aio_pending(AioContext *ctx) int revents; revents = node-pfd.revents node-pfd.events; -if (revents (G_IO_IN | G_IO_HUP | G_IO_ERR) node-io_read) { +

<    1   2   3   4   5   >