[Qemu-devel] [PULL 16/44] adb.c: prevent NO_KEY value from going to guest

2016-09-22 Thread David Gibson
From: John Arbuckle The NO_KEY value should not be sent to the guest. This patch drops that value. Signed-off-by: John Arbuckle Signed-off-by: David Gibson --- hw/input/adb.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/hw/input/adb.c b/hw/input

[Qemu-devel] [PULL 17/44] spapr_drc: convert to trace framework instead of DPRINTF

2016-09-22 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Eric Blake Signed-off-by: David Gibson --- hw/ppc/spapr_drc.c | 54 - hw/ppc/trace-events | 21 + 2 files changed, 41 insertions(+), 34 deletions(-) diff -

[Qemu-devel] [PULL 32/44] target-ppc: add lxsi[bw]zx instruction

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania lxsibzx - Load VSX Scalar as Integer Byte & Zero Indexed lxsihzx - Load VSX Scalar as Integer Halfword & Zero Indexed Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 2 ++ target-ppc/translate/vsx-impl.inc.c | 2 ++

[Qemu-devel] [PULL 14/44] adb.c: add support for QKeyCode

2016-09-22 Thread David Gibson
From: John Arbuckle The old pc scancode translation is replaced with QEMU's QKeyCode. This is just a mechanical substitution, which a number of broken mappings left in. Signed-off-by: John Arbuckle Signed-off-by: David Gibson --- hw/input/adb.c | 234 ++

[Qemu-devel] [PULL 18/44] spapr_rtas: convert to trace framework instead of DPRINTF

2016-09-22 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Eric Blake Signed-off-by: David Gibson --- hw/ppc/spapr_rtas.c | 30 -- hw/ppc/trace-events | 8 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/

[Qemu-devel] [PULL 31/44] target-ppc: add xxspltib instruction

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania xxspltib: VSX Vector Splat Immediate Byte Copy the immediate byte in each byte of target VSR Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 2 ++ target-ppc/translate/vsx-impl.inc.c | 20 ta

[Qemu-devel] [PULL 25/44] target-ppc: consolidate store operations

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Implement macro to consolidate store operations using newer tcg_gen_qemu_st function. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 35 --- 1 file changed, 16 insertions(+), 19 deletions(-) di

[Qemu-devel] [PULL 24/44] target-ppc: convert ld[16, 32, 64]ur to use new macro

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Make byte-swap routines use the common GEN_QEMU_LOAD macro Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/target-ppc/translate.c b

[Qemu-devel] [PULL 26/44] target-ppc: convert st64 to use new macro

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Use macro for st64 as well, this changes the function signature from gen_qemu_st64 => gen_qemu_st64_i64. Replace this at all the call sites. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 37 ++

[Qemu-devel] [PULL 29/44] target-ppc: move out stqcx impementation

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Being a 16byte operation, qemu_ld/st still does not support this. Move this out so other store operation can use qemu_ld/st in the following patch. Also, convert it to two MO_Q operations for stqcx. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- targe

[Qemu-devel] [PULL 44/44] monitor: fix crash for platforms without a CPU 0

2016-09-22 Thread David Gibson
Now that we allow CPU hot unplug on a few platforms, we can end up in a situation where we don't have a CPU with index 0. Or at least we could, if we didn't have code to explicitly prohibit unplug of CPU 0. Longer term we want to allow CPU 0 unplug, this patch is an early step in allowing this, b

[Qemu-devel] [PULL 42/44] ppc/kvm: Mark 64kB page size support as disabled if not available

2016-09-22 Thread David Gibson
From: Thomas Huth QEMU currently refuses to start with KVM-PR and only prints out qemu: fatal: Unknown MMU model 851972 when being started there. This is because commit 4322e8ced5aaac719 ("ppc: Fix 64K pages support in full emulation") introduced a new POWERPC_MMU_64K bit to indicate su

[Qemu-devel] [PULL 43/44] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP

2016-09-22 Thread David Gibson
From: Michael Walle Only the POWER[789] CPUs should have the ARCH_206 bit set. This is what the linux kernel does. I guess this was also the intention of commit 0e019746. We have to make sure all *206 bits are set. Before this patch, the flags check in the GET_FEATURES2 macro returned true if _a

[Qemu-devel] [PULL 30/44] target-ppc: consolidate store conditional

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Use tcg_gen_qemu_st store conditional instructions. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 58 +- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/target-p

[Qemu-devel] [PULL 39/44] Enable H_CLEAR_MOD and H_CLEAR_REF hypercalls on KVM/PPC64.

2016-09-22 Thread David Gibson
From: Nathan Whitehorn These are mandatory per PAPR and available on Linux 4.3 and newer kernels. The calls in question are required to run FreeBSD guests with reasonable performance, so enable them if possible. Signed-off-by: Nathan Whitehorn [dwg: Added a stub to fix compile without KVM (e.

[Qemu-devel] [PULL 21/44] spapr_vscsi: convert to trace framework instead of DPRINTF

2016-09-22 Thread David Gibson
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Eric Blake Signed-off-by: David Gibson --- hw/scsi/spapr_vscsi.c | 88 +-- hw/scsi/trace-events | 27 2 files changed, 63 insertions(+), 52 deletions(-) diff --gi

[Qemu-devel] [PULL 38/44] target-ppc: tlbie/tlbivax should have global effect

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania tlbie (BookS) and tlbivax (BookE) plus the H_CALLs(pseries) should have a global effect. Introduces TLB_NEED_GLOBAL_FLUSH flag. During lazy tlb flush, after taking care of pending local flushes, check broadcast flush(at context synchronizing event ptesync/tlbsync, etc) is

[Qemu-devel] [PULL 34/44] target-ppc: implement darn instruction

2016-09-22 Thread David Gibson
From: Ravi Bangoria darn: Deliver A Random Number Currently return invalid random number for all the case. This needs proper algorithm to provide cryptographically suitable random data. Reading from /dev/random can block and that is not an expected behaviour while the cpu instruction is getting

[Qemu-devel] [PULL 35/44] spapr: Introduce sPAPRCPUCoreClass

2016-09-22 Thread David Gibson
From: Bharata B Rao Each spapr cpu core type defines an instance_init routine which just populates the CPU class name. This can be done in the class_init commonly for all core types which simplifies the registration. This is inspired by how PowerNV core types are registered. Certain types of spa

[Qemu-devel] [PULL 03/44] target-ppc: add vector insert instructions

2016-09-22 Thread David Gibson
From: Rajalakshmi Srinivasaraghavan The following vector insert instructions are added from ISA 3.0. vinsertb - Vector Insert Byte vinserth - Vector Insert Halfword vinsertw - Vector Insert Word vinsertd - Vector Insert Doubleword Signed-off-by: Rajalakshmi Srinivasaraghavan Signed-off-by: Dav

[Qemu-devel] [PULL 23/44] target-ppc: convert ld64 to use new macro

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Use macro for ld64 as well, this changes the function signature from gen_qemu_ld64 => gen_qemu_ld64_i64. Replace this at all the call sites. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 39 +++---

[Qemu-devel] [PULL 41/44] ppc/xics: An ICS with offset 0 is assumed to be uninitialized

2016-09-22 Thread David Gibson
From: Benjamin Herrenschmidt This will make life easier for dealing with dynamically configured ICSes such as PHB3 Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- include/hw/ppc/xics.h | 2 +- 1 file changed, 1

[Qemu-devel] [PULL 36/44] target-ppc: add TLB_NEED_LOCAL_FLUSH flag

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Introduces bit-flag in CPUPPCState::tlb_need_flush: TLB_NEED_LOCAL_FLUSH (0x1) - Flush local tlb This would indicate a pending local tlb flush (isync instructions, interrupts, ...) Signed-off-by: Nikunj A Dadhania Reviewed-by: David Gibson Signed-off-by: David Gibso

[Qemu-devel] [PULL 33/44] target-ppc: add stxsi[bh]x instruction

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania stxsibx - Store VSX Scalar as Integer Byte Indexed stxsihx - Store VSX Scalar as Integer Halfword Indexed Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 2 ++ target-ppc/translate/vsx-impl.inc.c | 3 +++ target-pp

[Qemu-devel] [PULL 37/44] target-ppc: add flag in check_tlb_flush()

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania We flush the qemu TLB lazily. check_tlb_flush is called whenever we hit a context synchronizing event or instruction that requires a pending flush to be performed. However, we fail to handle broadcast TLB flush operations. In order to fix that efficiently, we want to diff

[Qemu-devel] [PULL 40/44] ppc/xics: account correct irq status

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Fix inconsistent irq status, because of this in the trace logs, for e.g. LSI status was 0x7, i.e. XICS_STATUS_ASSERTED, XICS_STATUS_SENT and XICS_STATUS_REJECTED all set, which did not make sense. So the REJECTED would have been set in earlier interrupt cycle, and then ass

[Qemu-devel] [PULL 05/44] target-ppc: add vector count trailing zeros instructions

2016-09-22 Thread David Gibson
From: Rajalakshmi Srinivasaraghavan The following vector count trailing zeros instructions are added from ISA 3.0. vctzb - Vector Count Trailing Zeros Byte vctzh - Vector Count Trailing Zeros Halfword vctzw - Vector Count Trailing Zeros Word vctzd - Vector Count Trailing Zeros Doubleword Signed

[Qemu-devel] [PULL 28/44] target-ppc: consolidate load with reservation

2016-09-22 Thread David Gibson
From: Nikunj A Dadhania Use tcg_gen_qemu_ld in the load with reservation instructions. Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson --- target-ppc/translate.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/target-ppc/translate.c b/

Re: [Qemu-devel] [PULL 00/13] AVR target

2016-09-22 Thread Thomas Huth
On Tue, 20 Sep 2016 12:54:31 -0700 Richard Henderson wrote: > Let us merge patch set v18. > > > r~ > > > > The following changes since commit ebc231d7daf1f41b23d8b6a6d1234800b86e5fe2: > > Merge remote-tracking branch 'remotes/awilliam/tags/vfio-fixes-20160915.0' > into staging (2016-09-1

[Qemu-devel] [PULL 07/44] target-ppc: add vector permute right indexed instruction

2016-09-22 Thread David Gibson
From: Rajalakshmi Srinivasaraghavan Add vpermr instruction from ISA 3.0. Signed-off-by: Rajalakshmi Srinivasaraghavan Signed-off-by: David Gibson --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 23 +++ target-ppc/translate/vmx-impl.inc

Re: [Qemu-devel] [PATCH] exec: fix tlb_vaddr_to_host()

2016-09-22 Thread Laurent Vivier
Already fixed by a Ben's non applied patch: http://patchwork.ozlabs.org/patch/655238/ Laurent On 21/09/2016 19:06, Laurent Vivier wrote: > When used in linux-user mode, tlb_vaddr_to_host(..., addr, ...)) > should return "g2h(addr)", but instead it returns "g2h(vaddr)". > As "vaddr" is "typedef

Re: [Qemu-devel] [PATCH 4/7] e1000e: Fix PBACLR implementation

2016-09-22 Thread Jason Wang
On 2016年09月15日 14:14, Dmitry Fleytman wrote: This patch fixes incorrect check for interrypt type being used. PBSCLR register is valid for MSI-X only. See spec. 10.2.3.13 MSI—X PBA Clear Signed-off-by: Dmitry Fleytman --- hw/net/e1000e_core.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[Qemu-devel] [PULL 11/44] tests: add RTAS command in the protocol

2016-09-22 Thread David Gibson
From: Laurent Vivier Add a first test to validate the protocol: - rtas/get-time-of-day compares the time from the guest with the time from the host. Signed-off-by: Laurent Vivier Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_rtas.c | 19 include/

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Gonglei (Arei)
> -Original Message- > From: Greg Kurz [mailto:gr...@kaod.org] > Sent: Thursday, September 22, 2016 2:43 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Kevin Wolf; Michael S. Tsirkin; Jason Wang; Max > Reitz; Aneesh Kumar K.V; Stefan Hajnoczi; Cornelia Huck; Paolo Bonzini > Subject:

Re: [Qemu-devel] [PATCH qemu v2] tap: Allow specifying a bridge

2016-09-22 Thread Jason Wang
On 2016年09月14日 23:12, Eric Blake wrote: On 09/14/2016 09:17 AM, Greg Kurz wrote: On Tue, 13 Sep 2016 17:11:54 +1000 Alexey Kardashevskiy wrote: The tap backend is already using qemu-bridge-helper to attach tap interface to a bridge but (unlike the bridge backend) it always uses the default

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Greg Kurz
On Thu, 22 Sep 2016 09:19:49 +0800 Gonglei wrote: > On 2016/9/21 21:13, Greg Kurz wrote: > > This series is a follow up to Stefan's work to eradicate most calls to > > exit() we currently have in the virtio code. > > > > It addresses all exit() call sites in the blk, net and scsi device code, >

Re: [Qemu-devel] [PATCH v3] scripts: Add a script to check for bug URLs in the git log

2016-09-22 Thread Thomas Huth
On Wed, 21 Sep 2016 15:00:21 -0500 Eric Blake wrote: > On 09/21/2016 02:42 PM, Thomas Huth wrote: > > Basic idea of this script is to check the git log for URLs > > to the QEMU bugtracker at launchpad.net and to figure out > > whether the related bug has been marked there as "Fix released" > > (i

Re: [Qemu-devel] [PATCH v3] scripts: Add a script to check for bug URLs in the git log

2016-09-22 Thread Thomas Huth
On Wed, 21 Sep 2016 22:08:10 +0200 Paolo Bonzini wrote: > On 21/09/2016 21:42, Thomas Huth wrote: > > Basic idea of this script is to check the git log for URLs > > to the QEMU bugtracker at launchpad.net and to figure out > > whether the related bug has been marked there as "Fix released" > > (i

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-22 Thread zhong...@sangfor.com.cn
Hi, Paolo Thanks for your suggestions, although I don't comply with the idea of rtc_delta yet. But beyond this, I understand your position, and I think the principle you insist on, I mean being simpler, is necessary for the health and sustainability of the project. I'll submit a simpler patch fo

Re: [Qemu-devel] [PATCH v6 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-22 Thread Peter Xu
On Thu, Sep 22, 2016 at 03:20:48PM +1000, David Gibson wrote: > On Wed, Sep 21, 2016 at 12:58:54PM +0800, Peter Xu wrote: > > IOMMU Notifier list is used for notifying IO address mapping changes. > > Currently VFIO is the only user. > > > > However it is possible that future consumer like vhost wo

Re: [Qemu-devel] [PATCH qemu v2] tap: Allow specifying a bridge

2016-09-22 Thread Jason Wang
On 2016年09月19日 19:59, Paolo Bonzini wrote: On 19/09/2016 02:33, Alexey Kardashevskiy wrote: On 15/09/16 07:04, Paolo Bonzini wrote: On 13/09/2016 09:11, Alexey Kardashevskiy wrote: The tap backend is already using qemu-bridge-helper to attach tap interface to a bridge but (unlike the bridg

Re: [Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() syscall

2016-09-22 Thread Aleksandar Markovic
Hi, Riku, Thanks a lots for your review. I have no problem deleting "#ifdef TARGET_NR_adjtimex" in strace.c. However, I want to bring to your attention the case of future target Linux platforms seizing supporting adjtimex(). Let's say this reflects in such a way that TARGET_NR_adjtimex is not

Re: [Qemu-devel] [PATCH] net: limit allocation in nc_sendv_compat

2016-09-22 Thread Jason Wang
On 2016年09月16日 21:27, Peter Lieven wrote: Am 30.06.2016 um 15:39 schrieb Stefan Hajnoczi: On Thu, Jun 30, 2016 at 11:49:40AM +0200, Peter Lieven wrote: we only need to allocate enough memory to hold the packet. This might be less than NET_BUFSIZE. Additionally fail early if the packet is lar

Re: [Qemu-devel] [Qemu-ppc] KVM-PR is broken with current QEMU

2016-09-22 Thread Thomas Huth
On Thu, 22 Sep 2016 07:30:52 +0200 Thomas Huth wrote: > On Thu, 22 Sep 2016 11:57:15 +1000 > David Gibson wrote: > > > On Wed, Sep 21, 2016 at 10:22:11AM +0200, Thomas Huth wrote: > > > On 20.09.2016 16:39, Cédric Le Goater wrote: > > > > On 09/20/2016 04:24 PM, Thomas Huth wrote: > > > >> On 2

Re: [Qemu-devel] [PATCH] checkpatch: downgrade "architecture specific defines should be avoided"

2016-09-22 Thread Markus Armbruster
Paolo Bonzini writes: > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index dde3f5f..3afa19a 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -2407,7 +2407,7 @@ sub proce

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Greg Kurz
On Thu, 22 Sep 2016 06:55:43 + "Gonglei (Arei)" wrote: > > -Original Message- > > From: Greg Kurz [mailto:gr...@kaod.org] > > Sent: Thursday, September 22, 2016 2:43 PM > > To: Gonglei (Arei) > > Cc: qemu-devel@nongnu.org; Kevin Wolf; Michael S. Tsirkin; Jason Wang; Max > > Reitz; Ane

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Gonglei (Arei)
Hi Greg, > -Original Message- > From: Greg Kurz [mailto:gr...@kaod.org] > Sent: Thursday, September 22, 2016 3:22 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Kevin Wolf; Michael S. Tsirkin; Jason Wang; Max > Reitz; Aneesh Kumar K.V; Stefan Hajnoczi; Cornelia Huck; Paolo Bonzini

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Gonglei (Arei)
> -Original Message- > From: Greg Kurz [mailto:gr...@kaod.org] > Sent: Thursday, September 22, 2016 3:22 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Kevin Wolf; Michael S. Tsirkin; Jason Wang; Max > Reitz; Aneesh Kumar K.V; Stefan Hajnoczi; Cornelia Huck; Paolo Bonzini > Subject:

Re: [Qemu-devel] [PATCH] crypto: add CTR mode support

2016-09-22 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Message-id: 1474525997-318296-1-git-send-email-arei.gong...@huawei.com Subject: [Qemu-devel] [PATCH] crypto: add

Re: [Qemu-devel] [PATCH] Fix tlb_vaddr_to_host with CONFIG_USER_ONLY

2016-09-22 Thread Laurent Vivier
On 21/09/2016 23:21, Benjamin Herrenschmidt wrote: > We use the wrong argument name for the g2h() macro ! > > The result ends up being something like (target_ulong)(uint64) + guest_base > which is obviously wrong. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Laurent Vivier Tested-b

Re: [Qemu-devel] [PATCH] qmp: fix object-add assert() without props

2016-09-22 Thread Daniel P. Berrange
On Wed, Sep 21, 2016 at 11:41:26PM +0400, Marc-André Lureau wrote: > Since commit ad739706bbadee49, user_creatable_add_type() expects to be > given a qdict. However, if object-add is called without props, you reach > the assert: "qemu/qom/object_interfaces.c:115: user_creatable_add_type: > Assertio

[Qemu-devel] [RFC/PATCH 2] kvm: x86: handle KVM_SET_VCPU_EVENTS/KVM_VCPUEVENT_VALID_SMM properly

2016-09-22 Thread Herongguang (Stephen)
After making memory consistent between source and destination (https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg03069.html), there can still reproduce instruction emulation failure in destination side if migration when VM’s in grub stage: [2016-09-15 06:29:24] monitor_qapi_event_emit:47

Re: [Qemu-devel] [PATCH] exec: fix tlb_vaddr_to_host()

2016-09-22 Thread Aurelien Jarno
On 2016-09-21 19:06, Laurent Vivier wrote: > When used in linux-user mode, tlb_vaddr_to_host(..., addr, ...)) > should return "g2h(addr)", but instead it returns "g2h(vaddr)". > As "vaddr" is "typedef uint64_t", the result of "g2h(vaddr)" is > "((void *)((unsigned long)(target_ulong)(uint64_t) + gu

Re: [Qemu-devel] QEMU dtc submodule

2016-09-22 Thread Thomas Huth
On Wed, 21 Sep 2016 12:44:59 +0100 Leon Alrae wrote: > Hi, > > What's the procedure to update / who can update QEMU's dtc mirror > git://git.qemu.org/dtc.git which is used as submodule? > > There's a patch series relying on the dtc v1.4.2 tag: > https://lists.nongnu.org/archive/html/qemu-devel/

Re: [Qemu-devel] [PATCH v6 3/3] intel_iommu: allow UNMAP notifiers

2016-09-22 Thread Paolo Bonzini
On 22/09/2016 07:55, Peter Xu wrote: > I posted patch 3 just to make sure everything is coherent, and let > Paolo decide which way to choose (since I still think it's okay > actually... but again both are ok to me). Also it'll be easier for > Jason to track this down as well (so when Jason sees t

Re: [Qemu-devel] [PULL 00/44] ppc-for-2.8 queue 20160922

2016-09-22 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Message-id: 1474526262-27011-1-git-send-email-da...@gibson.dropbear.id.au Subject: [Qemu-devel] [PULL 00/44] ppc-for-2.8 queue 20160922 === TEST SCRIPT BEGIN === #!/bin/bash BASE=base

Re: [Qemu-devel] [PATCH] qtest: fix make check complaint in crypto module

2016-09-22 Thread Daniel P. Berrange
On Thu, Sep 22, 2016 at 02:35:49PM +0800, Gonglei wrote: > CCtests/test-crypto-tlscredsx509.o > CCtests/crypto-tls-x509-helpers.o > CCtests/pkix_asn1_tab.o > tests/pkix_asn1_tab.c:7:22: warning: libtasn1.h: No such file or directory > tests/pkix_asn1_tab.c:9: error: expected ‘=’,

[Qemu-devel] [RFC/PATCH 3] kvm: fix events.flags (KVM_VCPUEVENT_VALID_SMM) overwritten by 0

2016-09-22 Thread Herongguang (Stephen)
Fix events.flags (KVM_VCPUEVENT_VALID_SMM) overwritten by 0. Signed-off-by: He Rongguang --- Note without patch 2, this would result in kvm-kmod crash, as described in patch 2 --- target-i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/kvm.c b/target-i

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Greg Kurz
On Thu, 22 Sep 2016 07:38:29 + "Gonglei (Arei)" wrote: > Hi Greg, > > > > > -Original Message- > > From: Greg Kurz [mailto:gr...@kaod.org] > > Sent: Thursday, September 22, 2016 3:22 PM > > To: Gonglei (Arei) > > Cc: qemu-devel@nongnu.org; Kevin Wolf; Michael S. Tsirkin; Jason Wang

[Qemu-devel] [PATCH 1/1] qom: fix qdict visit in user_creatable_add_type

2016-09-22 Thread Xiao Long Jiang
This fixes a Qemu crash that introduced by commit ad73970 ("qom: Wrap prop visit in visit_start_struct"). Not all of the callers of user_creatable_add_type always pass qdict, so we should check qdict against NULL, but not raise an assertion. The problem can be easily triggered by adding an iothre

Re: [Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() syscall

2016-09-22 Thread Riku Voipio
On Thu, Sep 22, 2016 at 07:05:11AM +, Aleksandar Markovic wrote: > Hi, Riku, > > Thanks a lots for your review. > > I have no problem deleting "#ifdef TARGET_NR_adjtimex" in strace.c. > > However, I want to bring to your attention the case of future target Linux > platforms seizing supporti

Re: [Qemu-devel] [PATCH] replay: Fix build with -Werror=unused-result

2016-09-22 Thread Daniel P. Berrange
On Wed, Sep 21, 2016 at 01:18:58PM -0500, Eric Blake wrote: > On 09/21/2016 10:28 AM, Markus Armbruster wrote: > > >> The compiler.h file has no license header, just a comment > >> saying "public domain", which is obviously not the case > >> if you add this macro. > >> > >> Given that you'll need

Re: [Qemu-devel] [PATCH v2 3/4] qapi: return a 'missing parameter' error

2016-09-22 Thread Daniel P. Berrange
On Thu, Sep 22, 2016 at 12:10:17AM +0400, Marc-André Lureau wrote: > The 'old' dispatch code returned a QERR_MISSING_PARAMETER for missing > parameters, but the qapi qmp_dispatch() code uses > QERR_INVALID_PARAMETER_TYPE. > > Improve qapi code to return QERR_INVALID_PARAMETER_TYPE where > appropri

Re: [Qemu-devel] [PATCH] crypto: add CTR mode support

2016-09-22 Thread Daniel P. Berrange
On Thu, Sep 22, 2016 at 12:17:43AM -0700, no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote: > Hi, > > Your series failed automatic build test. Please find the testing commands and > their output below. If you have docker installed, you can probably reproduce > it > locally. > GTESTER tes

Re: [Qemu-devel] [PATCH v3 07/10] ppc/pnv: add XSCOM infrastructure

2016-09-22 Thread Cédric Le Goater
>> @@ -493,6 +525,8 @@ static void pnv_chip_power9_class_init(ObjectClass >> *klass, void *data) >> k->chip_cfam_id = 0x100d10498000ull; /* P9 Nimbus DD1.0 */ >> k->cores_mask = POWER9_CORE_MASK; >> k->core_pir = pnv_chip_core_pir_p9; >> +k->xscom_addr = pnv_chip_xscom_addr_

Re: [Qemu-devel] [PATCH v12 00/27] IOMMU: Enable interrupt remapping for Intel IOMMU

2016-09-22 Thread Igor Mammedov
On Thu, 14 Jul 2016 13:56:09 +0800 Peter Xu wrote: > This is v12 for Intel IR. Rebased to lastest master, with some tiny > tweaks from v11. Please check changelog below. Hi Peter, While testing current master 9b8595bc with merged IR remapping and default IDE disk as following: qemu-system-x86_

Re: [Qemu-devel] [PATCH 0/7] virtio: avoid inappropriate QEMU termination

2016-09-22 Thread Cornelia Huck
On Thu, 22 Sep 2016 10:14:56 +0200 Greg Kurz wrote: > On Thu, 22 Sep 2016 07:38:29 + > "Gonglei (Arei)" wrote: > > I saw virtio_error() only handle the virtio 1.0 device, the legacy virtio > > device may > > still stuck, am I right? > > > > The DEVICE_NEEDS_RESET bit was introduced by th

Re: [Qemu-devel] [PATCH v3 08/10] ppc/pnv: add a XScomDevice to PnvCore

2016-09-22 Thread Cédric Le Goater
On 09/21/2016 08:12 AM, David Gibson wrote: > On Thu, Sep 15, 2016 at 02:45:58PM +0200, Cédric Le Goater wrote: >> Now that we are using real HW ids for the cores in PowerNV chips, we >> can route the XSCOM accesses to them. We just need to attach a >> specific XSCOM memory region to each core in t

Re: [Qemu-devel] [PATCH v9 05/11] vfio: add check host bus reset is support or not

2016-09-22 Thread Dou Liyang
Hi Alex, At 09/01/2016 03:56 AM, Alex Williamson wrote: On Tue, 19 Jul 2016 15:38:23 +0800 Zhou Jie wrote: From: Chen Fan When assigning a vfio device with AER enabled, we must check whether the device supports a host bus reset (ie. hot reset) as this may be used by the guest OS in order to

[Qemu-devel] [PATCH] x86: ioapic: boost default version to 0x20

2016-09-22 Thread Peter Xu
It's 2.8 now, and maybe it's time to switch IOAPIC default version to 0x20. Signed-off-by: Peter Xu --- hw/intc/ioapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index 31791b0..fd9208f 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioap

Re: [Qemu-devel] 答复: Re: [PATCH v2] object: Add 'help' option for all available backends and properties

2016-09-22 Thread Markus Armbruster
"Lin Ma" writes: Markus Armbruster 2016/9/20 星期二 上午 1:13 >>> >>Andreas Färber writes: >> >>> Hi Lin and Markus, >>> >>> Am 19.09.2016 um 13:58 schrieb Markus Armbruster: >>[...] You're messing with struct EnumProperty because you want more help than what ObjectPropertyInfo can pr

Re: [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' doc to schema

2016-09-22 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> On 09/13/2016 08:01 AM, Marc-André Lureau wrote: >> > Signed-off-by: Marc-André Lureau >> > --- >> > docs/qmp-commands.txt | 29 - >> > qapi-schema.json | 13 + >> > 2 files changed,

[Qemu-devel] [PATCH v4 05/17] trace: remove duplicate control.h includes in generated-tracers.h

2016-09-22 Thread Daniel P. Berrange
The format/h.py file adds an include for control.h to generated-tracers.h. ftrace, log and syslog, then add more duplicate includes for control.h. Reviewed-by: Lluís Vilanova Signed-off-by: Daniel P. Berrange --- scripts/tracetool/backend/ftrace.py | 1 - scripts/tracetool/backend/log.py| 3

[Qemu-devel] [PATCH v4 01/17] trace: add trace event iterator APIs

2016-09-22 Thread Daniel P. Berrange
Currently methods which want to iterate over trace events, do so using the trace_event_count() and trace_event_id() methods. This leaks the concept of a single ID enum to the callers. There is an alternative trace_event_pattern() method which can be used in an iteration context, but its design is s

[Qemu-devel] [PATCH v4 04/17] trace: remove global 'uint16 dstate[]' array

2016-09-22 Thread Daniel P. Berrange
Instead of having a global dstate array, declare a single 'uint16 TRACE_${EVENT_NAME}_DSTATE' variable for each trace event. Record a pointer to this variable in the TraceEvent struct too. By turning trace_event_get_state_dynamic_by_id into a macro, this still hits the fast path, and cache affinit

[Qemu-devel] [PATCH v4 00/17] Refactor trace to allow modular build

2016-09-22 Thread Daniel P. Berrange
These patches were previously posted as part of my giant trace events modular build series v1: https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg01714.html v2: https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg03335.html This series does all the refactoring required to support a

[Qemu-devel] [PATCH v4 02/17] trace: convert code to use event iterators

2016-09-22 Thread Daniel P. Berrange
This converts the HMP/QMP monitor API implementations and some internal trace control methods to use the new trace event iterator APIs. Reviewed-by: Stefan Hajnoczi Signed-off-by: Daniel P. Berrange --- monitor.c | 26 ++ trace/control.c | 85 ++

[Qemu-devel] [PATCH v4 09/17] trace: emit name <-> ID mapping in simpletrace header

2016-09-22 Thread Daniel P. Berrange
Currently simpletrace assumes that events are given IDs starting from 0, based on the order in which they appear in the trace-events file, with no gaps. When the trace-events file is split up, this assumption becomes problematic. To deal with this, extend the simpletrace format so that it outputs

[Qemu-devel] [PATCH v4 08/17] trace: remove the TraceEventID and TraceEventVCPUID enums

2016-09-22 Thread Daniel P. Berrange
The TraceEventID and TraceEventVCPUID enums constants are no longer actually used for anything critical. The TRACE_EVENT_COUNT limit is used to determine the size of the TraceEvents array, and can be removed if we just NULL terminate the array instead. The TRACE_VCPU_EVENT_COUNT limit is used as

[Qemu-devel] [PATCH v4 07/17] trace: give each trace event a named TraceEvent struct

2016-09-22 Thread Daniel P. Berrange
Currently we only expose a TraceEvent array, which must be indexed via the TraceEventID enum constants. This changes the generator to expose a named TraceEvent instance for each event, with an _EV suffix. Signed-off-by: Daniel P. Berrange --- scripts/tracetool/__init__.py| 1 + scripts/

[Qemu-devel] [PATCH v4 03/17] trace: remove some now unused functions

2016-09-22 Thread Daniel P. Berrange
The trace_event_count, trace_event_id and trace_event_pattern methods are no longer required now that everything is using the iterator APIs The trace_event_set_state and trace_event_set_vcpu_state macros were also unused. Reviewed-by: Lluís Vilanova Signed-off-by: Daniel P. Berrange --- trace/

[Qemu-devel] [PATCH v4 13/17] trace: dynamically allocate event IDs at runtime

2016-09-22 Thread Daniel P. Berrange
Instead of having the code generator assign event IDs and event VCPU IDs, assign them when the events are registered at runtime. This will allow us allow code to be generated from individual trace-events without having to figure out globally unique numbering at build time. Signed-off-by: Daniel P.

Re: [Qemu-devel] [PATCH] crypto: add CTR mode support

2016-09-22 Thread Gonglei (Arei)
> -Original Message- > From: Daniel P. Berrange [mailto:berra...@redhat.com] > Sent: Thursday, September 22, 2016 4:17 PM > To: qemu-devel@nongnu.org > Cc: Gonglei (Arei); f...@redhat.com; Wubin (H) > Subject: Re: [Qemu-devel] [PATCH] crypto: add CTR mode support > > On Thu, Sep 22, 2016

[Qemu-devel] [PATCH v4 06/17] trace: break circular dependency in event-internal.h

2016-09-22 Thread Daniel P. Berrange
Currently event-internal.h includes generated-events.h, while generated-events.h includes event-internal.h causing a circular dependency. event-internal.h requires that the content of generated-events.h comes first, so that it can see the typedefs for TraceEventID and TraceEventVCPUID. Switching

Re: [Qemu-devel] QEMU dtc submodule

2016-09-22 Thread Alexander Graf
On 09/22/2016 10:11 AM, Thomas Huth wrote: On Wed, 21 Sep 2016 12:44:59 +0100 Leon Alrae wrote: Hi, What's the procedure to update / who can update QEMU's dtc mirror git://git.qemu.org/dtc.git which is used as submodule? There's a patch series relying on the dtc v1.4.2 tag: https://lists.non

[Qemu-devel] [PATCH v4 14/17] trace: get rid of generated-events.h/generated-events.c

2016-09-22 Thread Daniel P. Berrange
Currently the generated-events.[ch] files contain the event dstates, constants and TraceEvent structs, while the generated-tracers.[ch] files contain the actual trace probe logic. With the removal of usage of the event enums from the API there is no longer any compelling reason for the separation b

[Qemu-devel] [PATCH v4 15/17] trace: rename _read_events to read_events

2016-09-22 Thread Daniel P. Berrange
The _read_events method is used by callers outside of its module, so should be a public method, not private. Reviewed-by: Lluís Vilanova Signed-off-by: Daniel P. Berrange --- scripts/simpletrace.py| 6 +++--- scripts/tracetool/__init__.py | 14 -- 2 files changed, 15 insert

[Qemu-devel] [PATCH v4 16/17] trace: push reading of events up a level to tracetool main

2016-09-22 Thread Daniel P. Berrange
Move the reading of events out of the 'tracetool.generate' method and into tracetool.main, so that the latter is not tied to generating from a single source of events. Reviewed-by: Lluís Vilanova Signed-off-by: Daniel P. Berrange --- scripts/tracetool.py | 4 +++- scripts/tracetool/__i

[Qemu-devel] [PATCH v4 10/17] trace: don't abort qemu if ftrace can't be initialized

2016-09-22 Thread Daniel P. Berrange
If the ftrace backend is compiled into QEMU, any attempt to start QEMU while non-root will fail due to the inability to open /sys/kernel/debug/tracing/trace_on. Add a fallback into the code so that it connects up the trace_marker_fd variable to /dev/null when setting EACCESS on the 'trace_on' file

[Qemu-devel] [PATCH v4 17/17] trace: pass trace-events to tracetool as a positional param

2016-09-22 Thread Daniel P. Berrange
Instead of reading the contents of 'trace-events' from stdin, accept the filename as a positional parameter. This also allows for reading from multiple files, though this facility is not used at this time. Signed-off-by: Daniel P. Berrange --- Makefile.target | 6 +++--- scripts/tracetool.

Re: [Qemu-devel] [PATCH v3 10/10] ppc/pnv: add a ISA bus

2016-09-22 Thread Cédric Le Goater
>> +static ISABus *pnv_isa_create(PnvChip *chip) >> +{ >> +PnvLpcController *lpc = &chip->lpc; >> +ISABus *isa_bus; >> +qemu_irq *irqs; >> +PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); >> + >> +/* Instanciate ISA bus. let isa_bus_new() create its own bridge on > > Instantiate

Re: [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' doc to schema

2016-09-22 Thread Marc-André Lureau
Hi - Original Message - > Marc-André Lureau writes: > > > Hi > > > > - Original Message - > >> On 09/13/2016 08:01 AM, Marc-André Lureau wrote: > >> > Signed-off-by: Marc-André Lureau > >> > --- > >> > docs/qmp-commands.txt | 29 - > >> > qapi-schema

[Qemu-devel] [PATCH v4 11/17] trace: provide mechanism for registering trace events

2016-09-22 Thread Daniel P. Berrange
Remove the notion of there being a single global array of trace events, by introducing a method for registering groups of events. Signed-off-by: Daniel P. Berrange --- include/qemu/module.h| 2 ++ qemu-img.c | 1 + qemu-io.c

Re: [Qemu-devel] [PATCH] qtest: fix make check complaint in crypto module

2016-09-22 Thread Gonglei (Arei)
> -Original Message- > From: Daniel P. Berrange [mailto:berra...@redhat.com] > Sent: Thursday, September 22, 2016 4:12 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; Wubin (H) > Subject: Re: [PATCH] qtest: fix make check complaint in crypto module > > On Thu, Sep 22, 2016 at 02:35:

Re: [Qemu-devel] 答复: Re: [PATCH v2] object: Add 'help' option for all available backends and properties

2016-09-22 Thread Daniel P. Berrange
On Thu, Sep 22, 2016 at 10:36:45AM +0200, Markus Armbruster wrote: > Don't make up a description in user_creatable_help_func(), improve the > description infrastructure and its use so you get more useful ones > there. > > The existing description infrastructure is just Property member > descriptio

Re: [Qemu-devel] [PATCH v12 00/27] IOMMU: Enable interrupt remapping for Intel IOMMU

2016-09-22 Thread Peter Xu
On Thu, Sep 22, 2016 at 10:29:39AM +0200, Igor Mammedov wrote: > On Thu, 14 Jul 2016 13:56:09 +0800 > Peter Xu wrote: > > > This is v12 for Intel IR. Rebased to lastest master, with some tiny > > tweaks from v11. Please check changelog below. > > Hi Peter, > > While testing current master 9b859

[Qemu-devel] [PATCH v4 12/17] trace: dynamically allocate trace_dstate in CPUState

2016-09-22 Thread Daniel P. Berrange
The CPUState struct has a bitmap tracking which VCPU events are currently active. This is indexed based on the event ID values, and sized according the maximum TraceEventVCPUID enum value. When we start dynamically assigning IDs at runtime, we can't statically declare a bitmap without making an as

Re: [Qemu-devel] [PATCH 4/7] e1000e: Fix PBACLR implementation

2016-09-22 Thread Dmitry Fleytman
> On 22 Sep 2016, at 09:40 AM, Jason Wang wrote: > > > > On 2016年09月15日 14:14, Dmitry Fleytman wrote: >> This patch fixes incorrect check for >> interrypt type being used. >> >> PBSCLR register is valid for MSI-X only. >> >> See spec. 10.2.3.13 MSI—X PBA Clear >> >> Signed-off-by: Dmitry Fl

Re: [Qemu-devel] [PATCH v4 2/8] replay: save/load initial state

2016-09-22 Thread Paolo Bonzini
On 22/09/2016 07:37, Pavel Dovgalyuk wrote: >> > I mean that (if I understand correctly) raw images are corrupted if you >> > don't use -snapshot (the record overwrites them, and the replay reads >> > overwritten data). > I tried running record/replay with raw image. Record finished without an >

Re: [Qemu-devel] [PATCH 16/16] cpus-common: lock-free fast path for cpu_exec_start/end

2016-09-22 Thread Paolo Bonzini
On 22/09/2016 00:27, Emilio G. Cota wrote: > Another suggestion is to consistently access pending_cpus atomically, > since now we're accessing it with and without the CPU list mutex held. Yeah, that's a bit of a pain in the ass, but it's a good idea. Paolo

  1   2   3   4   5   6   7   >