[Qemu-devel] [PATCH 1/2] ppc: Add proper real mode translation support

2016-06-27 Thread Cédric Le Goater
From: Benjamin Herrenschmidt This adds proper support for translating real mode addresses based on the combination of HV and LPCR bits. This handles HRMOR offset for hypervisor real mode, and both RMA and VRMA modes for guest real mode. PAPR mode adjusts the offsets appropriately to match the RMA

[Qemu-devel] [PATCH 0/2] pnv: handle real mode addressing in HV mode

2016-06-27 Thread Cédric Le Goater
Hello, Here are two more patches which are prereq for PowerNV. I have modified the code to fit the modifications done early 2016 on the mmu. I haven't seen any breakage in the tests but this clearly needs a closer look by experts. Thanks, C. Benjamin Herrenschmidt (2): ppc: Add proper real

[Qemu-devel] [PATCH 2/2] ppc: Fix 64K pages support in full emulation

2016-06-27 Thread Cédric Le Goater
From: Benjamin Herrenschmidt We were always advertising only 4K & 16M. Additionally the code wasn't properly matching the page size with the PTE content, which meant we could potentially hit an incorrect PTE if the guest used multiple sizes. Finally, honor the CPU capabilities when decoding the

Re: [Qemu-devel] [RFC Patch 1/3] chardev: add new socket fd parameter for unix socket

2016-06-27 Thread Michael S. Tsirkin
On Thu, Jun 23, 2016 at 12:46:46AM +0800, Wei Xu wrote: > On 2016年06月22日 23:39, Eric Blake wrote: > > On 06/22/2016 09:25 AM, Wei Xu wrote: > > > There have been comments on this patch, but i forgot adding this patch to > > > the list, just forward it again. > > > > > > When manage VMs via libvirt

Re: [Qemu-devel] [PATCH 05/11] target-i386: cpu: replace custom apic-id setter/getter with static property

2016-06-27 Thread Igor Mammedov
On Mon, 27 Jun 2016 14:55:24 -0300 Eduardo Habkost wrote: > On Thu, Jun 23, 2016 at 04:54:23PM +0200, Igor Mammedov wrote: > > custom apic-id setter/getter doesn't do any property specific > > checks anymorer, so clean it up and use more compact static > > property DEFINE_PROP_UINT32 instead. > >

Re: [Qemu-devel] [RFC PATCH v3 0/5] vITS support

2016-06-27 Thread Auger Eric
Dear all, On 24/11/2015 11:13, Pavel Fedin wrote: > This series introduces support for in-kernel GICv3 ITS emulation. > It is based on kernel API which is not released yet, therefore i post > it as an RFC. > > Kernel patch sets which implement this functionality are: > - [PATCH v3 00/16] KVM: arm

Re: [Qemu-devel] [PATCH v1 09/11] ppc/xics: Split ICS into ics-base and ics class

2016-06-27 Thread David Gibson
On Tue, Jun 28, 2016 at 10:36:23AM +0530, Nikunj A Dadhania wrote: > David Gibson writes: > > > [ Unknown signature status ] > > On Mon, Jun 27, 2016 at 03:41:06PM +0530, Nikunj A Dadhania wrote: > >> Nikunj A Dadhania writes: > >> > >> > David Gibson writes: > >> > > >> >> [ Unknown signature

Re: [Qemu-devel] [PATCH] spapr: fix write-past-end-of-array error in cpu core device init code

2016-06-27 Thread David Gibson
On Tue, Jun 28, 2016 at 07:24:16AM +0200, Greg Kurz wrote: > On Tue, 28 Jun 2016 12:55:07 +1000 > David Gibson wrote: > > > On Mon, Jun 27, 2016 at 06:28:15PM +0200, Greg Kurz wrote: > > > This fixes a potential QEMU crash introduced by commit 3b542549661. > > > > > > Signed-off-by: Greg Kurz >

Re: [Qemu-devel] [RFC PATCH 3/3] filter-rewriter: rewrite tcp packet to keep secondary connection

2016-06-27 Thread Zhang Chen
On 06/24/2016 02:08 PM, Jason Wang wrote: On 2016年06月23日 18:48, Zhang Chen wrote: On 06/22/2016 02:34 PM, Jason Wang wrote: On 2016年06月22日 11:12, Zhang Chen wrote: On 06/20/2016 08:14 PM, Dr. David Alan Gilbert wrote: * Jason Wang (jasow...@redhat.com) wrote: On 2016年06月14日 19:15,

Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks

2016-06-27 Thread Peter Lieven
Am 27.06.2016 um 17:09 schrieb Cornelia Huck: On Mon, 27 Jun 2016 11:44:47 +0200 Peter Lieven wrote: Hi, with the above patch applied: commit 9f06e71a567ba5ee8b727e65a2d5347fd331d2aa Author: Cornelia Huck Date: Fri Jun 10 11:04:12 2016 +0200 virtio-pci: convert to ioeventfd callback

Re: [Qemu-devel] [RFC PATCH 1/1] OpenBIOS: Switch over to official OpenBIOS git repo

2016-06-27 Thread Jeff Cody
On Mon, Jun 27, 2016 at 07:48:23AM +0100, Mark Cave-Ayland wrote: > On 21/06/16 14:48, Mark Cave-Ayland wrote: > > > On 21/06/16 11:28, Stefan Hajnoczi wrote: > > > >> On Tue, Jun 21, 2016 at 01:40:42AM -0400, Jeff Cody wrote: > >>> This update should preserve git history, and allow seamless swit

Re: [Qemu-devel] [PATCH v10 16/26] intel_iommu: add support for split irqchip

2016-06-27 Thread Michael S. Tsirkin
On Sun, Jun 26, 2016 at 03:27:50PM +0200, Jan Kiszka wrote: > On 2016-06-26 03:48, Peter Xu wrote: > > On Sat, Jun 25, 2016 at 05:18:40PM +0200, Jan Kiszka wrote: > >> On 2016-06-25 15:18, Peter Xu wrote: > >>> On Sat, Jun 25, 2016 at 10:08:10AM +0200, Jan Kiszka wrote: > > > > [...] > > > >>> I

[Qemu-devel] [Bug 902413] Re: qemu-i386-user on ARM host: wine hangs/spins when trying to run anything

2016-06-27 Thread Henry Wertz
I'm running qemu-2.5.0 on ARM, and wine (wine-1.7, 1.8, wine-staging) all seem to behave similarly; rename the winepreloader and you'll be able to run winecfg, notepad run, a few installers do run and the software runs. But Windows software LOVES using threads so you rapidly end up with some other

Re: [Qemu-devel] [PATCH v4 5/5] tests: add a m25p80 test

2016-06-27 Thread Cédric Le Goater
On 06/27/2016 06:43 PM, Cédric Le Goater wrote: > This test uses the palmetto platform and the AST2400 SPI controller to > test the m25p80 flash module device model. The flash model is defined > by the platform (n25q256a) and it would be nice to find way to control > it, using a property probably.

Re: [Qemu-devel] [PATCH 0/8] pnv: more fixes to the exception model

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 08:55:13AM +0200, Cédric Le Goater wrote: > Hello, > > Here are a couple more patches on the exception model and LPCR which > are surrounding the pnv core patches. The first is a prereq for all > the patches to apply, and it did not seem too much of a problem adding > it.

Re: [Qemu-devel] [PATCH] hw/ppc/spapr: Add some missing hcall function set strings

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 01:25:03PM +0200, Thomas Huth wrote: > Add "hcall-sprg0" (for H_SET_SPRG0), "hcall-copy" (for H_PAGE_INIT) > and "hcall-debug" (for H_LOGICAL_CI_LOAD/STORE) to the property > "ibm,hypertas-functions" to indicate that we support these hypercalls. > > Signed-off-by: Thomas Hu

Re: [Qemu-devel] [PATCH v8 11/12] vfio: register aer resume notification handler for aer resume

2016-06-27 Thread Zhou Jie
Hi Alex, On 2016/6/28 11:58, Alex Williamson wrote: On Tue, 28 Jun 2016 11:26:33 +0800 Zhou Jie wrote: Hi Alex, The INTx/MSI part needs further definition for the user. Are we actually completely tearing down interrupts with the expectation that the user will re-enable them or are we just

Re: [Qemu-devel] [PATCH] spapr: fix write-past-end-of-array error in cpu core device init code

2016-06-27 Thread Greg Kurz
On Tue, 28 Jun 2016 12:55:07 +1000 David Gibson wrote: > On Mon, Jun 27, 2016 at 06:28:15PM +0200, Greg Kurz wrote: > > This fixes a potential QEMU crash introduced by commit 3b542549661. > > > > Signed-off-by: Greg Kurz > > --- > > hw/ppc/spapr_cpu_core.c |3 +-- > > 1 file changed, 1 ins

Re: [Qemu-devel] [PATCH v1 09/11] ppc/xics: Split ICS into ics-base and ics class

2016-06-27 Thread Nikunj A Dadhania
David Gibson writes: > [ Unknown signature status ] > On Mon, Jun 27, 2016 at 03:41:06PM +0530, Nikunj A Dadhania wrote: >> Nikunj A Dadhania writes: >> >> > David Gibson writes: >> > >> >> [ Unknown signature status ] >> >> On Thu, Jun 23, 2016 at 11:17:28PM +0530, Nikunj A Dadhania wrote: >>

[Qemu-devel] [Bug 1131757]

2016-06-27 Thread Kirill Tkhai
-- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1131757 Title: QEMU 1.4.0 fails to boot sparc64 linux image Status in QEMU: New Bug description: Hi! I tried to boot sparc64 linux image (htt

[Qemu-devel] [Bug 1588328] Re: Qemu 2.6 Solaris 9 Sparc Segmentation Fault

2016-06-27 Thread Zhen Ning Lim
Hi all, Thanks for the patch. I just tried, it seems to be not able to find the disk when it try to start the installation. :( ... Please specify the media from which you will install the Solaris Operating Environment. Media: 1. CD/DVD 2. Network File System 3. HTTP (Flash archive only) 4. FTP

Re: [Qemu-devel] [PATCH v8 11/12] vfio: register aer resume notification handler for aer resume

2016-06-27 Thread Alex Williamson
On Tue, 28 Jun 2016 11:26:33 +0800 Zhou Jie wrote: > Hi Alex, > > > The INTx/MSI part needs further definition for the user. Are we > > actually completely tearing down interrupts with the expectation that > > the user will re-enable them or are we just masking them such that the > > user needs

Re: [Qemu-devel] [PATCH v1 10/11] ppc/xics: Add "native" XICS subclass

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 03:23:13PM +0530, Nikunj A Dadhania wrote: > David Gibson writes: > > > [ Unknown signature status ] > > On Thu, Jun 23, 2016 at 11:17:29PM +0530, Nikunj A Dadhania wrote: > >> From: Benjamin Herrenschmidt > >> > >> This provides MMIO based ICP access as found on POWER8

Re: [Qemu-devel] [PATCH] target-ppc: Eliminate redundant and incorrect function booke206_page_size_to_tlb

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 10:55:03AM -0500, alar...@ddci.com wrote: > David Gibson wrote on 06/27/2016 12:32:13 > AM: > > > From: David Gibson > > To: alar...@ddci.com > > Cc: ag...@suse.de, qemu-devel@nongnu.org, qemu-...@nongnu.org > > Date: 06/27/2016 12:30 AM > > Subject: Re: [PATCH] target-p

Re: [Qemu-devel] [PATCH v1 09/11] ppc/xics: Split ICS into ics-base and ics class

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 03:41:06PM +0530, Nikunj A Dadhania wrote: > Nikunj A Dadhania writes: > > > David Gibson writes: > > > >> [ Unknown signature status ] > >> On Thu, Jun 23, 2016 at 11:17:28PM +0530, Nikunj A Dadhania wrote: > >>> From: Benjamin Herrenschmidt > >>> > >>> The existing im

[Qemu-devel] [PULL 1/5] net: fix qemu_announce_self not emitting packets

2016-06-27 Thread Jason Wang
From: Peter Lieven commit fefe2a78 accidently dropped the code path for injecting raw packets. This feature is needed for sending gratuitous ARPs after an incoming migration has completed. The result is increased network downtime for vservers where the network card is not virtio-net with the VIRT

[Qemu-devel] [PULL 3/5] Change net/socket.c to use socket_*() functions

2016-06-27 Thread Jason Wang
From: Ashijeet Acharya Use socket_*() functions from include/qemu/sockets.h instead of listen()/bind()/connect()/parse_host_port(). socket_*() fucntions are QAPI based and this patch performs this api conversion since everything will be using QAPI based sockets in the future. Also add a helper f

[Qemu-devel] [PULL 5/5] vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU

2016-06-27 Thread Jason Wang
From: KarimAllah Ahmed When a PCI device lives behind an IOMMU, it should use 'pci_dma_*' family of functions when any transfer from/to guest memory is required while 'cpu_physical_memory_*' family of functions completely bypass any MMU/IOMMU in the system. vmxnet3 in some places was using 'cpu_

[Qemu-devel] [PULL 4/5] rtl8139: save/load RxMulOk counter (again)

2016-06-27 Thread Jason Wang
From: David Vrabel Commit 9d29cdeaaca3a0383af764000b71492c4fc67c6e (rtl8139: port TallyCounters to vmstate) introduced in incompatibility in the v4 format as it omitted the RxOkMul counter. There are presumably no users that were impacted by the v4 to v4' breakage, so increase the save version t

[Qemu-devel] [PULL 0/5] Net patches

2016-06-27 Thread Jason Wang
The following changes since commit 14e60aaece20a1cfc059a69f6491b0899f9257a8: hw/net/e1000: Don't use *_to_cpup() (2016-06-27 16:39:56 +0100) are available in the git repository at: https://github.com/jasowang/qemu.git tags/net-pull-request for you to fetch changes up to c508277335e3b6b20cf1

[Qemu-devel] [PULL 2/5] net: mipsnet: check transmit buffer size before sending

2016-06-27 Thread Jason Wang
From: Prasad J Pandit When processing MIPSnet I/O port write operation, it uses a transmit buffer tx_buffer[MAX_ETH_FRAME_SIZE=1514]. Two indices 's->tx_written' and 's->tx_count' are used to control data written to this buffer. If the two were to be equal before writing, it'd lead to an OOB writ

Re: [Qemu-devel] [PATCH v8 11/12] vfio: register aer resume notification handler for aer resume

2016-06-27 Thread Zhou Jie
Hi Alex, The INTx/MSI part needs further definition for the user. Are we actually completely tearing down interrupts with the expectation that the user will re-enable them or are we just masking them such that the user needs to unmask? Also note that not all devices support DisINTx. After re

Re: [Qemu-devel] [PATCH v7 10/15] qapi-event: Reduce chance of collision with event data

2016-06-27 Thread Eric Blake
On 06/16/2016 06:25 AM, Markus Armbruster wrote: > Markus Armbruster writes: > >> Eric Blake writes: >> >>> When an event has data that is not boxed, we are exposing all of >>> its members alongside our local variables. So far, we haven't >>> hit a collision, but it may be a matter of time befo

Re: [Qemu-devel] [PATCH V5 5/5] machine: remove iommu property

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 06:38:35PM +0300, Marcel Apfelbaum wrote: > Since iommu devices can be created with '-device' there is > no need to keep iommu as machine and mch property. Doesn't this break backwards compatibility? > > Signed-off-by: Marcel Apfelbaum > --- > hw/core/machine.c

Re: [Qemu-devel] [PATCH V5 1/5] hw/ppc: realize the PCI root bus as part of mac99 init

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 06:38:31PM +0300, Marcel Apfelbaum wrote: > Mac99's PCI root bus is not part of a host bridge, > realize it manually. Um.. how did this ever work? > > Signed-off-by: Marcel Apfelbaum > --- > hw/ppc/mac_newworld.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

Re: [Qemu-devel] [PATCH] spapr: fix write-past-end-of-array error in cpu core device init code

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 06:28:15PM +0200, Greg Kurz wrote: > This fixes a potential QEMU crash introduced by commit 3b542549661. > > Signed-off-by: Greg Kurz > --- > hw/ppc/spapr_cpu_core.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Ugh. The existing code is wrong in the case

Re: [Qemu-devel] [PATCH v7 03/15] qapi: Require all branches of flat union enum to be covered

2016-06-27 Thread Eric Blake
On 06/14/2016 07:46 AM, Eric Blake wrote: > On 06/14/2016 07:24 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> We were previously enforcing that all flat union branches were >>> found in the corresponding enum, but not that all enum values >>> were covered by branches. The resulting ge

[Qemu-devel] [PATCH] quorum: Only compile when supported

2016-06-27 Thread Fam Zheng
This was the only exceptional module init function that does something else than a simple list of bdrv_register() calls, in all the block drivers. The qcrypto_hash_supports is actually a static check, determined at compile time. Follow the block-job-$(CONFIG_FOO) convention for consistency. Sign

Re: [Qemu-devel] [PATCH v4 1/3] block: ignore flush requests when storage is clean

2016-06-27 Thread Fam Zheng
On Mon, 06/27 17:47, Denis V. Lunev wrote: > From: Evgeny Yakovlev > > Some guests (win2008 server for example) do a lot of unnecessary > flushing when underlying media has not changed. This adds additional > overhead on host when calling fsync/fdatasync. > > This change introduces a dirty flag

Re: [Qemu-devel] [PATCH] i2c: Fix SMBus read transactions to avoid double events

2016-06-27 Thread Alistair Francis
On Mon, Jun 27, 2016 at 3:04 PM, wrote: > From: Corey Minyard > > Change 2293c27faddf (i2c: implement broadcast write) added broadcast > capability to the I2C bus, but it broke SMBus read transactions. > An SMBus read transaction does two i2c_start_transaction() calls > without an intervening i2

[Qemu-devel] [PATCH v4 23/24] target-sparc: Use cpu_loop_exit_restore from helper_check_ieee_exceptions

2016-06-27 Thread Richard Henderson
This avoids needing to save state before every FP operation. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/fop_helper.c | 17 + target-sparc/translate.c | 6 +- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/target-sparc/f

[Qemu-devel] [PATCH v4 24/24] target-sparc: Elide duplicate updates to fprs

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 590a58d..e7691e4 100644 --- a/

[Qemu-devel] [PATCH v4 19/24] target-sparc: Directly implement block and short ldf/stf asis

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 122 +++ 1 file changed, 122 insertions(+) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 2ea6964..cee1e5c 100644 --- a/target-sparc/

[Qemu-devel] [PATCH v4 22/24] target-sparc: Use cpu_fsr in stfsr

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index ed0853a..dea1b5f 100644 --- a/target-sparc/translate.c +++ b/target-spa

[Qemu-devel] [PATCH v4 17/24] target-sparc: Pass TCGMemOp constants to helper_ld/st_asi

2016-06-27 Thread Richard Henderson
Reduces the argument count for helper_ld_asi; do helper_st_asi for consistency. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/helper.h | 4 +-- target-sparc/ldst_helper.c | 73 ++ target-sparc/translate.c | 58

[Qemu-devel] [PATCH v4 21/24] target-sparc: Use explicit writes to cpu_fsr

2016-06-27 Thread Richard Henderson
By arranging for explicit writes to cpu_fsr after floating point operations, we are able to mark the helpers as not writing to tcg globals, which means that we don't need to invalidate the integer register set across said calls. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson ---

[Qemu-devel] [PATCH v4 13/24] target-sparc: Use QT0 to return results from ldda

2016-06-27 Thread Richard Henderson
Also implement a few more twinx asis. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/helper.h | 2 +- target-sparc/ldst_helper.c | 156 - target-sparc/translate.c | 12 +++- 3 files changed, 120 insertions(+)

[Qemu-devel] [PATCH v4 20/24] target-sparc: Remove helper_ldf_asi, helper_stf_asi

2016-06-27 Thread Richard Henderson
We've now implemented all fp asis inline, except for the no-fault memory reads. The latter can be passed directly to helper_ld_asi. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/helper.h | 2 - target-sparc/ldst_helper.c | 148 --

[Qemu-devel] [PATCH v4 11/24] target-sparc: Use defines from asi.h

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/ldst_helper.c | 459 +++-- target-sparc/translate.c | 6 +- 2 files changed, 235 insertions(+), 230 deletions(-) diff --git a/target-sparc/ldst_helper.c b/target-sparc/lds

[Qemu-devel] [PATCH v4 16/24] target-sparc: Fix obvious error in ASI_M_BFILL

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/ldst_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c index 23840db..3700ca1 100644 --- a/target-sparc/ldst_helper.c +++ b/target-sp

[Qemu-devel] [PATCH v4 05/24] target-sparc: Unify asi handling between 32 and 64-bit

2016-06-27 Thread Richard Henderson
We now have a single copy of gen_ld_asi, gen_st_asi, gen_swap_asi, and everything uses gen_get_asi. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 285 ++- 1 file changed, 131 insertions(+), 154 deletions

[Qemu-devel] [PATCH v4 18/24] target-sparc: Directly implement easy ldf/stf asis

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 45 + 1 file changed, 45 insertions(+) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 0b29aff..2ea6964 100644 --- a/target-sparc/tran

[Qemu-devel] [PATCH v4 14/24] target-sparc: Introduce gen_check_align

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 48 +--- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 885fa58..e7120f8 100644 ---

[Qemu-devel] [PATCH v4 15/24] target-sparc: Directly implement easy ldd/std asis

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 115 ++- 1 file changed, 103 insertions(+), 12 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index e7120f8..0d5149d 100644 --

[Qemu-devel] [PATCH v4 09/24] target-sparc: Import linux/arch/sparc/include/uapi/asm/asi.h

2016-06-27 Thread Richard Henderson
Copied from tag v4.2, 64291f7db5bd8150a74ad2036f1037e6a0428df2. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/asi.h | 297 + 1 file changed, 297 insertions(+) create mode 100644 target-sparc/asi.h diff --git

[Qemu-devel] [PATCH v4 12/24] target-sparc: Directly implement easy ld/st asis

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 104 --- 1 file changed, 90 insertions(+), 14 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 8865864..55364ad 100644 ---

[Qemu-devel] [PATCH v4 06/24] target-sparc: Store %asi in TB flags

2016-06-27 Thread Richard Henderson
Knowing the value of %asi at translation time means that we can handle the common settings without a function call. The steady state appears to be %asi == ASI_P, so that sparcv9 code can use offset forms of lda/sta. The %asi register gets pushed and popped on entry to certain functions, but it ra

[Qemu-devel] [PATCH v4 07/24] target-sparc: Introduce get_asi

2016-06-27 Thread Richard Henderson
Replace gen_get_asi, and use it for both 32-bit and 64-bit. For v8, do supervisor and immediate checks here. Also, move save_state and TB ending into the respective subroutines, out of disas_sparc_insn. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c

[Qemu-devel] [PATCH v4 03/24] target-sparc: Store mmu index in TB flags

2016-06-27 Thread Richard Henderson
Doing this instead of saving the raw PS_PRIV and TL. This means that all nucleus mode TBs (TL > 0) can be shared. This fixes a bug in that we didn't include HS_PRIV in the TB flags, and so could produce incorrect TB matches for hypervisor state. The LSU and DMMU states were unused by the transla

[Qemu-devel] [PATCH v4 10/24] target-sparc: Add UA2005 defines to asi.h

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/asi.h | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/target-sparc/asi.h b/target-sparc/asi.h index aace6f3..c9a1849 100644 --- a/target-sparc/asi.h +++ b/target-sparc/asi.

[Qemu-devel] [PATCH v4 00/24] target-sparc improvements

2016-06-27 Thread Richard Henderson
The primary focus of this patch set is to reduce the number of helpers that modify TCG globals, and thus increase the lifetime of those globals within each TB, and thus decrease the number of times that tcg must spill and fill them from backing store. As a byproduct, I also implement the bulk of t

[Qemu-devel] [PATCH v4 08/24] target-sparc: Pass TCGMemOp to gen_ld/st_asi

2016-06-27 Thread Richard Henderson
Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 532ad3e..886e132 100644 --- a/target-sparc/

[Qemu-devel] [PATCH v4 02/24] target-sparc: Remove softint as a TCG global

2016-06-27 Thread Richard Henderson
The global is only ever read for one insn; we can just as well use a load from env instead and generate the same code. This also allows us to indicate the the associated helpers do not touch TCG globals. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/helper.h

[Qemu-devel] [PATCH v4 01/24] target-sparc: Mark more flags for helpers

2016-06-27 Thread Richard Henderson
Quite a few helpers do not modify tcg globals but did not so indicate. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/helper.h | 48 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/target-sparc/hel

[Qemu-devel] [PATCH v4 04/24] target-sparc: Create gen_exception

2016-06-27 Thread Richard Henderson
This unifies quite a few duplicate code fragments. Reviewed-By: Artyom Tarasenko Signed-off-by: Richard Henderson --- target-sparc/translate.c | 75 +--- 1 file changed, 20 insertions(+), 55 deletions(-) diff --git a/target-sparc/translate.c b/target

Re: [Qemu-devel] [PATCH v4 3/3] tests: in IDE and AHCI tests perform DMA write before flushing

2016-06-27 Thread John Snow
On 06/27/2016 10:47 AM, Denis V. Lunev wrote: > From: Evgeny Yakovlev > > Due to changes in flush behaviour clean disks stopped generating > flush_to_disk events and IDE and AHCI tests that test flush commands > started to fail. > > This change adds additional DMA writes to affected tests befo

Re: [Qemu-devel] [PATCH] misc/aspeed_scu: Fix build error caused by missing header

2016-06-27 Thread Andrew Jeffery
On Mon, 2016-06-27 at 17:53 -0400, Pranith Kumar wrote: > Tracing configurations error out currently as follows: > > /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c: In function > ‘aspeed_scu_read’: > /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:9: error: implicit > declaration

Re: [Qemu-devel] [PATCH] virtio: Tell the user what went wrong when event_notifier_init failed

2016-06-27 Thread Eric Blake
On 06/27/2016 04:12 PM, Thomas Huth wrote: > event_notifier_init() can fail in real life, for example when there > are not enough open file handles available (EMFILE) when using a lot > of devices. So instead of leaving the average user with a cryptic > error number only, print out a proper error m

[Qemu-devel] [PATCH] virtio: Tell the user what went wrong when event_notifier_init failed

2016-06-27 Thread Thomas Huth
event_notifier_init() can fail in real life, for example when there are not enough open file handles available (EMFILE) when using a lot of devices. So instead of leaving the average user with a cryptic error number only, print out a proper error message with strerror() instead, so that the user ha

[Qemu-devel] [PATCH] i2c: Fix SMBus read transactions to avoid double events

2016-06-27 Thread minyard
From: Corey Minyard Change 2293c27faddf (i2c: implement broadcast write) added broadcast capability to the I2C bus, but it broke SMBus read transactions. An SMBus read transaction does two i2c_start_transaction() calls without an intervening i2c_end_transfer() call. This will result in i2c_start

Re: [Qemu-devel] [RFC 01/30] softmmu: add cmpxchg helpers

2016-06-27 Thread Richard Henderson
On 06/27/2016 02:48 PM, Peter Maydell wrote: On 27 June 2016 at 22:43, Richard Henderson wrote: All you need to do is byte-reverse the data. bswap(a + b) == bswap(a) + bswap(b). ? 0xFF + 0xFF == 0x1FE, bswap(0x1FE) == 0xFE01 bswap(0xFF) + bswap(0xFF) == 0xFF00 + 0xFF00 == 0x1F

[Qemu-devel] [PATCH] misc/aspeed_scu: Fix build error caused by missing header

2016-06-27 Thread Pranith Kumar
Tracing configurations error out currently as follows: /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c: In function ‘aspeed_scu_read’: /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:9: error: implicit declaration of function ‘qemu_log_mask’ [-Werror=implicit-function-declaration]

[Qemu-devel] Executed Host Instructions

2016-06-27 Thread Ayaz Akram
Hi All, I want to count number of host instructions (only for guest code) executed when qemu emulates an application. I wonder if helper functions are supported with tcg back end as well, which can be a possible solution for the mentioned problem ? If not, is there any other solution in someone's

Re: [Qemu-devel] [RFC 01/30] softmmu: add cmpxchg helpers

2016-06-27 Thread Peter Maydell
On 27 June 2016 at 22:43, Richard Henderson wrote: > All you need to do is byte-reverse the data. > > bswap(a + b) == bswap(a) + bswap(b). ? 0xFF + 0xFF == 0x1FE, bswap(0x1FE) == 0xFE01 bswap(0xFF) + bswap(0xFF) == 0xFF00 + 0xFF00 == 0x1FE00 (or 0xFE00 with truncate to 32-b

Re: [Qemu-devel] [RFC 01/30] softmmu: add cmpxchg helpers

2016-06-27 Thread Richard Henderson
On 06/27/2016 02:19 PM, Emilio G. Cota wrote: Host endian operation? I forgot to add byte ordering in the cover letter under "why this is an RFC" -- I admit I'm confused by all the macro trickery done for regular loads and stores. We store data in memory as per the guests' byte ordering, right

[Qemu-devel] [Bug 1596579] Re: segfault upon reboot

2016-06-27 Thread Eduardo
By all means, feel free to provide me instructions on how to debug this myself, so I can help others in the future, although I understand that can be more time consuming. If anyone would rather prefer talking on IRC, just let me know the network and channel. Thanks -- You received this bug notifi

Re: [Qemu-devel] [RFC 11/30] target-i386: add atomic helpers

2016-06-27 Thread Emilio G. Cota
On Mon, Jun 27, 2016 at 13:27:35 -0700, Richard Henderson wrote: > On 06/27/2016 12:01 PM, Emilio G. Cota wrote: > >This patch only adds the helpers. Functions to invoke the helpers > >from translated code are generated in subsequent patches. > > > >Signed-off-by: Emilio G. Cota > >--- > > target-

[Qemu-devel] [Bug 1252270] Re: installing NT4 on MIPS Magnum/Jazz asserts

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1252270 Title: installing NT4 on MIPS Magnum/Jazz asserts Status in QEMU: Fix Relea

[Qemu-devel] [Bug 1263747] Re: Arm64 fails to run a binary which runs OK on real hardware

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1263747 Title: Arm64 fails to run a binary which runs OK on real hardware Status in Q

[Qemu-devel] [Bug 1288385] Re: VFIO passthrough causes assertation failure

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1288385 Title: VFIO passthrough causes assertation failure Status in QEMU: Fix Rele

[Qemu-devel] [Bug 1328996] Re: [AArch64] - blr x30 is handled incorrectly

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1328996 Title: [AArch64] - blr x30 is handled incorrectly Status in QEMU: Fix Relea

Re: [Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-06-27 Thread Sergey Fedorov
On 03/06/16 23:40, Alex Bennée wrote: > diff --git a/cpus.c b/cpus.c > index 1694ce9..12e04c9 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -1208,9 +1208,29 @@ static int tcg_cpu_exec(CPUState *cpu) > return ret; > } > > +/* Single-threaded TCG > + * > + * In the single-threaded case each vCPU

Re: [Qemu-devel] [RFC 01/30] softmmu: add cmpxchg helpers

2016-06-27 Thread Emilio G. Cota
On Mon, Jun 27, 2016 at 13:11:28 -0700, Richard Henderson wrote: > On 06/27/2016 12:01 PM, Emilio G. Cota wrote: > >Signed-off-by: Emilio G. Cota > >--- > > softmmu_template.h | 58 > > ++ > > tcg/tcg.h | 16 +++ > > 2 files c

Re: [Qemu-devel] [RFC v3 11/19] tcg: add options for enabling MTTCG

2016-06-27 Thread Sergey Fedorov
On 03/06/16 23:40, Alex Bennée wrote: > diff --git a/cpus.c b/cpus.c > index 4cc2ce6..1694ce9 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -25,6 +25,7 @@ > /* Needed early for CONFIG_BSD etc. */ > #include "qemu/osdep.h" > #include "qemu-common.h" > +#include "qemu/config-file.h" > #include "cpu.h

Re: [Qemu-devel] [RFC 02/30] tcg: add tcg_cmpxchg_lock

2016-06-27 Thread Richard Henderson
On 06/27/2016 01:41 PM, Emilio G. Cota wrote: Supporting 64-bit hosts on 32-bit guests has the problem of non-atomicity of 64-bit accesses, however. It does. It would be possible to do something with armv7 and i686 hosts, as 64-bit atomic ops exist, but it's probably not worth the effort. A

[Qemu-devel] [Bug 1307656] Re: qemu segfault when starting virt-manager

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307656 Title: qemu segfault when starting virt-manager Status in QEMU: Fix Release

[Qemu-devel] [Bug 1091115] Re: windowsXP install in qemu-system-i386 1.3.0 ends with a BSOD 0x7E in acpi.sys

2016-06-27 Thread T. Huth
Changing status to "Fix Released" since this should have been included since a couple of releases now. ** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.laun

[Qemu-devel] [Bug 788701] Re: qemu-user fails to run rpcgen (i386, x86_64)

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/788701 Title: qemu-user fails to run rpcgen (i386, x86_64) Status in QEMU: Fix Rele

[Qemu-devel] [Bug 1210212] Re: qemu core dumps with -serial mon:vc

2016-06-27 Thread T. Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1210212 Title: qemu core dumps with -serial mon:vc Status in QEMU: Fix Released Bu

[Qemu-devel] [Bug 648128] Re: VirtFS: Cannot mount 9p during boot

2016-06-27 Thread T. Huth
If I've got the previous comments right, this was not a QEMU bug, but a bug in "mount" and the guest kernel ... so closing this QEMU ticket here now. ** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml,

Re: [Qemu-devel] [RFC 02/30] tcg: add tcg_cmpxchg_lock

2016-06-27 Thread Emilio G. Cota
On Mon, Jun 27, 2016 at 13:07:42 -0700, Richard Henderson wrote: > On 06/27/2016 12:01 PM, Emilio G. Cota wrote: > >This set of locks will allow us to correctly emulate cmpxchg16 > >in a parallel TCG. The key observation is that no architecture > >supports 16-byte regular atomic load/stores; only "

Re: [Qemu-devel] [PATCH RFC v2 0/5] Baby steps towards saner headers

2016-06-27 Thread Sascha Silbe
Dear Paolo, Paolo Bonzini writes: >> After applying your series on top of f12103af and running "./configure" >> in a clean working directory, I get the following errors for "make >> check-source": >> >> $ make check-source >> egrep: config-host.h: No such file or directory >> egrep: qmp-command

Re: [Qemu-devel] [PATCH] slirp: Add support for stateless DHCPv6

2016-06-27 Thread Samuel Thibault
Hello, Thomas Huth, on Sun 26 Jun 2016 10:04:02 +0200, wrote: > Provide basic support for stateless DHCPv6 (see RFC 3736) so > that guests can also automatically boot via IPv6 with SLIRP > (for IPv6 network booting, see RFC 5970 for details). Cool :) I'm here commenting in my reading order, not

Re: [Qemu-devel] [RFC 11/30] target-i386: add atomic helpers

2016-06-27 Thread Richard Henderson
On 06/27/2016 12:01 PM, Emilio G. Cota wrote: This patch only adds the helpers. Functions to invoke the helpers from translated code are generated in subsequent patches. Signed-off-by: Emilio G. Cota --- target-i386/helper.h | 34 ++ target-i386/mem_helper.c

[Qemu-devel] [Bug 1546680] Re: Incorrect display colors when running big endian guest on POWER8 little endian host

2016-06-27 Thread T. Huth
Which version of QEMU are you using? How did you start QEMU (i.e. which kind of graphics card did you specify)? And which version of CentOS are you using for the guest? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.laun

Re: [Qemu-devel] [RFC 01/30] softmmu: add cmpxchg helpers

2016-06-27 Thread Richard Henderson
On 06/27/2016 12:01 PM, Emilio G. Cota wrote: Signed-off-by: Emilio G. Cota --- softmmu_template.h | 58 ++ tcg/tcg.h | 16 +++ 2 files changed, 74 insertions(+) diff --git a/softmmu_template.h b/softmmu_template.h index

Re: [Qemu-devel] [RFC 02/30] tcg: add tcg_cmpxchg_lock

2016-06-27 Thread Richard Henderson
On 06/27/2016 12:01 PM, Emilio G. Cota wrote: This set of locks will allow us to correctly emulate cmpxchg16 in a parallel TCG. The key observation is that no architecture supports 16-byte regular atomic load/stores; only "locked" accesses (e.g. via cmpxchg16b on x86) are allowed, and therefore w

[Qemu-devel] [Bug 1596579] Re: segfault upon reboot

2016-06-27 Thread Eduardo
** Attachment added: "cmdline" https://bugs.launchpad.net/qemu/+bug/1596579/+attachment/4691252/+files/cmdline -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1596579 Title: segfault upon reboot

[Qemu-devel] [PULL 1/1] macio: Use blk_drain instead of blk_drain_all

2016-06-27 Thread John Snow
From: Fam Zheng We only care about the associated backend, so blk_drain is more appropriate here. Signed-off-by: Fam Zheng Reviewed-by: Kevin Wolf Reviewed-by: John Snow Message-id: 20160612065603.21911-1-f...@redhat.com Signed-off-by: John Snow --- hw/ide/macio.c | 2 +- 1 file changed, 1

Re: [Qemu-devel] [PATCH] slirp: Remove superfluous memset() calls from the TFTP code

2016-06-27 Thread Samuel Thibault
Thomas Huth, on Mon 27 Jun 2016 12:41:36 +0200, wrote: > Commit fad7fb9ccd8013ea03 ("Add IPv6 support to the TFTP code") > refactored some common code for preparing the mbuf into a new > function called tftp_prep_mbuf_data(). One part of this common > code is to do a "memset(m->m_data, 0, m->m_siz

  1   2   3   4   >