Re: [Qemu-devel] [RFC 06/15] qdev: Add device_type field to BusClass

2016-11-24 Thread Eduardo Habkost
On Thu, Nov 24, 2016 at 05:48:20PM +0100, Cornelia Huck wrote: > On Mon, 21 Nov 2016 23:12:04 -0200 > Eduardo Habkost wrote: > > > > > diff --git a/hw/pci/pci.c b/hw/pci/pci.c > > index 24fae16..74b8fef 100644 > > --- a/hw/pci/pci.c > > +++ b/hw/pci/pci.c > > @@ -152,6 +152,7 @@ static void pci

Re: [Qemu-devel] -nodefaults and available buses (was Re: [RFC 00/15] qmp: Report supported device types on 'query-machines')

2016-11-24 Thread Eduardo Habkost
On Thu, Nov 24, 2016 at 05:30:19PM +0100, Cornelia Huck wrote: > On Thu, 24 Nov 2016 12:51:19 +1100 > David Gibson wrote: > > > On Wed, Nov 23, 2016 at 03:10:47PM -0200, Eduardo Habkost wrote: > > > (CCing the maintainers of the machines that crash when using > > > -nodefaults) > > > > > > On Tu

Re: [Qemu-devel] [PATCH v3 for-2.9 0/3] q35: add negotiable broadcast SMI

2016-11-24 Thread Igor Mammedov
On Thu, 24 Nov 2016 12:05:55 -0500 (EST) Paolo Bonzini wrote: > > > > Okay, this does plug the hole I sketched out above. This logic (the > > > QEMU-specific unparking) can be done in another platform API in OVMF I > > > guess (like those in SmmCpuFeaturesLib), but I wonder if we have to > > > p

Re: [Qemu-devel] [PATCH v1 04/18] util/rbcache: range-based cache core

2016-11-24 Thread Pavel Butsykin
On 24.11.2016 00:25, Kevin Wolf wrote: Am 15.11.2016 um 07:37 hat Pavel Butsykin geschrieben: RBCache provides functionality to cache the data from block devices (basically). The range here is used as the main key for searching and storing data. The cache is based on red-black trees, so basic op

[Qemu-devel] [PULL-for 2.8] Update OpenBIOS images

2016-11-24 Thread Mark Cave-Ayland
Hi Stefan, David's latest ppc-for-2.8-20161123 pull includes Ben's patch entitled "ppc: Make uninorth interrupt swizzling identical to Grackle". This requires a corresponding change in the OpenBIOS device tree to match and so this pull request should be applied soon after. ATB, Mark. The

Re: [Qemu-devel] [dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Kavanagh, Mark B
> >On 11/24/2016 12:47 PM, Maxime Coquelin wrote: >> >> >> On 11/24/2016 01:33 PM, Yuanhan Liu wrote: >>> On Thu, Nov 24, 2016 at 09:30:49AM +, Kevin Traynor wrote: > On 11/24/2016 06:31 AM, Yuanhan Liu wrote: > > > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: >>

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

2016-11-24 Thread Nathan Shearer
Running SkiFree (1.04 x32) on wine (1.8.3 x32) installed in a gentoo i686 chroot, all running via qemu-user-i386-static 1.7.0 on a raspberry pi 2 armv7 host works. It was almost playable at 1920x1080 too! winecfg worked, notepad.exe worked, and SkiFree worked too. -- You received this bug notifi

Re: [Qemu-devel] [PATCH v2] memory: add section range info for IOMMU notifier

2016-11-24 Thread David Gibson
On Thu, Nov 24, 2016 at 08:52:29PM +0800, Peter Xu wrote: > In this patch, IOMMUNotifier.{start|end} are introduced to store section > information for a specific notifier. When notification occurs, we not > only check the notification type (MAP|UNMAP), but also check whether the > notified iova is

Re: [Qemu-devel] [PULL 00/11] ppc-for-2.8 queue 20161123

2016-11-24 Thread David Gibson
On Thu, Nov 24, 2016 at 09:50:05AM +, Stefan Hajnoczi wrote: > On Tue, Nov 22, 2016 at 07:06:11PM -0800, no-re...@patchew.org wrote: > > === OUTPUT BEGIN === > > Checking PATCH 1/11: tests/postcopy: Use KVM on ppc64 only if it is > > KVM-HV... > > Checking PATCH 2/11: spapr: migration support

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/4] target-ppc: Implement bcdcfsq. instruction

2016-11-24 Thread David Gibson
On Thu, Nov 24, 2016 at 02:31:21PM -0200, jos...@linux.vnet.ibm.com wrote: > Hello Richard, > > Thank you for your review, please read my answer below. > > > On Thu, Nov 24, 2016 at 01:43:18AM +0100, Richard Henderson wrote: > > On 11/23/2016 05:21 PM, Jose Ricardo Ziviani wrote: > > >bcdcfsq.:

Re: [Qemu-devel] [PATCH v1 01/18] block/io: add bdrv_aio_{preadv, pwritev}

2016-11-24 Thread Pavel Butsykin
On 23.11.2016 17:28, Kevin Wolf wrote: Am 15.11.2016 um 07:36 hat Pavel Butsykin geschrieben: It's just byte-based wrappers over bdrv_co_aio_prw_vector(), which provide a byte-based interface for AIO read/write. Signed-off-by: Pavel Butsykin I'm in the process to phase out the last users o

Re: [Qemu-devel] [PATCH for-2.8] pci-assign: sync MSI/MSI-X cap and table with PCIDevice

2016-11-24 Thread Changlimin
Hi Peter, I have tested the patch, it has solved the issue. I think change dev->dev.msix_table = dev->msix_table; to dev->dev.msix_table = (uint8_t *)dev->msix_table; can avoid a gcc warning. Regards Chang limin -Original Message- From: Peter Xu [mailto:pet...@redhat.com] Sent

Re: [Qemu-devel] [ RFC Patch v7 0/2] Support Receive-Segment-Offload(RSC) for WHQL

2016-11-24 Thread Wei Xu
On 2016年11月24日 12:28, Jason Wang wrote: On 2016年11月01日 01:41, w...@redhat.com wrote: From: Wei Xu This patch is to support WHQL test for Windows guest, while this feature also benifits other guest works as a kernel 'gro' like feature with userspace implementation. Feature information: h

Re: [Qemu-devel] [PATCH for-2.8] pci-assign: sync MSI/MSI-X cap and table with PCIDevice

2016-11-24 Thread Peter Xu
On Fri, Nov 25, 2016 at 12:55:12AM +, Changlimin wrote: > Hi Peter, > I have tested the patch, it has solved the issue. > I think change > dev->dev.msix_table = dev->msix_table; > to > dev->dev.msix_table = (uint8_t *)dev->msix_table; > can avoid a gcc warning. Thanks for the comme

[Qemu-devel] [PATCH v2] pci-assign: sync MSI/MSI-X cap and table with PCIDevice

2016-11-24 Thread Peter Xu
Since commit e1d4fb2d ("kvm-irqchip: x86: add msi route notify fn"), kvm_irqchip_add_msi_route() starts to use pci_get_msi_message() to fetch MSI info. This requires that we setup MSI related fields in PCIDevice. For most devices, that won't be a problem, as long as we are using general interfaces

[Qemu-devel] [PATCH v3 02/11] tcg-mips: Add mips64 opcodes

2016-11-24 Thread Jin Guojie
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 193

[Qemu-devel] [PATCH v3 00/11] tcg mips64 and mips r6 improvements

2016-11-24 Thread Jin Guojie
Changes since v2: * Update against master(v2.8.0-rc1) * Tested on Loongson as mips32r2(el) and mips64r2(el) hosts. Loongson only implements little-endian mips32/mips64 ISA. * Fully work for 32-bit and 64-bit guests. Fix two bugs:segmentation fault on mips64el with 32-bit guests,

[Qemu-devel] [PATCH v3 04/11] tcg-mips: Add bswap32u and bswap64

2016-11-24 Thread Jin Guojie
Without the mips32r2 instructions to perform swapping, bswap is quite large, dominating the size of each reverse-endian qemu_ld/qemu_st operation. Create two subroutines in the prologue block. The subroutines require extra reserved registers (TCG_TMP[2, 3]). Using these within qemu_ld means that

[Qemu-devel] [PATCH v3 01/11] tcg-mips: Move bswap code to a subroutine

2016-11-24 Thread Jin Guojie
Without the mips32r2 instructions to perform swapping, bswap is quite large, dominating the size of each reverse-endian qemu_ld/qemu_st operation. Create a subroutine in the prologue block. The subroutine requires extra reserved registers (TCG_TMP[2, 3]). Using these within qemu_ld means that we

[Qemu-devel] [PATCH v3 08/11] tcg-mips: Add tcg unwind info

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index d4623b0..621

[Qemu-devel] [PATCH v3 06/11] tcg-mips: Adjust load/store functions for mips64

2016-11-24 Thread Jin Guojie
tcg_out_ldst: using a generic ALIAS_PADD to avoid ifdefs tcg_out_ld: generates LD or LW tcg_out_st: generates SD or SW Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 14 +++--- 1 file changed, 11 insertions

[Qemu-devel] [PATCH v3 09/11] tcg-mips: Adjust calling conventions for mips64

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 19 +++ tcg/mips/tcg-target.inc.c | 21 +++-- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.h b/t

[Qemu-devel] [PATCH v3 03/11] tcg-mips: Support 64-bit opcodes

2016-11-24 Thread Jin Guojie
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.h | 41 ++ tcg/mips/tcg-target.inc.c | 322 +++

[Qemu-devel] [PATCH v3 11/11] tcg-mips: Adjust condition functions for mips64

2016-11-24 Thread Jin Guojie
32-bit condition functions(like brcond_i32) should only compare the low half parts of two 64-bit host registers. However, MIPS64 does not have distinct instruction for such operation. The operands should be sign extended to fit the case. Gcc handles 32-bit comparison in the same way, as the follow

[Qemu-devel] [PATCH v3 07/11] tcg-mips: Adjust prologue for mips64

2016-11-24 Thread Jin Guojie
Take stack frame parameters out from the function body. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 54 ++- 1 file changed, 25 insertions(+), 29 deletions(-) diff --g

[Qemu-devel] [PATCH v3 05/11] tcg-mips: Adjust move functions for mips64

2016-11-24 Thread Jin Guojie
tcg_out_mov: using OPC_OR as most mips assemblers do; tcg_out_movi: extended to 64-bit immediate. Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 34 +- 1 file changed, 25 insertions(

[Qemu-devel] [PATCH v3 10/11] tcg-mips: Adjust qemu_ld/st for mips64

2016-11-24 Thread Jin Guojie
Cc: Aurelien Jarno Cc: James Hogan Signed-off-by: Richard Henderson Signed-off-by: Jin Guojie --- tcg/mips/tcg-target.inc.c | 169 +++--- 1 file changed, 114 insertions(+), 55 deletions(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc

[Qemu-devel] [PATCH v3 1/4] target-ppc: Implement bcdcfsq. instruction

2016-11-24 Thread Jose Ricardo Ziviani
bcdcfsq.: Decimal convert from signed quadword. It is not possible to convert values less than -10^31-1 or greater than 10^31-1 to be represented in packed decimal format. Signed-off-by: Jose Ricardo Ziviani --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 38

[Qemu-devel] [PATCH v3 3/4] target-ppc: Implement bcdcpsgn. instruction

2016-11-24 Thread Jose Ricardo Ziviani
bcdcpsgn.: Decimal copy sign. Given two registers vra and vrb, it copies the vra value with vrb sign to the result register vrt. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: David Gibson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 23 +++

[Qemu-devel] [PATCH v3 0/4] POWER9 TCG enablements - BCD functions part II

2016-11-24 Thread Jose Ricardo Ziviani
v3: - use decimal numbers instead of hex when appropriate - set condition register flag to the new form - fix bcdcfsq loops boundaries v2: - use div128 and mul64 functions to make code easier to understand - fixed int128 neg - improved functions bcdcpsgn and bcdsetsgn to do less work than

[Qemu-devel] [PATCH v3 2/4] target-ppc: Implement bcdctsq. instruction

2016-11-24 Thread Jose Ricardo Ziviani
bcdctsq.: Decimal convert to signed quadword. It is possible to convert packed decimal values to signed quadwords. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: David Gibson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 40 +

[Qemu-devel] [PATCH v3 4/4] target-ppc: Implement bcdsetsgn. instruction

2016-11-24 Thread Jose Ricardo Ziviani
bcdsetsgn.: Decimal set sign. This instruction copies the register value to the result register but adjust the signal according to the preferred sign value. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: David Gibson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c

Re: [Qemu-devel] [PATCH v3 for-2.9 0/3] q35: add negotiable broadcast SMI

2016-11-24 Thread Michael S. Tsirkin
On Thu, Nov 24, 2016 at 09:37:41AM +0100, Laszlo Ersek wrote: > On 11/24/16 05:29, Michael S. Tsirkin wrote: > > On Wed, Nov 23, 2016 at 07:38:35PM -0500, Kevin O'Connor wrote: > >> As a general comment - it does seem unfortunate that we keep building > >> adhoc interfaces to communicate informatio

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 04:08:50PM +0800, Peter Xu wrote: > We are very strict in the past getting MSIs from commit > d1f6af6a1 ("kvm-irqchip: simplify kvm_irqchip_add_msi_route"), assuming > that MSI should be configured before hand when fetching. When we have > unrecognized configurations, we pan

Re: [Qemu-devel] [PATCH] hw/pci: disable pci-bridge's shpc by default

2016-11-24 Thread David Gibson
On Thu, Nov 24, 2016 at 11:39:25AM +0200, Marcel Apfelbaum wrote: > On 11/24/2016 06:06 AM, David Gibson wrote: > > On Wed, Nov 23, 2016 at 01:08:46PM +0200, Marcel Apfelbaum wrote: > > > On 11/22/2016 10:25 PM, Laurent Vivier wrote: > > > > > > > > > > > > On 22/11/2016 18:26, Marcel Apfelbaum w

Re: [Qemu-devel] [PATCH v3 0/4] POWER9 TCG enablements - BCD functions part II

2016-11-24 Thread David Gibson
On Fri, Nov 25, 2016 at 01:53:29AM -0200, Jose Ricardo Ziviani wrote: > v3: > - use decimal numbers instead of hex when appropriate > - set condition register flag to the new form > - fix bcdcfsq loops boundaries > > v2: > - use div128 and mul64 functions to make code easier to understand > -

Re: [Qemu-devel] [PATCH v3 1/4] target-ppc: Implement bcdcfsq. instruction

2016-11-24 Thread David Gibson
On Fri, Nov 25, 2016 at 01:53:30AM -0200, Jose Ricardo Ziviani wrote: > bcdcfsq.: Decimal convert from signed quadword. It is not possible > to convert values less than -10^31-1 or greater than 10^31-1 to be > represented in packed decimal format. > > Signed-off-by: Jose Ricardo Ziviani > --- >

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Peter Xu
On Fri, Nov 25, 2016 at 06:11:01AM +0200, Michael S. Tsirkin wrote: > On Tue, Nov 22, 2016 at 04:08:50PM +0800, Peter Xu wrote: > > We are very strict in the past getting MSIs from commit > > d1f6af6a1 ("kvm-irqchip: simplify kvm_irqchip_add_msi_route"), assuming > > that MSI should be configured b

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Changlimin
-device pci-assign,configfd=30,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x3 KVM pci-assign is configured, maybe the same reason as http://lists.nongnu.org/archive/html/qemu-devel/2016-11/msg04668.html please try the patch inside it. Chang limin On Fri, Nov 25, 2016 at 06:11:01AM +0200, Michael S.

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Changlimin
update the link -device pci-assign,configfd=30,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x3 KVM pci-assign is configured, maybe the same reason as http://lists.nongnu.org/archive/html/qemu-devel/2016-11/msg04649.html please try the patch inside it. Chang limin

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Peter Xu
On Fri, Nov 25, 2016 at 06:03:59AM +, Changlimin wrote: > update the link > > -device pci-assign,configfd=30,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x3 > KVM pci-assign is configured, maybe the same reason as > http://lists.nongnu.org/archive/html/qemu-devel/2016-11/msg04649.html > please try

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Michael S. Tsirkin
On Fri, Nov 25, 2016 at 01:28:36PM +0800, Peter Xu wrote: > On Fri, Nov 25, 2016 at 06:11:01AM +0200, Michael S. Tsirkin wrote: > > On Tue, Nov 22, 2016 at 04:08:50PM +0800, Peter Xu wrote: > > > We are very strict in the past getting MSIs from commit > > > d1f6af6a1 ("kvm-irqchip: simplify kvm_irq

Re: [Qemu-devel] [PATCH v2] pci: relax pci_msi_get_message()

2016-11-24 Thread Peter Xu
On Fri, Nov 25, 2016 at 08:47:26AM +0200, Michael S. Tsirkin wrote: > On Fri, Nov 25, 2016 at 01:28:36PM +0800, Peter Xu wrote: > > On Fri, Nov 25, 2016 at 06:11:01AM +0200, Michael S. Tsirkin wrote: > > > On Tue, Nov 22, 2016 at 04:08:50PM +0800, Peter Xu wrote: > > > > We are very strict in the p

Re: [Qemu-devel] [PATCH v2 1/2] target-ppc: add vextu[bhw]lx instructions

2016-11-24 Thread Nikunj A Dadhania
Richard Henderson writes: > On 11/24/2016 12:32 PM, Nikunj A Dadhania wrote: >> +#if defined(HOST_WORDS_BIGENDIAN) >> +# if defined(CONFIG_INT128) >> +# define VEXTULX_DO(name, size) \ >> +target_ulong glue(helper_, name)(target_ulong a, ppc_avr_t *b) \ >>

<    1   2