Re: [Qemu-devel] Question about QEMU

2018-05-14 Thread Gerd Hoffmann
Hi, > > I have a problem about screen resolution. > > Recommended resolution of my guest OS is 1920x1080. > > If a QEMU window size is 1920x1080, it is clear. > > But, if I change smaller of a QEMU window size, it does not display > > clearly.(ex: 1280x720) > > In this case, QEMU windows size in

[Qemu-devel] [PATCH v2] replace functions which are only available in glib-2.24

2018-05-14 Thread Olaf Hering
Currently the minimal supported version of glib is 2.22. Since testing is done with a glib that claims to be 2.22, but in fact has APIs from newer version of glib, this bug was not caught during submit of the patch referenced below. Replace g_realloc_n, which is available only since 2.24, with g_r

[Qemu-devel] [Bug 1771238] Re: Not able to passthrough > 32 PCIe devices to a KVM Guest

2018-05-14 Thread David Coronel
** Changed in: qemu (Ubuntu) Importance: Critical => High -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1771238 Title: Not able to passthrough > 32 PCIe devices to a KVM Guest Status in QEMU:

Re: [Qemu-devel] [PATCH] replace functions which are only available in glib-2.24

2018-05-14 Thread Olaf Hering
Am Mon, 14 May 2018 23:04:31 -0700 (PDT) schrieb no-re...@patchew.org: > vfio-helpers.c:525:17: error: assignment from incompatible pointer type Does anyone happen to know what s390x is trying to do here? Olaf pgpHBYpHmh42k.pgp Description: Digitale Signatur von OpenPGP

Re: [Qemu-devel] [PATCH] replace functions which are only available in glib-2.24

2018-05-14 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180515055949.6446-1-o...@aepfle.de Subject: [Qemu-devel] [PATCH] replace functions which are only available in glib-2.24 === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invo

[Qemu-devel] [PATCH] replace functions which are only available in glib-2.24

2018-05-14 Thread Olaf Hering
Currently the minimal supported version of glib is 2.22. Since testing is done with a glib that claims to be 2.22, but in fact has APIs from newer version of glib, this bug was not caught during submit of the patch referenced below. Replace g_realloc_n, which is available only since 2.24, with g_r

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 16/17] s390x: initialize memory region for memory devices

2018-05-14 Thread Markus Armbruster
Murilo Opsfelder Araujo writes: > On Sat, May 12, 2018 at 09:53:54AM +0200, David Hildenbrand wrote: >> On 11.05.2018 20:43, Eduardo Habkost wrote: >> > On Fri, May 11, 2018 at 03:34:05PM -0300, Murilo Opsfelder Araujo wrote: >> >> On Fri, May 11, 2018 at 03:19:52PM +0200, David Hildenbrand wrote

[Qemu-devel] [Bug 658904] Re: QEMU refers to VLAN, but doesn't mean 802.1Q

2018-05-14 Thread Thomas Huth
This issue has finally been addressed here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=af1a5c3eb41521b4f090ad61 ** Changed in: qemu Status: New => Fix Released ** Changed in: qemu Status: Fix Released => Fix Committed -- You received this bug notification because you are a me

Re: [Qemu-devel] [PATCH v5 0/2] qmp: 'wakeup-suspend-support' in query-target

2018-05-14 Thread Markus Armbruster
Daniel Henrique Barboza writes: > On 05/14/2018 05:46 AM, Markus Armbruster wrote: >> Markus Armbruster writes: >> >>> Daniel Henrique Barboza writes: >>> Ping >>> Michael, you reviewed v4 (at least in part), can you have a look? >> Have these patches fallen through the cracks? >> > Should

Re: [Qemu-devel] [PATCH 2/2] gdbstub: Handle errors in gdb_accept()

2018-05-14 Thread Thomas Huth
On 14.05.2018 19:30, Peter Maydell wrote: > In gdb_accept(), we both fail to check all errors (notably > that from socket_set_nodelay(), as Coverity notes in CID 1005666), > and fail to return an error status back to our caller. Correct > both of these things, so that errors in accept() result in o

Re: [Qemu-devel] [PATCH 1/2] gdbstub: Use qemu_set_cloexec()

2018-05-14 Thread Thomas Huth
On 14.05.2018 19:30, Peter Maydell wrote: > Use the utility routine qemu_set_cloexec() rather than > manually calling fcntl(). This lets us drop the #ifndef _WIN32 > guards and also means Coverity doesn't complain that we're > ignoring the fcntl error return (CID 1005665, CID 1005667). > > Signed-

Re: [Qemu-devel] Question about QEMU

2018-05-14 Thread Stefan Hajnoczi
On Tue, May 15, 2018 at 2:35 AM, 유원상 wrote: > Thank you for your cooperation. > > I need graphics maintainer's help. > I think, multisampling support of QEMU UI is important for embedded virtual > machine. > > I registered to qemu-devel. > I hope to share a lot of information. > > How can I commen

Re: [Qemu-devel] Restoring bitmaps after failed/cancelled migration

2018-05-14 Thread Fam Zheng
On Mon, 05/14 13:23, Vladimir Sementsov-Ogievskiy wrote: > > So, you agree, that dropping all bitmaps after inactivation is good > > idea.. The second question, is it possible to not drop them? Is there a > > way, to check that disk was not changed after pair of > > inactivate-invalidate? I have an

[Qemu-devel] [Bug 1769053] Re: Cannot start a guest with more than 1TB of RAM

2018-05-14 Thread David Coronel
** Changed in: qemu (Ubuntu) Importance: Undecided => Critical -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1769053 Title: Cannot start a guest with more than 1TB of RAM Status in QEMU: Inco

[Qemu-devel] [Bug 1771238] [NEW] Not able to passthrough > 32 PCIe devices to a KVM Guest

2018-05-14 Thread David Coronel
Public bug reported: Using an Ubuntu Server 16.04-based host with KVM hypervisor installed, we are unable to launch a vanilla Ubuntu Server 16.04.4 guest with >= 32 PCIe devices. It is 100% reproducible. Using fewer PCIe devices works fine. We are using the vanilla kvm and qemu packages from the C

[Qemu-devel] [PATCH v8 2/2] Add QTest testcase for the Intel Hexadecimal Object File Loader.

2018-05-14 Thread Su Hang
'test.hex' file is a bare metal ARM software stored in Hexadecimal Object Format. When it's loaded by QEMU, it will print "Hello world!\n" on console. `pre_store` array in 'hexloader-test.c' file, stores the binary format of 'test.hex' file, which is used to verify correctness. Reviewed-by: Stefa

[Qemu-devel] [PATCH v8 1/2] Implement .hex file loader

2018-05-14 Thread Su Hang
This patch adds Intel Hexadecimal Object File format support to the loader. The file format specification is available here: http://www.piclist.com/techref/fileext/hex/intel.htm The file format is mainly intended for embedded systems and microcontrollers, such as Micro:bit Arduino, ARM, STM32, et

[Qemu-devel] [PATCH v8 0/2] Implement Hex file loader and add test case

2018-05-14 Thread Su Hang
These series of patchs implement Intel Hexadecimal File loader and add QTest testcase to verify the correctness of Loader. v1: -- Basic version. v2: -- Replace `do{}while(cond);` block with `for(;;)` block. v3: -- Add two new files information in MAINTAINERS. v4: -- Correct the 'test.hex' p

[Qemu-devel] Question about io_writex()

2018-05-14 Thread Eva Chen
Hello, I want to know the flow of how devices read/write function be called by code_gen_buffer(). Take pl110_write() for example, I set a breakpoint in pl110_write(), and the backtrace shows bellow. (gdb) #0 * pl110_write* (opaque=0x56e8f3f0, offset=28, val=0, size=4) at hw/display/pl110.c:3

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 02/18] memory-device: introduce separate config option

2018-05-14 Thread Murilo Opsfelder Araujo
On Mon, May 14, 2018 at 12:00:07PM +0200, David Hildenbrand wrote: > Some architectures might support memory devices, while they don't > support DIMM/NVDIMM. So let's > - Rename CONFIG_MEM_HOTPLUG to CONFIG_MEM_DEVICE > - Intriduce CONFIG_DIMM and use it similarly to CONFIG NVDIMM Since you're res

[Qemu-devel] [PATCH v3 5/7] hw/riscv/sifive_u: Set the interrupt controler number of interrupts

2018-05-14 Thread Alistair Francis
Set the interrupt-controller ndev to the correct number taken from the HiFive Unleashed board. Signed-off-by: Alistair Francis Reviewed-by: Michael Clark --- hw/riscv/sifive_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index f

[Qemu-devel] [PATCH v3 6/7] hw/riscv/sifive_u: Move the uart device tree node under /soc/

2018-05-14 Thread Alistair Francis
Signed-off-by: Alistair Francis Reviewed-by: Michael Clark --- hw/riscv/sifive_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index f71527eaff..46459cd368 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -194,7 +194,

[Qemu-devel] [PATCH v3 4/7] hw/riscv/sifive_u: Set the soc device tree node as a simple-bus

2018-05-14 Thread Alistair Francis
To allow Linux to ennumerate devices on the /soc/ node set it as a "simple-bus". Signed-off-by: Alistair Francis --- hw/riscv/sifive_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 3883d7ff9c..f438a72c27 100644 --- a/hw/risc

[Qemu-devel] [PATCH v3 2/7] hw/riscv/sifive_e: Create a SiFive E SoC object

2018-05-14 Thread Alistair Francis
Signed-off-by: Alistair Francis --- hw/riscv/sifive_e.c | 97 +++-- include/hw/riscv/sifive_e.h | 16 +- 2 files changed, 86 insertions(+), 27 deletions(-) diff --git a/hw/riscv/sifive_e.c b/hw/riscv/sifive_e.c index e4ecb7aa4b..384b456540 100644 --- a

[Qemu-devel] [PATCH v3 7/7] hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device

2018-05-14 Thread Alistair Francis
Connect the Cadence GEM ethernet device. This also requires us to expose the plic interrupt lines. Signed-off-by: Alistair Francis Reviewed-by: Michael Clark --- default-configs/riscv32-softmmu.mak | 1 + default-configs/riscv64-softmmu.mak | 1 + hw/riscv/sifive_u.c | 50

[Qemu-devel] [PATCH v3 3/7] hw/riscv/sifive_plic: Use gpios instead of irqs

2018-05-14 Thread Alistair Francis
Instead of creating the interrupt in lines with qemu_allocate_irq() use qdev_init_gpio_in() as this gives us the ability to use the qdev*gpio*() helpers later on. Signed-off-by: Alistair Francis Suggested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Michael Clark

[Qemu-devel] [PATCH v3 1/7] hw/riscv/sifive_u: Create a SiFive U SoC object

2018-05-14 Thread Alistair Francis
Create a SiFive Unleashed U54 SoC and use that in the sifive_u machine. We leave the SoC, RAM, device tree and reset/fdt loading as part of the machine. All the other device creation has been moved to the SoC. Signed-off-by: Alistair Francis Reviewed-by: Michael Clark --- hw/riscv/sifive_u.c

[Qemu-devel] [PATCH v3 0/7] RISC-V: SoCify SiFive boards and connect GEM

2018-05-14 Thread Alistair Francis
This series has three tasks: 1. To convert the SiFive U and E machines into SoCs and boards 2. To connect the Cadence GEM device to the SiFive U board 3. Fix some device tree problems with the SiFive U board After this series the SiFive E and U boards have their SoCs split into seperate QEMU o

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 03/18] qdev: let machine hotplug handler to override bus hotplug handler

2018-05-14 Thread Murilo Opsfelder Araujo
On Mon, May 14, 2018 at 12:00:08PM +0200, David Hildenbrand wrote: > From: Igor Mammedov > > it will allow to return another hotplug handler than the default > one for a specific bus based device type. Which is needed to handle > non trivial plug/unplug sequences that need the access to resources

Re: [Qemu-devel] [PATCH v6 7/9] i386: Add support for CPUID_8000_001E for AMD

2018-05-14 Thread Moger, Babu
> -Original Message- > From: Eduardo Habkost [mailto:ehabk...@redhat.com] > Sent: Monday, May 14, 2018 4:12 PM > To: Moger, Babu > Cc: m...@redhat.com; mar...@redhat.com; pbonz...@redhat.com; > r...@twiddle.net; mtosa...@redhat.com; ge...@hostfission.com; > k...@tripleback.net; qemu-deve

Re: [Qemu-devel] [PATCH v9 3/7] i386: Populate AMD Processor Cache Information for cpuid 0x8000001D

2018-05-14 Thread Moger, Babu
> -Original Message- > From: Eduardo Habkost [mailto:ehabk...@redhat.com] > Sent: Monday, May 14, 2018 2:47 PM > To: Moger, Babu > Cc: m...@redhat.com; marcel.apfelb...@gmail.com; pbonz...@redhat.com; > r...@twiddle.net; mtosa...@redhat.com; qemu-devel@nongnu.org; > k...@vger.kernel.org;

Re: [Qemu-devel] [PATCH 42/42] qemu-iotests: Test job-* with block jobs

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This adds a test case that tests the new job-* QMP commands with > mirror and backup block jobs. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/219 | 201 > tests/qemu-iotests/219.out | 327 > +++

Re: [Qemu-devel] [PATCH 21/42] job: Replace BlockJob.completed with job_is_completed()

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > Since we introduced an explicit status to block job, BlockJob.completed > is redundant because it can be derived from the status. Remove the field > from BlockJob and add a function to derive it from the status at the Job > level. > You're braver than

Re: [Qemu-devel] [PATCH 20/42] job: Move pause/resume functions to Job

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > While we already moved the state related to job pausing to Job, the > functions to do were still BlockJob only. This commit moves them over to > Job. > > Signed-off-by: Kevin Wolf I'm slightly sad about the new callback, because it still seems silly

Re: [Qemu-devel] [PATCH 41/42] iotests: Move qmp_to_opts() to VM

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > qmp_to_opts() used to be a method of QMPTestCase, but recently we > started to add more Python test cases that don't make use of > QMPTestCase. In order to make the method usable there, move it to VM. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotes

Re: [Qemu-devel] [PATCH 19/42] job: Add job_sleep_ns()

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > There is nothing block layer specific about block_job_sleep_ns(), so > move the function to Job. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob_int.h | 11 --- > include/qemu/job.h | 17 + > block/backu

Re: [Qemu-devel] [PATCH 40/42] job: Add query-jobs QMP command

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This adds a minimal query-jobs implementation that shouldn't pose many > design questions. It can later be extended to expose more information, > and especially job-specific information. > > Signed-off-by: Kevin Wolf > --- > qapi/block-core.json | 18

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 16/17] s390x: initialize memory region for memory devices

2018-05-14 Thread Murilo Opsfelder Araujo
On Sat, May 12, 2018 at 09:53:54AM +0200, David Hildenbrand wrote: > On 11.05.2018 20:43, Eduardo Habkost wrote: > > On Fri, May 11, 2018 at 03:34:05PM -0300, Murilo Opsfelder Araujo wrote: > >> On Fri, May 11, 2018 at 03:19:52PM +0200, David Hildenbrand wrote: > >>> While s390x has no real interfa

Re: [Qemu-devel] [PATCH 18/42] job: Move coroutine and related code to Job

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > This commit moves some core functions for dealing with the job coroutine > from BlockJob to Job. This includes primarily entering the coroutine > (both for the first and reentering) and yielding explicitly and at pause > points. > > Signed-off-by: Kevi

[Qemu-devel] [PULL 13/13] target/openrisc: Merge disas_openrisc_insn

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index 1f87ad6b2e..e7c96ca990 100644 --- a/target/openrisc/translat

[Qemu-devel] [PULL 11/13] target/openrisc: Convert dec_compi

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 116 +-- target/openrisc/insns.decode | 12 2 files changed, 70 insertions(+), 58 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.

[Qemu-devel] [PULL 10/13] target/openrisc: Convert dec_comp

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 120 +-- target/openrisc/insns.decode | 15 + 2 files changed, 73 insertions(+), 62 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate

[Qemu-devel] [PULL 07/13] target/openrisc: Convert dec_mac

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 55 +++- target/openrisc/insns.decode | 5 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c

[Qemu-devel] [PULL 05/13] target/openrisc: Convert remainder of dec_misc insns

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 279 +++ target/openrisc/insns.decode | 35 - 2 files changed, 151 insertions(+), 163 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/transla

[Qemu-devel] [PULL 03/13] target/openrisc: Convert branch insns

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 150 +-- target/openrisc/insns.decode | 12 +++ 2 files changed, 84 insertions(+), 78 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c

[Qemu-devel] [PULL 01/13] target-openrisc: Write back result before FPE exception

2018-05-14 Thread Richard Henderson
From: Richard Henderson The architecture manual is unclear about this, but the or1ksim does writeback before the exception. This requires splitting the helpers in half, with the exception raised by the second. Acked-by: Stafford Horne Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Hen

[Qemu-devel] [PULL v2 00/13] target/openrisc: Covert to decodetree.py

2018-05-14 Thread Richard Henderson
Rebased on master to resolve conflicts with Emilio Cota's TranslatorOps patch set. r~ The following changes since commit bbd87423ea0c436c55bbc3f9c23d4f811d1f3f29: Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging (2018-05-14 11:08:16 +0100) are availabl

Re: [Qemu-devel] [PATCH 34/42] job: Add job_dismiss()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This moves block_job_dismiss() to the Job layer. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob.h | 9 - > include/qemu/job.h | 7 ++- > blockdev.c | 8 +--- > blockjob.c | 13

Re: [Qemu-devel] [PATCH 17/42] job: Move defer_to_main_loop to Job

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf Hmm, this one is a bit more than just code motion due to the way the aio_context acquisition has changed. I think at a minimum a good commit message is warranted. > --- > include/block/blockjob.h | 5 > include/b

Re: [Qemu-devel] [PATCH 39/42] job: Add lifecycle QMP commands

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This adds QMP commands that control the transition between states of the > job lifecycle. > > Signed-off-by: Kevin Wolf > --- > qapi/job.json | 112 ++ > job-qmp.c | 140 > ++

[Qemu-devel] [PATCH v5 27/28] fpu/softfloat: Clean up parts_default_nan

2018-05-14 Thread Richard Henderson
Reduce the number of ifdefs. Correct the result for OpenRISC and TriCore (although TriCore fixed in target-specific code). Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/fpu/softfloat-spe

[Qemu-devel] [PULL 12/13] target/openrisc: Convert dec_float

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 356 +-- target/openrisc/insns.decode | 21 +++ 2 files changed, 148 insertions(+), 229 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate

[Qemu-devel] [PATCH v5 24/28] fpu/softfloat: Pass FloatClass to pickNaN

2018-05-14 Thread Richard Henderson
For each operand, pass a single enumeration instead of a pair of booleans. The commit also merges multiple different ifdef-selected implementations of pickNaN into a single function whose body is ifdef-selected. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-speci

[Qemu-devel] [PULL 06/13] target/openrisc: Convert dec_calc

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 322 +++ target/openrisc/insns.decode | 76 ++--- 2 files changed, 229 insertions(+), 169 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/tra

[Qemu-devel] [PATCH v5 23/28] fpu/softfloat: Make is_nan et al available to softfloat-specialize.h

2018-05-14 Thread Richard Henderson
We will need these helpers within softfloat-specialize.h, so move the definitions above the include. After specialization, they will not always be used so mark them to avoid the Werror. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 30 -- 1 file changed, 16

[Qemu-devel] [PULL 08/13] target/openrisc: Convert dec_logic

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 62 +++- target/openrisc/insns.decode | 6 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c

[Qemu-devel] [PULL 04/13] target/openrisc: Convert memory insns

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 275 +-- target/openrisc/insns.decode | 24 +++ 2 files changed, 160 insertions(+), 139 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate

[Qemu-devel] [PATCH v5 22/28] fpu/softfloat: Specialize on snan_bit_is_one

2018-05-14 Thread Richard Henderson
Only MIPS requires snan_bit_is_one to be variable. While we are specializing softfloat behaviour, allow other targets to eliminate this runtime check. Cc: Aurelien Jarno Cc: Yongbok Kim Cc: David Gibson Cc: Alexander Graf Cc: Guan Xuetao Signed-off-by: Richard Henderson --- v5 - do not r

[Qemu-devel] [PULL 02/13] target/openrisc: Start conversion to decodetree.py

2018-05-14 Thread Richard Henderson
Begin with the 0x08 major opcode, the system instructions. Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 84 +-- target/openrisc/Makefile.objs | 9 target/openrisc/insns.decode | 28 3 files chan

[Qemu-devel] [PATCH v5 20/28] fpu/softfloat: Use float*_silence_nan in propagateFloat*NaN

2018-05-14 Thread Richard Henderson
We have already checked the arguments for SNaN; we don't need to do it again. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 44 +- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/fpu/softfloat-spe

[Qemu-devel] [PULL 09/13] target/openrisc: Convert dec_M

2018-05-14 Thread Richard Henderson
Acked-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/translate.c | 41 target/openrisc/insns.decode | 3 +++ 2 files changed, 16 insertions(+), 28 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c

[Qemu-devel] [PATCH v5 28/28] fpu/softfloat: Define floatN_silence_nan in terms of parts_silence_nan

2018-05-14 Thread Richard Henderson
Isolate the target-specific choice to 3 functions instead of 6. The code in floatx80_default_nan tried to be over-general. There are only two targets that support this format: x86 and m68k. Thus there is no point in inventing a mechanism for snan_bit_is_one. Move routines that no longer have if

[Qemu-devel] [PATCH v5 14/28] fpu/softfloat: re-factor float to float conversions

2018-05-14 Thread Richard Henderson
From: Alex Bennée This allows us to delete a lot of additional boilerplate code which is no longer needed. Signed-off-by: Alex Bennée Signed-off-by: Richard Henderson --- v2 - pass FloatFmt to float_to_float instead of sizes - split AHP handling to another patch - use rth's suggested re

[Qemu-devel] [PATCH v5 19/28] target/s390x: Remove floatX_maybe_silence_nan from conversions

2018-05-14 Thread Richard Henderson
This is now handled properly by the generic softfloat code. Cc: Alexander Graf Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/fpu_helper.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/s390x/fpu_helper.c b/target/s390x

[Qemu-devel] [PATCH v5 25/28] fpu/softfloat: Pass FloatClass to pickNaNMulAdd

2018-05-14 Thread Richard Henderson
For each operand, pass a single enumeration instead of a pair of booleans. The commit also merges multiple different ifdef-selected implementations of pickNaNMulAdd into a single function whose body is ifdef-selected. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat

[Qemu-devel] [PATCH v5 26/28] fpu/softfloat: Define floatN_default_nan in terms of parts_default_nan

2018-05-14 Thread Richard Henderson
Isolate the target-specific choice to 2 functions instead of 6. The code in float16_default_nan was only correct for ARM, MIPS, and X86. Though float16 support is rare among our targets. The code in float128_default_nan was arguably wrong for Sparc. While QEMU supports the Sparc 128-bit insns, n

[Qemu-devel] [PATCH v5 16/28] target/m68k: Use floatX_silence_nan when we have already checked for SNaN

2018-05-14 Thread Richard Henderson
Reviewed-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- target/m68k/softfloat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/m68k/softfloat.c b/target/m68k/softfloat.c index e41b07d042..6ec227e20f 100644 --- a/target/m68k/softf

[Qemu-devel] [PATCH v5 15/28] target/hppa: Remove floatX_maybe_silence_nan from conversions

2018-05-14 Thread Richard Henderson
This is now handled properly by the generic softfloat code. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/hppa/op_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/hppa/op_helper.c b/target/hppa/op_helper.c index a3af62daf7..912e8d5be4 100644 --- a/ta

[Qemu-devel] [PATCH v5 21/28] fpu/softfloat: Remove floatX_maybe_silence_nan

2018-05-14 Thread Richard Henderson
These functions are now unused. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 63 -- include/fpu/softfloat.h| 5 --- 2 files changed, 68 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-

[Qemu-devel] [PATCH v5 17/28] target/mips: Remove floatX_maybe_silence_nan from conversions

2018-05-14 Thread Richard Henderson
This is now handled properly by the generic softfloat code. Cc: Aurelien Jarno Cc: Yongbok Kim Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/mips/msa_helper.c | 4 target/mips/op_helper.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/target/mips/msa_help

[Qemu-devel] [PATCH v5 13/28] fpu/softfloat: Partial support for ARM Alternative half-precision

2018-05-14 Thread Richard Henderson
From: Alex Bennée For float16 ARM supports an alternative half-precision format which sacrifices the ability to represent NaN/Inf in return for a higher dynamic range. The new FloatFmt flag, arm_althp, is then used to modify the behaviour of canonicalize and round_canonical with respect to repre

[Qemu-devel] [PATCH v5 10/28] target/arm: convert conversion helpers to fpst/ahp_flag

2018-05-14 Thread Richard Henderson
From: Alex Bennée Instead of passing env and leaving it up to the helper to get the right fpstatus we pass it explicitly. There was already a get_fpstatus helper for neon for the 32 bit code. We also add an get_ahp_flag() for passing the state of the alternative FP16 format flag. This leaves scop

[Qemu-devel] [PATCH v5 07/28] fpu/softfloat: Replace float_class_dnan with parts_default_nan

2018-05-14 Thread Richard Henderson
With a canonical representation of NaNs, we can return the default nan directly rather than delay the expansion until the final format is known. Note one case where we uselessly assigned to a.sign, which was overwritten/ignored later when expanding float_class_dnan. Reviewed-by: Peter Maydell Si

[Qemu-devel] [PATCH v5 18/28] target/riscv: Remove floatX_maybe_silence_nan from conversions

2018-05-14 Thread Richard Henderson
This is now handled properly by the generic softfloat code. Cc: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Reviewed-by: Michael Clark Signed-off-by: Richard Henderson --- target/riscv/fpu_helper.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/targe

[Qemu-devel] [PATCH v5 11/28] target/arm: squash FZ16 behaviour for conversions

2018-05-14 Thread Richard Henderson
From: Alex Bennée The ARM ARM specifies FZ16 is suppressed for conversions. Rather than pushing this logic into the softfloat code we can simply save the FZ state and temporarily disable it for the softfloat call. Reviewed-by: Peter Maydell Signed-off-by: Alex Bennée Signed-off-by: Richard Hen

[Qemu-devel] [PATCH v5 12/28] target/arm: Remove floatX_maybe_silence_nan from conversions

2018-05-14 Thread Richard Henderson
This is now handled properly by the generic softfloat code. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 1 - target/arm/helper.c | 12 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/target/arm/helper-a64.c b/target

[Qemu-devel] [PATCH v5 09/28] target/arm: Use floatX_silence_nan when we have already checked for SNaN

2018-05-14 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 6 +++--- target/arm/helper.c | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index 4f8034c513..6f0eb83661 100644 ---

[Qemu-devel] [PATCH v5 06/28] fpu/softfloat: Introduce parts_is_snan_frac

2018-05-14 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 15 +++ fpu/softfloat.c| 12 ++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 4fc9ea4ac0

[Qemu-devel] [PATCH v5 08/28] fpu/softfloat: Replace float_class_msnan with parts_silence_nan

2018-05-14 Thread Richard Henderson
With a canonical representation of NaNs, we can silence an SNaN immediately rather than delay until the final format is known. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 23 ++ fpu/softfloat.c| 40 ++--

[Qemu-devel] [PATCH v5 04/28] fpu/softfloat: Move softfloat-specialize.h below FloatParts definition

2018-05-14 Thread Richard Henderson
We want to be able to specialize on the canonical representation. Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- fpu/softfloat.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.

[Qemu-devel] [PATCH v5 02/28] fpu/softfloat: Merge NO_SIGNALING_NANS definitions

2018-05-14 Thread Richard Henderson
Move the ifdef inside the relevant functions instead of duplicating the function declarations. Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 100 +++-- 1 file changed, 40 insertions(+), 60 d

[Qemu-devel] [PATCH v5 05/28] fpu/softfloat: Canonicalize NaN fraction

2018-05-14 Thread Richard Henderson
Shift the NaN fraction to a canonical position, much like we do for the fraction of normal numbers. This will facilitate manipulation of NaNs within the shared code paths. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --gi

[Qemu-devel] [PATCH v5 03/28] fpu/softfloat: Split floatXX_silence_nan from floatXX_maybe_silence_nan

2018-05-14 Thread Richard Henderson
The new function assumes that the input is an SNaN and does not double-check. Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 174 + include/fpu/softfloat.h| 5 ++ 2 files changed, 1

[Qemu-devel] [PATCH v5 00/28] softfloat patch roundup

2018-05-14 Thread Richard Henderson
This is my SNaN patch set, Alex's float-float refactor, and a couple of other random outstanding fpu patches. This has been reordered so as to be bisectable, since the float-float refactor requires the snan work to avoid breakage. This was built on top of pm215/target-arm.next to make it easier t

[Qemu-devel] [PATCH v5 01/28] fpu/softfloat: Fix conversion from uint64 to float128

2018-05-14 Thread Richard Henderson
From: Petr Tesarik The significand is passed to normalizeRoundAndPackFloat128() as high first, low second. The current code passes the integer first, so the result is incorrectly shifted left by 64 bits. This bug affects the emulation of s390x instruction CXLGBR (convert from logical 64-bit bina

Re: [Qemu-devel] [PATCH 38/42] job: Add JOB_STATUS_CHANGE QMP event

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This adds a QMP event that is emitted whenever a job transitions from > one status to another. For the event, a new qapi/job.json schema file is > created which will contain all job-related definitions that aren't tied > to the block layer. > > Signed-off-b

Re: [Qemu-devel] [PATCH 16/42] job: Add Job.aio_context

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > When block jobs need an AioContext, they just take it from their main > block node. Generic jobs don't have a main block node, so we need to > assign them an AioContext explicitly. > > Signed-off-by: Kevin Wolf Nothing uses the field yet, but so far

Re: [Qemu-devel] [PATCH 15/42] job: Move cancelled to Job

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > We cannot yet move the whole logic around job cancelling to Job because > it depends on quite a few other things that are still only in BlockJob, > but we can move the cancelled field at least. > > Signed-off-by: Kevin Wolf Reviewed-by: John Snow

[Qemu-devel] [PATCH v2 1/1] qmp.c: system_wakeup: adding RUN_STATE_SUSPENDED check before proceeding

2018-05-14 Thread Daniel Henrique Barboza
The qmp/hmp command 'system_wakeup' is simply a direct call to 'qemu_system_wakeup_request' from vl.c. This function verifies if runstate is SUSPENDED and if the wake up reason is valid before proceeding. However, no error or warning is thrown if any of those pre-requirements isn't met. There is n

Re: [Qemu-devel] [PATCH 14/42] job: Add reference counting

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > This moves reference counting from BlockJob to Job. > > In order to keep calling the BlockJob cleanup code when the job is > deleted via job_unref(), introduce a new JobDriver.free callback. Every > block job must use block_job_free() for this callback

Re: [Qemu-devel] [PATCH 37/42] job: Move progress fields to Job

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > BlockJob has fields .offset and .len, which are actually misnomers today > because they are no longer tied to block device sizes, but just progress > counters. As such they make a lot of sense in generic Jobs. > > This patch moves the fields to Job and rena

Re: [Qemu-devel] [PATCH 36/42] job: Add job_transition_to_ready()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > The transition to the READY state was still performed in the BlockJob > layer, in the same function that sent the BLOCK_JOB_READY QMP event. > > This patch brings the state transition to the Job layer and implements > the QMP event using a notifier called f

Re: [Qemu-devel] [PATCH 31/42] job: Move transactions to Job

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This moves the logic that implements job transactions from BlockJob to > Job. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob.h | 54 -- > include/block/blockjob_int.h | 10 -- > include/qemu/job.h | 71 +++--

Re: [Qemu-devel] [PATCH v6 7/9] i386: Add support for CPUID_8000_001E for AMD

2018-05-14 Thread Eduardo Habkost
On Tue, Apr 10, 2018 at 07:16:07PM -0400, Babu Moger wrote: > Populate threads/core_id/apic_ids/socket_id when CPUID_EXT3_TOPOEXT > feature is supported. This is required to support hyperthreading feature > on AMD CPUs. This is supported via CPUID_8000_001E extended functions. > > Signed-off-by: B

Re: [Qemu-devel] [PATCH 35/42] job: Add job_is_ready()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > Instead of having a 'bool ready' in BlockJob, add a function that > derives its value from the job status. > > At the same time, this fixes the behaviour to match what the QAPI > documentation promises for query-block-job: 'true if the job may be > complete

Re: [Qemu-devel] [PATCH 34/42] job: Add job_dismiss()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This moves block_job_dismiss() to the Job layer. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob.h | 9 - > include/qemu/job.h | 7 ++- > blockdev.c | 8 +--- > blockjob.c | 13

Re: [Qemu-devel] [PATCH v5 0/2] qmp: 'wakeup-suspend-support' in query-target

2018-05-14 Thread Daniel Henrique Barboza
On 05/14/2018 05:46 AM, Markus Armbruster wrote: Markus Armbruster writes: Daniel Henrique Barboza writes: Ping Michael, you reviewed v4 (at least in part), can you have a look? Have these patches fallen through the cracks? Should I re-send it? Not sure if this is applicable in the cur

Re: [Qemu-devel] [PATCH 33/42] job: Add job_yield()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This moves block_job_yield() to the Job layer. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob_int.h | 8 > include/qemu/job.h | 9 +++-- > block/backup.c | 2 +- > block/mirror.c | 2 +-

Re: [Qemu-devel] [PATCH 13/42] job: Move state transitions to Job

2018-05-14 Thread John Snow
On 05/09/2018 12:26 PM, Kevin Wolf wrote: > This moves BlockJob.status and the closely related functions > (block_)job_state_transition() and (block_)job_apply_verb to Job. The > two QAPI enums are renamed to JobStatus and JobVerb. > > Signed-off-by: Kevin Wolf In good faith that the TODOs dis

Re: [Qemu-devel] [PATCH 32/42] job: Move completion and cancellation to Job

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > This moves the top-level job completion and cancellation functions from > BlockJob to Job. > > Signed-off-by: Kevin Wolf > --- > include/block/blockjob.h | 55 --- > include/block/blockjob_int.h | 18 -- > include/q

  1   2   3   4   >