[Qemu-devel] [PATCH V7 0/4] libqblock qemu block layer library

2012-10-12 Thread Wenchao Xia
From: Wenchao Xia These patches introduce libqblock API, make libqblock.la and make check-libqblock could build this library. Functionalities: 1 create a new image. 2 sync access of an image. 3 basic image information retrieving such as backing file. 4 detect if a sector is allocated in an

[Qemu-devel] [PATCH V7 4/4] libqblock test example

2012-10-12 Thread Wenchao Xia
From: Wenchao Xia In this example, first it will create some qcow2 images, then try get information including backing file relationship, then it will do sync IO on the image. Signed-off-by: Wenchao Xia --- tests/libqblock/libqblock-qcow2.c | 390 - 1 file

[Qemu-devel] [PATCH V7 1/4] libqblock build system

2012-10-12 Thread Wenchao Xia
From: Wenchao Xia Libqblock was placed in new directory ./libqblock, libtool will build dynamic library there, source files of block layer remains in ./block. So block related source code will generate 3 sets of binary, first is old ones used in qemu, second and third are non PIC and PIC ones i

[Qemu-devel] [PATCH V7 3/4] libqblock API

2012-10-12 Thread Wenchao Xia
From: Wenchao Xia This patch contains the major APIs in the library. For ABI some reserved members were used. Important APIs: 1 QBlockContext. This structure was used to retrieve errors, every thread must create one first. 2 QBlockState. It stands for an block image object. 3 QBlockStatic

[Qemu-devel] [PATCH V7 2/4] libqblock type defines

2012-10-12 Thread Wenchao Xia
From: Wenchao Xia This patch contains type and macro defines used in APIs, one file for public usage, one for libqblock internal usage. Signed-off-by: Wenchao Xia --- libqblock/libqblock-internal.h | 75 libqblock/libqblock-types.h| 252 +++

Re: [Qemu-devel] [PATCH] isapc: Shadow ISA BIOS by default

2012-10-12 Thread Kevin O'Connor
On Fri, Oct 12, 2012 at 11:29:47AM +0200, Jan Kiszka wrote: > On 2012-10-08 20:52, Anthony Liguori wrote: > > Jan Kiszka writes: > > > >> On 2012-09-11 17:53, Jan Kiszka wrote: > >>> Our one and only BIOS depends on a writable shadowed BIOS in the ISA > >>> range. As we have no interface to contr

[Qemu-devel] [PATCH v4 04/26] qapi: qapi_visit.py, make code useable as module

2012-10-12 Thread Michael Roth
Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- scripts/qapi_visit.py | 157 + 1 file changed, 81 insertions(+), 76 deletions(-) diff --git a/scripts/qapi_visit.py b/scripts/qapi_visit.py index a360de7..f9

[Qemu-devel] [PATCH v4 09/26] qapi: QmpOutputVisitor, implement array handling

2012-10-12 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-output-visitor.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/qapi/qmp-output-visitor.c b/qapi/qmp-output-visitor.c index 2bce9d5..83cf0dc 100644 --- a/qapi/qmp-output-visitor.c +++ b/qapi/qmp-output-visitor.c @@ -181,6 +181,

[Qemu-devel] [PATCH v4 19/26] module additions for schema registration

2012-10-12 Thread Michael Roth
Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- module.h |2 ++ vl.c |1 + 2 files changed, 3 insertions(+) diff --git a/module.h b/module.h index c4ccd57..cb81aa2 100644 --- a/module.h +++ b/module.h @@ -25,6 +25,7 @@ typedef enum { MOD

[Qemu-devel] [PATCH v4 07/26] qapi: qapi_visit.py, support for visiting non-pointer/embedded structs

2012-10-12 Thread Michael Roth
Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- scripts/qapi_visit.py |9 + 1 file changed, 9 insertions(+) diff --git a/scripts/qapi_visit.py b/scripts/qapi_visit.py index 856df5e..c531a5a 100644 --- a/scripts/qapi_visit.py +++ b/scripts/qapi_visit.py @@ -145,6 +145,15

[Qemu-devel] [PATCH v4 11/26] qapi: QmpInputVisitor, don't re-allocate memory in start_struct

2012-10-12 Thread Michael Roth
If we're given a pointer that has already be initialized to a non-NULL value, don't attempt to allocate memory for the object as we'll likely clobber something we weren't supposed to. Also, fix up a check in the unit test that may fail as a result of this change do to it not initializing the objec

[Qemu-devel] [PATCH v4 05/26] qapi: qapi_visit.py, support arrays and complex qapi definitions

2012-10-12 Thread Michael Roth
Add support for arrays in the code generators. Complex field descriptions can now be used to provide additional information to the visitor generators, such as the max size of an array, or the field within a struct to use to determine how many elements are present in the array to avoid serializing

[Qemu-devel] [PATCH v4 08/26] qapi: add visitor interfaces for C arrays

2012-10-12 Thread Michael Roth
Generally these will be serialized into lists, but the representation can be of any form so long as it can be deserialized into a single-dimension C array. Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- qapi/qapi-visit-core.c | 25 + qapi/qapi-visit-core.h

[Qemu-devel] [PATCH v4 12/26] qapi: fix potential segfault for visit_type_size()

2012-10-12 Thread Michael Roth
visit_type_size() was added for use-cases currently only encountered by OptsVisitor users, which implements a specific handler for visit_type_size(). For Visitor implementations that don't implement the handler, we fallback to using v->type_uint64(). However, some visitor implementations, such as

[Qemu-devel] [PATCH v4 13/26] qapi: ordereddict, add to_json() method

2012-10-12 Thread Michael Roth
This allows OrderedDict() instances to be [pretty-]printed to QAPI-compatible JSON structures with field ordering preserved. This is useful for QIDL, which generates schemas programatically and exposes them to users in various ways. Signed-off-by: Michael Roth --- scripts/ordereddict.py | 51 +

[Qemu-devel] [PATCH v4 01/26] qapi: qapi-visit.py -> qapi_visit.py so we can import

2012-10-12 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-visit.py => qapi_visit.py

[Qemu-devel] [PATCH v4 26/26] qidl: unit tests and build infrastructure

2012-10-12 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |2 + configure |1 + rules.mak | 25 ++- tests/Makefile |8 +- tests/test-qidl-included.h | 31 tests/test-qidl-linked.c | 93 +++ tests/test-qidl-linked.h

[Qemu-devel] [PATCH v4 03/26] qapi: qapi-commands.py -> qapi_commands.py

2012-10-12 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen. Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-commands.py => qapi_commands.py} |0 tests/M

Re: [Qemu-devel] [PATCH 1/2] block: make bdrv_find_backing_image compare canonical filenames

2012-10-12 Thread Eric Blake
On 10/09/2012 11:56 PM, Jeff Cody wrote: > Currently, bdrv_find_backing_image compares bs->backing_file with > what is passed in as a backing_file name. Mismatches may occur, > however, when bs->backing_file and backing_file are both not > absolute or relative. > > Use path_combine() to make sure

[Qemu-devel] [PATCH v4 23/26] qidl: add C parser (based on QC parser)

2012-10-12 Thread Michael Roth
This introduces the QIDL parser to process QIDL annotations in C files. This code is mostly a straight import from qc.git, with some reworking to handle the declaration/annotation format and lexer we're using for QEMU. Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- scripts/qidl_pars

[Qemu-devel] [PATCH 5/4] exec: Make MIN_CODE_GEN_BUFFER_SIZE private to exec.c

2012-10-12 Thread Richard Henderson
It is used nowhere else, and the corresponding MAX_CODE_GEN_BUFFER_SIZE also lives there. Signed-off-by: Richard Henderson --- exec-all.h | 2 -- exec.c | 4 2 files changed, 4 insertions(+), 2 deletions(-) Dang it, I knew there was something else I was intending to include in the patc

Re: [Qemu-devel] [PATCH v3 22/22] qidl: unit tests and build infrastructure

2012-10-12 Thread Michael Roth
On Fri, Oct 05, 2012 at 10:24:30AM +0200, Paolo Bonzini wrote: > Il 04/10/2012 19:33, Michael Roth ha scritto: > > + > > +%.qidl.c: %.c $(SRC_PATH)/qidl.h $(addprefix $(SRC_PATH)/scripts/,lexer.py > > qidl.py qidl_parser.py qapi.py qapi_visit.py) > > + $(call rm -f $(*D)/qidl-generated/$(*F).qid

[Qemu-devel] [Bug 921208] Re: win7/x64 installer hangs on startup with 0x0000005d.

2012-10-12 Thread Rolando Zappacosta
Hi Valerio/Clemens, in my case, Windows 7 alone runs great! I face this issue after installing PointSec to encrypt the (emulated) disk from the Windows 7 itself. Playing with above suggested parameters: 1) "-cpu kvm64,+nx -no-kvm" the BSOD: 0x005D (0x78BFBF9,0x0

[Qemu-devel] [PATCH v4 21/26] qidl: add documentation

2012-10-12 Thread Michael Roth
Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- docs/qidl.txt | 347 + 1 file changed, 347 insertions(+) create mode 100644 docs/qidl.txt diff --git a/docs/qidl.txt b/docs/qidl.txt new file mode 100644 index 000..7d17cdc -

[Qemu-devel] [PATCH v4 22/26] qidl: add lexer library (based on QC parser)

2012-10-12 Thread Michael Roth
Adds an abstract Lexer class to handle tokenizer via a peek/pop/peekline/popline interface, along with an implementation for C based on the lexer from qc.git Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- scripts/lexer.py | 306 ++

[Qemu-devel] [PATCH 2/4] exec: Don't make DEFAULT_CODE_GEN_BUFFER_SIZE too large

2012-10-12 Thread Richard Henderson
For ARM we cap the buffer size to 16MB. Do not allocate 32MB in that case. Signed-off-by: Richard Henderson --- exec.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exec.c b/exec.c index db735dd..386cc08 100644 --- a/exec.c +++ b/exec.c @@ -529,7 +529,11 @@ bool memor

[Qemu-devel] [PATCH 4/4] exec: Allocate code_gen_prologue from code_gen_buffer

2012-10-12 Thread Richard Henderson
We had a hack for arm and sparc, allocating code_gen_prologue to a special section. Which, honestly does no good under certain cases. We've already got limits on code_gen_buffer_size to ensure that all TBs can use direct branches between themselves; reuse this limit to ensure the prologue is also

[Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-12 Thread Richard Henderson
It now consists of: A macro definition of MAX_CODE_GEN_BUFFER_SIZE with host-specific values, A function size_code_gen_buffer that applies most of the reasoning for choosing a buffer size, Three variations of a function alloc_code_gen_buffer that contain all of the logic for allocating executabl

[Qemu-devel] [PATCH 3/4] exec: Do not use absolute address hints for code_gen_buffer with -fpie

2012-10-12 Thread Richard Henderson
The hard-coded addresses inside alloc_code_gen_buffer only make sense if we're building an executable that will actually run at the address we've put into the linker scripts. When we're building with -fpie, the executable will run at some random location chosen by the kernel. We get better placem

[Qemu-devel] [PATCH v3 0/4] Better allocation of code_gen_buffer with -fpie

2012-10-12 Thread Richard Henderson
This revision of the patch set takes Blue's suggestion to split up code_gen_alloc into several pieces. It does seem to clean things up a bit. The first patch is cleanup, doing the split. The third patch does in one line what I was trying to accomplish with the first revision of this patch. The

[Qemu-devel] [PATCH v4 25/26] qidl: qidl.h, definitions for qidl annotations

2012-10-12 Thread Michael Roth
Signed-off-by: Michael Roth --- qidl.h | 105 1 file changed, 105 insertions(+) create mode 100644 qidl.h diff --git a/qidl.h b/qidl.h new file mode 100644 index 000..b4c9b02 --- /dev/null +++ b/qidl.h @@ -0,0 +1,105 @@ +/*

[Qemu-devel] [PATCH v4 24/26] qidl: add QAPI-based code generator

2012-10-12 Thread Michael Roth
This takes the declarations generated by the QIDL parser and converts them to QAPI schemas to generate the visitor routines and other supporting code for QIDL. Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- scripts/qidl.py | 290 +

[Qemu-devel] [PATCH v4 20/26] qdev: move Property-related declarations to qdev-properties.h

2012-10-12 Thread Michael Roth
Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- hw/qdev-properties.h | 151 ++ hw/qdev.h| 126 + 2 files changed, 152 insertions(+), 125 deletions(-) create mode 100644 hw/qdev-prope

[Qemu-devel] [PATCH v4 16/26] qapi: Improve existing docs and document annotated QAPI types

2012-10-12 Thread Michael Roth
Signed-off-by: Michael Roth --- docs/qapi-code-gen.txt | 251 +--- 1 file changed, 237 insertions(+), 14 deletions(-) diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index cccb11e..d3ca74a 100644 --- a/docs/qapi-code-gen.txt +++ b/docs/q

[Qemu-devel] [PATCH v4 18/26] qom-fuse: workaround for truncated properties > 4096

2012-10-12 Thread Michael Roth
We currently hard-code property size at 4096 for the purposes of getattr()/stat()/etc. For 'state' properties we can exceed this easily, leading to truncated responses. Instead, for a particular property, make it max(4096, most_recent_property_size * 2). This allows some head-room for properties t

[Qemu-devel] [PATCH v4 14/26] qapi: qapi.py, make json parser more robust

2012-10-12 Thread Michael Roth
Currently the QAPI JSON parser expects a very particular style of code indentation, the major one being that terminating curly/square brackets are not on placed on a seperate line. This is incompatible with most pretty-print formats, so make it a little more robust by supporting these cases. Also

[Qemu-devel] [PATCH v4 17/26] qom-fuse: force single-threaded mode to avoid QMP races

2012-10-12 Thread Michael Roth
python-fuse defaults to multi-threaded handling of filesystem calls. In the case of QOM this can lead to threads reading QMP responses to requests executed by other threads, causing all sorts of strangeness when interacting with QOM mounts. For instance: mdroth@loki:~/w/qom$ ls -l machine | grep

[Qemu-devel] [PATCH v4 15/26] qapi: add open-coded visitor for struct tm types

2012-10-12 Thread Michael Roth
Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- qapi/Makefile.objs |1 + qapi/misc-qapi-visit.c | 14 ++ qapi/qapi-visit-core.h |3 +++ 3 files changed, 18 insertions(+) create mode 100644 qapi/misc-qapi-visit.c diff --git a/qa

[Qemu-devel] [PATCH v4 06/26] qapi: qapi_visit.py, support generating static functions

2012-10-12 Thread Michael Roth
qidl embeds visitor code into object files rather than linking against seperate files, so allow for static declarations when we're using qapi_visit.py as a library as we do with qidl.py Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- scripts/qapi_visit.p

[Qemu-devel] [PATCH v4 10/26] qapi: QmpInputVisitor, implement array handling

2012-10-12 Thread Michael Roth
Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- qapi/qmp-input-visitor.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp-input-visitor.c index 107d8d3..635106e 100644 --- a/qapi/qmp-input-visitor.c +++ b/qapi/qm

[Qemu-devel] [PATCH v4 02/26] qapi: qapi-types.py -> qapi_types.py

2012-10-12 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-types.py => qapi_types.py} |0 tests/Makefile

[Qemu-devel] [PATCH v4 00/26] Add infrastructure for QIDL-based device serialization

2012-10-12 Thread Michael Roth
These patches are based are origin/master, and can also be obtained from: git://github.com/mdroth/qemu.git qidl-base-v4 Changes since v3: - Added documentation for array_capacity/array_size/embedded QAPI directives and improved existing docs. (Paolo) > qapi: Improve existing docs and do

Re: [Qemu-devel] [PATCH] targphys.h: Don't define target_phys_addr_t for user-mode emulators

2012-10-12 Thread Andreas Färber
Am 12.10.2012 19:59, schrieb Peter Maydell: > Commit 4be403c accidentally defined the target_phys_addr_t type when > building user-mode emulators. Since the type doesn't really make > any sense except for system emulators, avoid defining it when building > in user mode. > > Signed-off-by: Peter Ma

Re: [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()

2012-10-12 Thread Richard Henderson
On 10/12/2012 11:24 AM, riku.voi...@linaro.org wrote: > From: Riku Voipio > > Currently linux-user handles system calls with a 3000+ line switch/case > construct > in do_syscall(). Some syscalls are implemented inline in the switch/case, > others > as separate functions, and the rest as mix of

[Qemu-devel] [PATCH v7 03/17] target-i386: Add Hypervisor features.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as kvm festures or Hypervisor vendor-neutral interface identification. This is the EAX value for 0x4001. QEMU knows this is KVM_CPUID_FEATURES (0x4001) in some builds. This is based on: Microsoft Hypervisor CPUID Leaves:

[Qemu-devel] [PATCH v7 14/17] target-i386: Add vmare as a known name to Hypervisor vendor.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also adds some other known names (kvm, hyperv) to Hypervisor vendor. This allows "hypervisor-vendor=vmware3" instead of "hypervisor-vendor=VMwareVMware,hypervisor-level=2,hypervisor-features=0". And "hypervisor-vendor=vmware" instead of "hype

[Qemu-devel] [PATCH v7 09/17] target-i386: Use x86_set_hyperv to set hypervisor features.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" At this stage it is used to set the cpu object's hypervisor features to the default for Microsoft's Hypervisor ("Hv#1"). Also known as kvm festures or Hypervisor vendor-neutral interface identification. This is the EAX value for 0x4001.

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-12 Thread Eric Blake
On 10/12/2012 02:19 PM, Kashyap Chamarthy wrote: > > From eb4c4bc92c035c42c23c30c5e7ee73b54f9cf3a8 Mon Sep 17 00:00:00 2001 > From: Kashyap Chamarthy > Date: Sat, 13 Oct 2012 01:30:37 +0530 > Subject: [PATCH] Add documentation for 'qemu-img info --backing-chain' > > Signed-off-by: Kashyap Chama

[Qemu-devel] [PATCH v7 01/17] target-i386: Add Hypervisor level.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization level or maximim cpuid function present in this leaf. This is the EAX value for 0x4000. QEMU knows this is KVM_CPUID_SIGNATURE (0x4000). This is based on: Microsoft Hypervisor CPUID Leaves: http:/

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-12 Thread Kashyap Chamarthy
On Sat, Oct 13, 2012 at 12:46 AM, Kashyap Chamarthy wrote: > On Fri, Oct 12, 2012 at 7:39 PM, Stefan Hajnoczi wrote: >> The qemu-img info --backing-chain option enumerates the backing file >> chain. For example, for base.qcow2 <- snap1.qcow2 <- snap2.qcow2 the >> output becomes: >> >> $ qemu-i

[Qemu-devel] [PATCH v7 16/17] target-i386: Use Hypervisor vendor in -machine pc, accel=tcg.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization vendor. This change is based on: Microsoft Hypervisor CPUID Leaves: http://msdn.microsoft.com/en-us/library/windows/hardware/ff542428%28v=vs.85%29.aspx Linux kernel change starts with: http://fixunix.com

[Qemu-devel] [PATCH v7 11/17] target-i386: Use Hypervisor vendor in -machine pc, accel=kvm.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization vendor. This is EBX, ECX, and EDX data for 0x4000. QEMU knows this is KVM_CPUID_SIGNATURE (0x4000). If hypervisor vendor is set then add kvm's signature at KVM_CPUID_SIGNATURE_NEXT (0x4100). Signe

[Qemu-devel] [PATCH v7 13/17] target-i386: Add VMWare CPUID Timing information in -machine pc, accel=kvm.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" This is EAX and EBX data for 0x4010. Add new #define CPUID_HV_TIMING_INFO for this. The best documentation I have found is: http://article.gmane.org/gmane.comp.emulators.kvm.devel/22643 And a test under ESXi 4.0 shows that VMware is s

[Qemu-devel] [PATCH v7 12/17] target-i386: Use Hypervisor features in -machine pc, accel=kvm.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" QEMU knows this as KVM_CPUID_FEATURES (0x4001) in some builds. If hypervisor features are set, then pass adjusted cpuid_kvm_features as EAX in 0x4101. This is based on: Microsoft Hypervisor CPUID Leaves: http://msdn.microsoft.com/

[Qemu-devel] [PATCH v7 17/17] target-i386: target-i386: Add VMWare CPUID Timing information in -machine pc, accel=tcg

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" This is EAX and EBX data for 0x4010. Add new #define CPUID_HV_TIMING_INFO for this. The best documentation I have found is: http://article.gmane.org/gmane.comp.emulators.kvm.devel/22643 And a test under ESXi 4.0 shows that VMware is s

[Qemu-devel] [PATCH v7 08/17] target-i386: Use x86_set_hyperv to set hypervisor vendor.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" At this stage it is used to set the cpu object's hypervisor vendor to the default for Microsoft's Hypervisor ("Microsoft Hv"). Also known as Paravirtualization vendor. This is EBX, ECX, EDX data for 0x4000. QEMU knows this is KVM_CPUID_SI

[Qemu-devel] [PATCH v7 07/17] target-i386: Add x86_set_hyperv.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" At this stage it is used to set the cpu object's hypervisor level to the default for Microsoft's Hypervisor. Also known as Paravirtualization level or maximim cpuid function present in this leaf. This is the EAX value for 0x4000. This is

[Qemu-devel] [PATCH v7 06/17] target-i386: Add cpu object access routines for Hypervisor features.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as kvm festures or Hypervisor vendor-neutral interface identification. This is just the EAX value for 0x4001. QEMU knows this is KVM_CPUID_FEATURES (0x4001) in some builds. When exposing VMWare CPUID this needs to be set t

[Qemu-devel] [PATCH v7 15/17] target-i386: Use Hypervisor level in -machine pc, accel=tcg.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization level. QEMU knows this as KVM_CPUID_SIGNATURE (0x4000) in kvm on linux. This does not provide vendor support in tcg yet. >From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html kvm has this

[Qemu-devel] [PATCH v7 05/17] target-i386: Add cpu object access routines for Hypervisor vendor.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" These are modeled after x86_cpuid_set_vendor and x86_cpuid_get_vendor. Since kvm's vendor is shorter, the test for correct size is removed and zero padding is added. See http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html for d

[Qemu-devel] [PATCH v7 04/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/t

[Qemu-devel] [PATCH v7 10/17] target-i386: Use Hypervisor level in -machine pc, accel=kvm.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization level. QEMU knows this is KVM_CPUID_SIGNATURE (0x4000). Signed-off-by: Don Slutz --- target-i386/kvm.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/

[Qemu-devel] [PATCH v7 02/17] target-i386: Add Hypervisor vendor.

2012-10-12 Thread Don Slutz
Part of "target-i386: Add way to expose VMWare CPUID" Also known as Paravirtualization vendor. This is EBX, ECX, and EDX data for 0x4000. QEMU knows this is KVM_CPUID_SIGNATURE (0x4000). This is based on: Microsoft Hypervisor CPUID Leaves: http://msdn.microsoft.com/en-us/library/wind

[Qemu-devel] [PATCH v7 00/17] target-i386: Add way to expose VMWare CPUID

2012-10-12 Thread Don Slutz
Also known as Paravirtualization CPUIDs. This is primarily done so that the guest will think it is running under vmware when hypervisor-vendor=vmware is specified as a property of a cpu. Patches 1 to 3 define new cpu properties. Patches 4 to 6 Add QOM access to the new properties. Patches 7 to 9

[Qemu-devel] [PATCH v7 0/1] target-i386: Add missing kvm bits.

2012-10-12 Thread Don Slutz
This was part of [PATCH v6 00/16] Allow changing of Hypervisor CPUIDs. Since it is no longer in use by any of the patches in v7, I have split it off. Don Slutz (1): target-i386: Add missing kvm bits. target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH v7 1/1] target-i386: Add missing kvm bits.

2012-10-12 Thread Don Slutz
Currently "-cpu host,-kvmclock,-kvm_nopiodelay,-kvm_mmu" does not turn off all bits in CPUID 0x4001 EAX. The missing ones are KVM_FEATURE_STEAL_TIME and KVM_FEATURE_CLOCKSOURCE_STABLE_BIT. This adds the names kvm_steal_time and kvm_clock_stable for these bits. Signed-off-by: Don Slutz ---

Re: [Qemu-devel] [PULL 0/3] Trivial patches for 6 to 12 October 2012

2012-10-12 Thread Anthony Liguori
Stefan Hajnoczi writes: > The following changes since commit b4ae3cfa57b8c1bdbbd7b7d420971e9171203ade: > > ssi: Add slave autoconnect helper (2012-10-10 11:13:32 +1000) > > are available in the git repository at: > > git://github.com/stefanha/qemu.git trivial-patches Pulled. Thanks. Regards

Re: [Qemu-devel] [PULL 0/9] arm-devs queue

2012-10-12 Thread Anthony Liguori
Peter Maydell writes: > Hi; this is a pullreq for the arm-devs queue. Contains my fix for > the various DS1338 bugs plus some other minor patches from various > people; please pull. Pulled. Thanks. Regards, Anthony Liguori > > thanks > -- PMM > > The following changes since commit b4ae3cfa57b

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-12 Thread Kashyap Chamarthy
On Fri, Oct 12, 2012 at 7:39 PM, Stefan Hajnoczi wrote: > The qemu-img info --backing-chain option enumerates the backing file > chain. For example, for base.qcow2 <- snap1.qcow2 <- snap2.qcow2 the > output becomes: > > $ qemu-img info --backing-chain snap2.qcow2 > image: snap2.qcow2 > file

[Qemu-devel] [Bug 1065325] Re: qemu-system-arm hangs on SIGUSR1 on OS X 10.8.2

2012-10-12 Thread Oliver
One more follow up. Using the standard startup.c with just a while(1) {} loop yields the same problem. Has anyone got a regression test for the -M lm3s811evb that I can run? I might be able to see what's different with the TI code that is causing the SIGUSR1. Oliver -- You received this bug n

[Qemu-devel] [Bug 1065325] Re: qemu-system-arm hangs on SIGUSR1 on OS X 10.8.2

2012-10-12 Thread Oliver
To follow up, I think this bug might be a problem with the stellaris branch of the code. I compiled the very simple gpio_led example, and this crashes with the SIGUSR1 as well. Oliver -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [PATCH v7 0/1] target-i386: Add missing kvm bits.

2012-10-12 Thread Don Slutz
This was part of [PATCH v6 00/16] Allow changing of Hypervisor CPUIDs. Since it is no longer in use by any of the patches in v7, I have split it off. Don Slutz (1): target-i386: Add missing kvm bits. target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH 1/5] linux-user: move exit to own function

2012-10-12 Thread riku . voipio
From: Riku Voipio In preparations for for refactoring the main switch/case out Signed-off-by: Riku Voipio --- linux-user/syscall.c | 92 ++ 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscal

[Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()

2012-10-12 Thread riku . voipio
From: Riku Voipio Currently linux-user handles system calls with a 3000+ line switch/case construct in do_syscall(). Some syscalls are implemented inline in the switch/case, others as separate functions, and the rest as mix of both. As the first step of the cleanup, I'd like to move implementat

[Qemu-devel] [PATCH 4/5] linux-user: complete do_open function isolation

2012-10-12 Thread riku . voipio
From: Riku Voipio In preparations for for refactoring the main switch/case out Signed-off-by: Riku Voipio --- linux-user/syscall.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a9bfe8c.

[Qemu-devel] [PATCH 5/5] linux-user: do_openat wrapper added

2012-10-12 Thread riku . voipio
From: Riku Voipio In preparations for for refactoring the main switch/case out Signed-off-by: Riku Voipio --- linux-user/syscall.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index eebf219..61030f2 100

[Qemu-devel] [PATCH 2/5] linux-user: move read to own function

2012-10-12 Thread riku . voipio
From: Riku Voipio In preparations for for refactoring the main switch/case out Signed-off-by: Riku Voipio --- linux-user/syscall.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0b077e7..497cae5

[Qemu-devel] [PATCH 3/5] linux-user: move write to own function

2012-10-12 Thread riku . voipio
From: Riku Voipio In preparations for for refactoring the main switch/case out Signed-off-by: Riku Voipio --- linux-user/syscall.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 497cae5..a9bfe8c 100644 --

[Qemu-devel] [PATCH] target-arm/neon_helper: Remove obsolete FIXME comment

2012-10-12 Thread Peter Maydell
Commit 33ebc29 fixed the bugs in the implementation of VQRSHL, but forgot to remove the FIXME comment... Signed-off-by: Peter Maydell --- target-arm/neon_helper.c |1 - 1 file changed, 1 deletion(-) diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c index 8bb5129..9aa920d 1006

Re: [Qemu-devel] [PATCH] net: Allow specifying ifname for qemu-bridge-helper

2012-10-12 Thread Mike Lovell
On 10/12/2012 02:32 AM, Michael Tokarev wrote: On 12.10.2012 10:49, Mike Lovell wrote: /* request a tap device, disable PI, and add vnet header support if - * requested and it's available. */ -prep_ifreq(&ifr, "tap%d"); + * requested and it's available. use ifname if provided f

[Qemu-devel] [PATCH] targphys.h: Don't define target_phys_addr_t for user-mode emulators

2012-10-12 Thread Peter Maydell
Commit 4be403c accidentally defined the target_phys_addr_t type when building user-mode emulators. Since the type doesn't really make any sense except for system emulators, avoid defining it when building in user mode. Signed-off-by: Peter Maydell --- cf brief discussion earlier: http://lists.gnu

Re: [Qemu-devel] [PATCH 11/41] ram: Export last_ram_offset()

2012-10-12 Thread Anthony Liguori
Juan Quintela writes: > Is the only way of knowing the RAM size. > > Signed-off-by: Juan Quintela > > Reviewed-by: Paolo Bonzini > --- > cpu-all.h | 2 ++ > exec.c| 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/cpu-all.h b/cpu-all.h > index 74d3681..5408782 10064

[Qemu-devel] [Bug 1066055] [NEW] Network performance regression with vde_switch

2012-10-12 Thread Edivaldo de Araujo Pereira
Public bug reported: I've noticed a significant network performance regression when using vde_switch, starting about one week ago (10/05/2012); before that date, I used to get about 1.5 Gbits host to guest, but now I can only get about 320 Mbits; I didn't find any modification in net/vde.*, just i

Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support.

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 18:54, Paolo Bonzini ha scritto: > Il 12/10/2012 14:39, Gerd Hoffmann ha scritto: >> +chr = qemu_chr_new_from_opts(opts, NULL); >> +if (chr == NULL) { >> +qemu_opts_del(opts); >> +error_setg(&err, "Creating chardev failed\n"); >> +goto exit_err; >> +

Re: [Qemu-devel] [PATCH 0/2] tcg/arm: Implement movcond_i32

2012-10-12 Thread Peter Maydell
On 26 September 2012 19:48, Peter Maydell wrote: > These patches implement movcond_i32 for the ARM TCG backend; we > emit "mov dst, v2; cmp c1, c2; movcc dst, v1". We could have > done this with a pair of conditional movs, but (a) this is not > actually any shorter (b) it means we don't get the co

Re: [Qemu-devel] [PATCH 2/2] qemu-iotests: Test qemu-img operation on zero size image

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 14:31, Kevin Wolf ha scritto: > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/041 | 78 > > tests/qemu-iotests/041.out | 15 > tests/qemu-iotests/group |1 + > 3 files changed, 94 insertions(+), 0 deletions(

Re: [Qemu-devel] [PATCH 1/2] qemu-img: Fix division by zero for zero size images

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 14:31, Kevin Wolf ha scritto: > Signed-off-by: Kevin Wolf > --- > qemu-img.c | 23 +++ > 1 files changed, 15 insertions(+), 8 deletions(-) > > diff --git a/qemu-img.c b/qemu-img.c > index f17f187..849eb41 100644 > --- a/qemu-img.c > +++ b/qemu-img.c > @@ -674,

Re: [Qemu-devel] [PATCH] qemu-timer: Check for usable fields for SIGEV_THREAD_ID

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 18:26, Richard Henderson ha scritto: > Older glibc (RHEL 5.x, Debian 5.x) does not have the _sigev_un._tid > member in its structure definition, while the accompanying kernel > headers do define SIGEV_THREAD_ID. We need configure to check for > both before using it. > > Cc: Paolo Bo

Re: [Qemu-devel] [PATCH v2] chardev: add hotplug support.

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 14:39, Gerd Hoffmann ha scritto: > +chr = qemu_chr_new_from_opts(opts, NULL); > +if (chr == NULL) { > +qemu_opts_del(opts); > +error_setg(&err, "Creating chardev failed\n"); > +goto exit_err; > +} > +return 0; > + Since you have to do a v3, ple

[Qemu-devel] [PATCH] qemu-timer: Check for usable fields for SIGEV_THREAD_ID

2012-10-12 Thread Richard Henderson
Older glibc (RHEL 5.x, Debian 5.x) does not have the _sigev_un._tid member in its structure definition, while the accompanying kernel headers do define SIGEV_THREAD_ID. We need configure to check for both before using it. Cc: Paolo Bonzini Cc: Anthony Liguori Signed-off-by: Richard Henderson -

Re: [Qemu-devel] [PULL 0/8] spice patch queue

2012-10-12 Thread Anthony Liguori
Gerd Hoffmann writes: > Hi, > > Here comes the spice patch queue. It raises the minimal required > spice-server version to 0.12 and the qxl device revision to 4. > It also brings a collection of bugfixes. > > please pull, > Gerd > Pulled. Thanks. Regards, Anthony Liguori > The following

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

2012-10-12 Thread Anthony Liguori
Stefan Hajnoczi writes: > The following changes since commit 4bb26682f70a5f626cad3e0ac82bf4b6252ea7a4: > > Merge branch 'master' of git.qemu.org:/pub/git/qemu (2012-10-07 18:42:18 > +) > > are available in the git repository at: > > > git://github.com/stefanha/qemu.git net > > for you to

Re: [Qemu-devel] [PULL] vfio-pci tree 20121008

2012-10-12 Thread Anthony Liguori
Alex Williamson writes: > Anthony, > > The following changes since commit 4bb26682f70a5f626cad3e0ac82bf4b6252ea7a4: > > Merge branch 'master' of git.qemu.org:/pub/git/qemu (2012-10-07 18:42:18 > +) > > are available in the git repository at: > > > git://github.com/awilliam/qemu-vfio.git

Re: [Qemu-devel] [PULL 0/3] usb patch queue

2012-10-12 Thread Anthony Liguori
Gerd Hoffmann writes: > Hi, > > Pretty small this time with just a few bugfixes. > > please pull, > Gerd > Pulled. Thanks. Regards, Anthony Liguori > The following changes since commit b4ae3cfa57b8c1bdbbd7b7d420971e9171203ade: > > ssi: Add slave autoconnect helper (2012-10-10 11:13:32 +

Re: [Qemu-devel] [PATCH] isapc: Shadow ISA BIOS by default

2012-10-12 Thread Anthony Liguori
Jan Kiszka writes: > On 2012-10-12 15:41, Anthony Liguori wrote: >> Jan Kiszka writes: >> >>> On 2012-10-08 20:52, Anthony Liguori wrote: Jan Kiszka writes: > On 2012-09-11 17:53, Jan Kiszka wrote: >> Our one and only BIOS depends on a writable shadowed BIOS in the ISA >>

Re: [Qemu-devel] [PATCH v2 21/21] q35: add acpi-based pci hotplug.

2012-10-12 Thread Jason Baron
On Fri, Oct 12, 2012 at 12:06:44PM +0200, Gerd Hoffmann wrote: > Hi, > > >>> I just tried out getting rid of the bridges by default. > >> > >> That clearly raises the question which devices should be created > >> automatically by -M q35. I think the devices which are part of the ich9 > >> chips

Re: [Qemu-devel] [PATCH] isapc: Shadow ISA BIOS by default

2012-10-12 Thread Jan Kiszka
On 2012-10-12 15:41, Anthony Liguori wrote: > Jan Kiszka writes: > >> On 2012-10-08 20:52, Anthony Liguori wrote: >>> Jan Kiszka writes: >>> On 2012-09-11 17:53, Jan Kiszka wrote: > Our one and only BIOS depends on a writable shadowed BIOS in the ISA > range. As we have no interface

Re: [Qemu-devel] fixing qemu-0.1X endless loop in qcow2_alloc_cluster_offset

2012-10-12 Thread Andreas Färber
Am 12.06.2012 15:44, schrieb Kevin Wolf: > Am 12.06.2012 15:33, schrieb Andreas Färber: >> Am 14.05.2012 14:20, schrieb Kevin Wolf: >>> Am 13.05.2012 10:03, schrieb Zhouyi Zhou: hi all sometimes, qemu/kvm-0.1x will hang in endless loop in qcow2_alloc_cluster_offset.

Re: [Qemu-devel] [PATCH v2 21/21] q35: add acpi-based pci hotplug.

2012-10-12 Thread Jason Baron
On Thu, Oct 11, 2012 at 10:40:04PM +0200, Michael S. Tsirkin wrote: > > Windows and Linux guests seem fine with either layout. Slots 1-2 are > > specific to my setup. So this is a pretty minimal set. > > I guess we can remove the PCI bridge too? > maybe. Perhaps, we can have a very basic set of

[Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-12 Thread Stefan Hajnoczi
The qemu-img info --backing-chain option enumerates the backing file chain. For example, for base.qcow2 <- snap1.qcow2 <- snap2.qcow2 the output becomes: $ qemu-img info --backing-chain snap2.qcow2 image: snap2.qcow2 file format: qcow2 virtual size: 100M (104857600 bytes) disk size: 196

  1   2   >