Re: [Qemu-devel] [PATCH v18 1/2] sPAPR: Implement EEH RTAS calls

2015-02-19 Thread Gavin Shan
On Wed, Feb 18, 2015 at 07:28:29PM -0600, Michael Roth wrote: >Quoting Gavin Shan (2015-02-15 23:32:09) >> On Mon, Feb 16, 2015 at 12:52:48PM +1100, David Gibson wrote: >> >On Mon, Feb 16, 2015 at 10:16:01AM +1100, Gavin Shan wrote: >> >> The emulation for EEH RTAS requests from guest isn't covered

Re: [Qemu-devel] [PATCH v7 11/25] qcow2: refcount_order parameter for qcow2_create2

2015-02-19 Thread Eric Blake
On 02/19/2015 07:01 AM, Max Reitz wrote: >>> @@ -2010,6 +2022,8 @@ static int qcow2_create(const char *filename, >>> QemuOpts *opts, Error **errp) >>> size_t cluster_size = DEFAULT_CLUSTER_SIZE; >>> PreallocMode prealloc; >>> int version = 3; >>> +uint64_t refcount_bits = 16;

Re: [Qemu-devel] [PATCH v7 14/25] qcow2: Allow creation with refcount order != 4

2015-02-19 Thread Eric Blake
On 02/18/2015 03:40 PM, Max Reitz wrote: > Add a creation option to qcow2 for setting the refcount order of images > to be created, and respect that option's value. > > This breaks some test outputs, fix them. > > Signed-off-by: Max Reitz > --- > block/qcow2.c | 18 > inc

Re: [Qemu-devel] [PATCH v7 15/25] iotests: Add test for different refcount widths

2015-02-19 Thread Eric Blake
On 02/18/2015 03:40 PM, Max Reitz wrote: > Add a test for errors specific to certain widths (i.e. snapshots with > refcount_bits=1). > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/112 | 187 > + > tests/qemu-iotests/112.out | 84

Re: [Qemu-devel] [PATCH v7 25/25] iotests: Extend test 112 for qemu-img amend

2015-02-19 Thread Eric Blake
On 02/18/2015 03:41 PM, Max Reitz wrote: > Add tests for conversion between different refcount widths. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/112 | 109 > + > tests/qemu-iotests/112.out | 71 + > 2 fil

Re: [Qemu-devel] [PATCH v18 1/2] sPAPR: Implement EEH RTAS calls

2015-02-19 Thread David Gibson
On Fri, Feb 20, 2015 at 09:50:45AM +1100, Gavin Shan wrote: > On Wed, Feb 18, 2015 at 07:28:29PM -0600, Michael Roth wrote: > >Quoting Gavin Shan (2015-02-15 23:32:09) > >> On Mon, Feb 16, 2015 at 12:52:48PM +1100, David Gibson wrote: > >> >On Mon, Feb 16, 2015 at 10:16:01AM +1100, Gavin Shan wrote

Re: [Qemu-devel] [PATCH 00/11] target-aarch64 fix and improvments

2015-02-19 Thread Peter Maydell
On 20 February 2015 at 06:14, Richard Henderson wrote: > While doing the mechanics of a previous patch set converting > translators to use to TCGLabel pointers, I was reminded of > several outstanding OPTME comments in the aarch64 translator. > > I had started with the csel change, which at first

[Qemu-devel] [PATCH 1/6 v3] target-tilegx: Firstly add to qemu with minimized features

2015-02-19 Thread Chen Gang S
It almost likes a template for adding an architecture target. Signed-off-by: Chen Gang --- configure | 7 ++ default-configs/tilegx-linux-user.mak | 1 + target-tilegx/Makefile.objs | 1 + target-tilegx/cpu-qom.h | 72 +++ ta

[Qemu-devel] [PATCH 0/6 v3] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-19 Thread Chen Gang S
After load elf64 tilegx binary for linux-user, the working flow reaches 1st correct instruction "__start". Next, we shall load all instructions for qemu using. This patch is based on Linux kernel tile architecture tilegx 64-bit implementation, and also based on tilegx architecture ABI reference.

[Qemu-devel] [PATCH 4/6 v3] linux-user: Support tilegx architecture in syscall

2015-02-19 Thread Chen Gang S
Add tilegx architecture in "syscall_defs.h", all related features (ioctrl, and stat) are based on Linux kernel tilegx 64-bit implementation. Signed-off-by: Chen Gang --- linux-user/syscall_defs.h | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PATCH 3/6 v3] linux-user: tilegx: Add target features support within qemu

2015-02-19 Thread Chen Gang S
They are for target features within qemu which independent from outside. Signed-off-by: Chen Gang --- linux-user/tilegx/target_cpu.h | 35 +++ linux-user/tilegx/target_signal.h | 28 ++ linux-user/tilegx/target_structs.h | 48 +

[Qemu-devel] [PATCH 5/6 v3] linux-user: Support tilegx architecture in linux-user

2015-02-19 Thread Chen Gang S
Add main working flow feature and loading elf64 tilegx binary feature, based on Linux kernel tilegx 64-bit implementation. After this patch, qemu can successfully load elf64 tilegx binary for linux-user, and the working flow reaches the first correct instruction position "__start". Signed-off-by:

[Qemu-devel] [PATCH 6/6 v3] linux-user/syscall.c: Switch all macros which are not defined in tilegx

2015-02-19 Thread Chen Gang S
For tilegx, several syscall macros are not supported, so switch them to avoid building break. Signed-off-by: Chen Gang --- linux-user/syscall.c | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user

[Qemu-devel] [PATCH 2/6 v3] linux-user: tilegx: Firstly add architecture related features

2015-02-19 Thread Chen Gang S
They are based on Linux kernel tilegx architecture for 64 bit binary, also based on tilegx ABI reference document. Signed-off-by: Chen Gang --- linux-user/tilegx/syscall.h| 80 linux-user/tilegx/syscall_nr.h | 278 linux-user/tilegx/term

Re: [Qemu-devel] [PATCH 15/16] ipmi: Add ACPI table entries for BMCs

2015-02-19 Thread Corey Minyard
On 02/18/2015 08:54 PM, Benjamin Herrenschmidt wrote: > On Fri, 2014-12-12 at 13:15 -0600, miny...@acm.org wrote: >> From: Corey Minyard >> >> Use the new ACPI table construction tools to create an ACPI >> entry for IPMI. > Same question as for the smbios business... Can this be made optional > po

Re: [Qemu-devel] [Qemu-ppc] [PATCH v18 1/2] sPAPR: Implement EEH RTAS calls

2015-02-19 Thread Gavin Shan
On Fri, Feb 20, 2015 at 10:40:53AM +1100, David Gibson wrote: >On Fri, Feb 20, 2015 at 09:50:45AM +1100, Gavin Shan wrote: >> On Wed, Feb 18, 2015 at 07:28:29PM -0600, Michael Roth wrote: >> >Quoting Gavin Shan (2015-02-15 23:32:09) >> >> On Mon, Feb 16, 2015 at 12:52:48PM +1100, David Gibson wrote

[Qemu-devel] [PATCH v19 1/2] sPAPR: Implement EEH RTAS calls

2015-02-19 Thread Gavin Shan
The emulation for EEH RTAS requests from guest isn't covered by QEMU yet and the patch implements them. The patch defines constants used by EEH RTAS calls and adds callbacks sPAPRPHBClass::{eeh_set_option, eeh_get_state, eeh_reset, eeh_configure}, which are going to be used as follows: * RTAS c

[Qemu-devel] [PATCH v19 2/2] sPAPR: Implement sPAPRPHBClass EEH callbacks

2015-02-19 Thread Gavin Shan
The patch implements sPAPRPHBClass EEH callbacks so that the EEH RTAS requests can be routed to VFIO for further handling. Signed-off-by: Gavin Shan Reviewed-by: David Gibson --- hw/ppc/spapr_pci_vfio.c | 115 hw/vfio/common.c| 1 + 2 f

[Qemu-devel] [PATCH v19 0/2] EEH Support for VFIO Devices

2015-02-19 Thread Gavin Shan
The series of patches adds support EEH for VFIO PCI devices on sPAPR platform. It requires corresponding host kernel support, which was merged during 3.17 merge window. This patchset has been rebased to Alex Graf's QEMU repository: git://github.com/agraf/qemu.git (branch: ppc-next) The impleme

[Qemu-devel] [PATCH] target-ppc: Use movcond in isel

2015-02-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-ppc/translate.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) --- Note that this is relative to an outstanding TCG patch set. The full tree is at git://github.com/rth7680/qemu.git ppc-movcond r~ --- diff --g

Re: [Qemu-devel] [Bug 1423668] [NEW] Unable to set scsi drive serial if it contains spaces.

2015-02-19 Thread Markus Armbruster
Alan Latteri writes: > Public bug reported: > > I am virtualzing a physical server for which I need to set the SCSI/SATA > drive serial. It is comprised of 12 " " spaces then 8 letter/digits. > If I exclude the spaces, the drive serial is not accurate. If I include > the spaces I get the follow

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-19 Thread Markus Armbruster
John Snow writes: > On 02/19/2015 02:48 PM, Alan Latteri wrote: >> I am virtualzing a physical server for which I need to set the SCSI/SATA >> drive serial. It is comprised of 12 " " spaces then 8 letter/digits. If >> I exclude the spaces, the drive serial is not accurate. If I include the >> spa

Re: [Qemu-devel] [PATCH v3 1/3] Add -incoming defer

2015-02-19 Thread Markus Armbruster
"Dr. David Alan Gilbert (git)" writes: > From: "Dr. David Alan Gilbert" > > -incoming defer causes qemu to wait for an incoming migration > to be specified later. The monitor can be used to set migration > capabilities that may affect the incoming connection process. > > Signed-off-by: Dr. Davi

<    1   2