[Qemu-devel] [PULL 24/30] spapr_pci: populate ibm,loc-code

2015-07-07 Thread Alexander Graf
From: Nikunj A Dadhania Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property with a value that represents the location code for that hardware entity. Populate ibm,loc-code. 1) PCI pass

[Qemu-devel] [PULL 27/30] spapr-vty: Use TYPE_ definition instead of hardcoding

2015-07-07 Thread Alexander Graf
From: David Gibson There's a call to object_dynamic_cast() in spapr_vty which uses the type name "spapr-vty" directly, instead of the usual idiom of using the #defined TYPE_VIO_SPAPR_VTY_DEVICE. Fix it. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/char/spapr_vty.c | 2 +-

[Qemu-devel] [PULL 3/4] target-s390x: fix CONVERT TO BINARY (CVD, CVDY)

2015-07-07 Thread Alexander Graf
From: Aurelien Jarno current_number being shift left by more than 32 bits, we can't use a simple int. Similarly use an int64_t type for the input binary value, to not get the -2^31 case wrong. Finally don't initialize shift to 4, it's already done in the for loop. Signed-off-by: Aurelien Jarno

[Qemu-devel] [PULL 07/30] spapr: Remove obsolete ram_limit field from sPAPRMachineState

2015-07-07 Thread Alexander Graf
From: David Gibson The ram_limit field was imported from sPAPREnvironment where it predates the machine's ram size being available generically from machine->ram_size. Worse, the existing code was inconsistent about where it got the ram size from. Sometimes it used spapr->ram_limit, sometimes th

[Qemu-devel] [PULL 20/30] spapr: Consolidate cpu init code into a routine

2015-07-07 Thread Alexander Graf
From: Bharata B Rao Factor out bits of sPAPR specific CPU initialization code into a separate routine so that it can be called from CPU hotplug path too. Signed-off-by: Bharata B Rao Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/ppc/spapr.c | 54 +++

[Qemu-devel] [PULL 30/30] sPAPR: Clear stale MSIx table during EEH reset

2015-07-07 Thread Alexander Graf
From: Gavin Shan The PCI device MSIx table is cleaned out in hardware after EEH PE reset. However, we still hold the stale MSIx entries in QEMU, which should be cleared accordingly. Otherwise, we will run into another (recursive) EEH error and the PCI devices contained in the PE have to be offlin

Re: [Qemu-devel] [PULL for-2.4 0/9] Net patches

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 13:38, Stefan Hajnoczi wrote: > The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into > staging (2015-07-06 23:37:53 +0100) > > are available in the git repository at: > > gi

[Qemu-devel] [PULL 14/30] spapr_iommu: translate sPAPRTCEAccess to IOMMUAccessFlags

2015-07-07 Thread Alexander Graf
From: Greg Kurz The fact that these enums have matching values is pure coincidence. We actually need to translate from the PAPR definition to the QEMU one. This patch doesn't fix any bug, it is only code cleanup. Suggested-by: Alexey Kardashevskiy Signed-off-by: Greg Kurz Signed-off-by: David

[Qemu-devel] [PULL 29/30] sPAPR: Reenable EEH functionality on reboot

2015-07-07 Thread Alexander Graf
From: Gavin Shan When rebooting the guest, some PEs might be in frozen state. The contained PCI devices won't work properly if their frozen states aren't cleared in time. One case running into this situation would be maximal EEH error times encountered in the guest. The patch reenables the EEH f

[Qemu-devel] [PULL 17/30] spapr: Support ibm, lrdr-capacity device tree property

2015-07-07 Thread Alexander Graf
From: Bharata B Rao Add support for ibm,lrdr-capacity since this is needed by the guest kernel to know about the possible hot-pluggable CPUs and Memory. With this, pseries kernels will start reporting correct maxcpus in /sys/devices/system/cpu/possible. Also define the minimum hotpluggable memor

[Qemu-devel] [PULL 18/30] cpus: Add a macro to walk CPUs in reverse

2015-07-07 Thread Alexander Graf
From: Bharata B Rao Add CPU_FOREACH_REVERSE that walks CPUs in reverse. Needed for PowerPC CPU device tree reorganization. Signed-off-by: Bharata B Rao Reviewed-by: Andreas Färber Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- include/qom/cpu.h | 2 ++ 1 file changed, 2 inse

[Qemu-devel] [PULL 21/30] ppc: Update cpu_model in MachineState

2015-07-07 Thread Alexander Graf
From: Bharata B Rao Keep cpu_model field in MachineState uptodate so that it can be used from the CPU hotplug path. Signed-off-by: Bharata B Rao Reviewed-by: David Gibson Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/ppc/mac_newworld.c | 10 +- hw/ppc/mac_oldworl

[Qemu-devel] [PULL 28/30] sPAPR: Don't enable EEH on emulated PCI devices

2015-07-07 Thread Alexander Graf
From: Gavin Shan There might have emulated PCI devices, together with VFIO PCI devices under one PHB. The EEH capability shouldn't enabled on emulated PCI devices. The patch returns error when enabling EEH capability on emulated PCI devices by RTAS call "ibm,set-eeh-option". Signed-off-by: Gavi

[Qemu-devel] [PULL 25/30] spapr_pci: drop redundant args in spapr_[populate, create]_pci_child_dt

2015-07-07 Thread Alexander Graf
From: Nikunj A Dadhania * phb_index is not being used and if required can be obtained from sphb * use helper to get drc_index in spapr_populate_pci_child_dt() * Check if drc_index is zero Suggested-by: Alexey Kardashevskiy Signed-off-by: Nikunj A Dadhania Signed-off-by: David Gibson Signed-of

[Qemu-devel] [PULL 23/30] spapr_pci: enumerate and add PCI device tree

2015-07-07 Thread Alexander Graf
From: Nikunj A Dadhania All the PCI enumeration and device node creation was off-loaded to SLOF. With PCI hotplug support, code needed to be added to add device node. This creates multiple copy of the code one in SLOF and other in hotplug code. To unify this, the patch adds the pci device node cr

[Qemu-devel] [PULL 11/30] spapr_pci: encode class code including Prog IF register

2015-07-07 Thread Alexander Graf
From: Nikunj A Dadhania Current code missed the Prog IF register. All Class Code, Subclass, and Prog IF registers are needed to identify the accurate device type. For example: USB controllers use the PROG IF for denoting: USB FullSpeed, HighSpeed or SuperSpeed. Signed-off-by: Nikunj A Dadhania

[Qemu-devel] [PULL 19/30] spapr: Reorganize CPU dt generation code

2015-07-07 Thread Alexander Graf
From: Bharata B Rao Reorganize CPU device tree generation code so that it be reused from hotplug path. CPU dt entries are now generated from spapr_finalize_fdt() instead of spapr_create_fdt_skel(). Note: This is how the split-up looks like now: Boot path - spapr_finalize_fdt spapr_popu

[Qemu-devel] [PULL 05/30] pseries: Update SLOF firmware image to qemu-slof-20150429

2015-07-07 Thread Alexander Graf
From: Alexey Kardashevskiy The changelog is: > version: update to 20150429 > pci: Use QEMU created PCI device nodes > usb: support 64-bit pci bars > pci: Support 64-bit address translation > pci: program correct bridge limit registers during probe > scsi: handle report-luns failure

[Qemu-devel] [PULL 26/30] spapr_vty: lookup should only return valid VTY objects

2015-07-07 Thread Alexander Graf
From: David Gibson If a guest passes the reg property of a valid VIO object that is not a VTY to either H_GET_TERM_CHAR or H_PUT_TERM_CHAR, QEMU hits a dynamic cast assertion and aborts. PAPR+ says "Hypervisor checks the termno parameter for validity against the Vterm IOA unit addresses assigned

Re: [Qemu-devel] [PULL 0/7] Final changes for 2.4-rc0

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 15:27, Paolo Bonzini wrote: > > > On 07/07/2015 16:11, Paolo Bonzini wrote: >> The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: >> >> Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into >> staging (2015-07-06 23:37:53 +0100) >>

[Qemu-devel] [PULL 15/30] Revert "hw/ppc/spapr_pci.c: Avoid functions not in glib 2.12 (g_hash_table_iter_*)"

2015-07-07 Thread Alexander Graf
From: Markus Armbruster Since we now require GLib 2.22+ (commit f40685c), we don't have to work around lack of g_hash_table_iter_init() & friends anymore. This reverts commit f8833a37c0c6b22ddd57b45e48cfb0f97dbd5af4. Signed-off-by: Markus Armbruster Signed-off-by: David Gibson Signed-off-by:

[Qemu-devel] [PULL 06/30] spapr: Merge sPAPREnvironment into sPAPRMachineState

2015-07-07 Thread Alexander Graf
From: David Gibson The code for -machine pseries maintains a global sPAPREnvironment structure which keeps track of general state information about the guest platform. This predates the existence of the MachineState structure, but performs basically the same function. Now that we have the generi

Re: [Qemu-devel] [RFC PATCH V6 15/18] cpu: introduce tlb_flush*_all.

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic > > Some architectures allow to flush the tlb of other VCPUs. This is not a > problem > when we have only one thread for all VCPUs but it definitely needs to be an > asynchronous work when we are in true multithreaded work. > > TODO: Som

[Qemu-devel] [PULL 1/4] target-s390x: fix MOVE LONG instruction

2015-07-07 Thread Alexander Graf
From: Aurelien Jarno The MOVE LONG instruction should pad the destination operand with the byte from bit positions 32-39 of the source length (r2 + 1), not with the same byte in the source address. Signed-off-by: Aurelien Jarno Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf ---

[Qemu-devel] [PULL 0/4] s390 patch queue 2015-07-07

2015-07-07 Thread Alexander Graf
Hi Peter, This is my current patch queue for s390. Please pull. Alex The following changes since commit aeb72188e073d515e1f5a80f6b603692a396477b: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20150707-1' into staging (2015-07-07 14:44:19 +0100) are available

[Qemu-devel] [PULL 2/4] target-s390x: fix EXECUTE instruction executing TRT

2015-07-07 Thread Alexander Graf
From: Aurelien Jarno A break is missing in the EXECUTE instruction, when executing the TRANSLATE AND TEST instruction. Reported-by: Paolo Bonzini Signed-off-by: Aurelien Jarno Reviewed-By: Richard Henderson Signed-off-by: Alexander Graf --- target-s390x/mem_helper.c | 1 + 1 file changed, 1

Re: [Qemu-devel] [RFC PATCH V6 16/18] arm: use tlb_flush*_all

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic > > This just use the new mechanism to ensure that each VCPU thread flush its own > VCPU. > > Signed-off-by: KONRAD Frederic > --- > target-arm/helper.c | 45 +++-- > 1 file changed, 7 insertions(

[Qemu-devel] [PULL 4/4] tcg/s390: fix branch target change during code retranslation

2015-07-07 Thread Alexander Graf
From: Aurelien Jarno Make sure to not modify the branch target. This ensure that the branch target is not corrupted during partial retranslation. Signed-off-by: Aurelien Jarno Tested-by: Alexander Graf Reviewed-by: Richard Henderson Signed-off-by: Alexander Graf --- tcg/s390/tcg-target.c |

Re: [Qemu-devel] [RFC PATCH V6 17/18] translate-all: introduces tb_flush_safe.

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic > > tb_flush is not thread safe we definitely need to exit VCPUs to do that. > This introduces tb_flush_safe which just creates an async safe work which will > do a tb_flush later. > > Signed-off-by: KONRAD Frederic > --- > include/exec

Re: [Qemu-devel] [RFC PATCH V6 15/18] cpu: introduce tlb_flush*_all.

2015-07-07 Thread Alex Bennée
Mark Burton writes: > Paolo, Alex, Alexander, > > Talking to Fred after the call about ways of avoiding the ‘stop the world’ > (or rather ‘sync the world’) - we already discussed this on this thread. > One thing that would be very helpful would be some test cases around > this. We could then us

Re: [Qemu-devel] [RFC PATCH V6 18/18] translate-all: (wip) use tb_flush_safe when we can't alloc more tb.

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic > > This changes just the tb_flush called from tb_alloc. > > TODO: > * changes the other tb_flush. > > Signed-off-by: KONRAD Frederic > --- > translate-all.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tran

Re: [Qemu-devel] [PULL 0/7] Final changes for 2.4-rc0

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 18:08, Peter Maydell wrote: >> > Please ignore this pull request. > ...but the 12-patch v2 pullreq is OK, yes? Yes, that one is okay. Paolo

Re: [Qemu-devel] [PULL 00/13] pc,virtio,pci: fixes and updates

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 13:40, Michael S. Tsirkin wrote: > The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into > staging (2015-07-06 23:37:53 +0100) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH RFC 4/4] aio-posix: Use epoll in aio_poll

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 17:08, Stefan Hajnoczi wrote: >> > + >> > +#define EPOLL_BATCH 128 >> > +static bool aio_poll_epoll(AioContext *ctx, bool blocking) >> > +{ >> > +AioHandler *node; >> > +bool was_dispatching; >> > +int i, ret; >> > +bool progress; >> > +int64_t timeout; >> > +

Re: [Qemu-devel] [RFC PATCH V6 18/18] translate-all: (wip) use tb_flush_safe when we can't alloc more tb.

2015-07-07 Thread Frederic Konrad
On 07/07/2015 18:17, Alex Bennée wrote: fred.kon...@greensocs.com writes: From: KONRAD Frederic This changes just the tb_flush called from tb_alloc. TODO: * changes the other tb_flush. Signed-off-by: KONRAD Frederic --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-07 Thread Alex Williamson
On Tue, 2015-07-07 at 22:11 +1000, Alexey Kardashevskiy wrote: > On 07/07/2015 02:13 AM, Alex Williamson wrote: > > On Tue, 2015-07-07 at 01:34 +1000, Alexey Kardashevskiy wrote: > >> On 07/06/2015 11:42 PM, Alex Williamson wrote: > >>> On Mon, 2015-07-06 at 12:11 +1000, Alexey Kardashevskiy wrote:

Re: [Qemu-devel] [PATCH] qmp-shell: add documentation

2015-07-07 Thread John Snow
On 07/02/2015 11:31 AM, Luiz Capitulino wrote: > On Wed, 1 Jul 2015 14:25:49 -0400 > John Snow wrote: > >> I should probably document the changes that were made. >> >> Signed-off-by: John Snow > > Looks good to me, CC'ing maintainer. > Whoops, didn't realize Markus took this file over, too

Re: [Qemu-devel] [PATCH COLO-BLOCK v7 00/17] Block replication for continuous checkpoints

2015-07-07 Thread Michael R. Hines
On 07/07/2015 04:23 AM, Paolo Bonzini wrote: On 07/07/2015 11:13, Dr. David Alan Gilbert wrote: This log is very stange. The NBD client connects to NBD server, and NBD server wants to read data from NBD client, but reading fails. It seems that the connection is closed unexpectedly. Can you gi

Re: [Qemu-devel] [PATCH 2/2] ahci: fix signature generation

2015-07-07 Thread John Snow
On 07/07/2015 04:49 AM, Stefan Hajnoczi wrote: > On Mon, Jul 06, 2015 at 05:49:52PM -0400, John Snow wrote: >> The initial register device-to-host FIS no longer needs to specially >> set certain fields, as these can be handled generically by setting those >> fields explicitly with the signatures

[Qemu-devel] [PULL v2 03/22] cpu: Reorder cpu->as, cpu->thread_id, cpu->memory_dispatch init

2015-07-07 Thread Andreas Färber
From: Eduardo Habkost Instead of initializing cpu->as, cpu->thread_id, and reloading memory map while holding cpu_list_lock(), do it earlier, before locking the CPU list and initializing cpu_index. This allows the code handling cpu_index and global CPU list to be isolated from the rest. Cc: Pao

[Qemu-devel] [PULL v2 08/22] gdbstub: Change gdbserver_fork() to accept cpu instead of env

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite All callsites to this function navigate the cpu->env_ptr only for the function to take the env ptr back to the original cpu ptr. Change the function to just pass in the CPU pointer instead. Removes a core code usage of ENV_GET_CPU() (in gdbstub.c). Cc: Riku Voipio Review

[Qemu-devel] [PULL v2 02/22] cpu: Initialize breakpoint/watchpoint lists in cpu_common_initfn()

2015-07-07 Thread Andreas Färber
From: Eduardo Habkost One small step in the simplification of cpu_exec_init(). Reviewed-by: Igor Mammedov Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- exec.c| 2 -- qom/cpu.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index

[Qemu-devel] [PULL v2 22/22] disas: cris: QOMify target specific disas setup

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Move the target_disas() cris specifics to the QOM disas_set_info() hook and delete the cris specific code in disas.c. This also now adds support for monitor_disas() to cris. E.g. (qemu) xp 0x40004000 40004000: 0x1e6f25f0 And before this patch: (qemu) xp/i 0x4000

[Qemu-devel] [PULL v2 00/22] QOM CPUState patch queue 2015-07-07

2015-07-07 Thread Andreas Färber
Hello Peter, This is my QOM CPU patch queue. Please pull. Note: For time reasons I did not give this queue as much testing as usual, in particular BSD and non-x86 KVM hosts were not covered. Regards, Andreas Cc: Peter Maydell Cc: Eduardo Habkost Cc: Peter Crosthwaite The following changes

[Qemu-devel] [PULL v2 14/22] hw/arm/boot: Use cpu_set_pc()

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Use cpu_set_pc() across the board for setting program counters. This removes instances of system level code having to reach into the CPU env. Reviewed-by: Peter Maydell Reviewed-by: Andreas Färber Signed-off-by: Peter Crosthwaite [AF: Avoid repeated casts with local va

[Qemu-devel] [PULL v2 19/22] disas: arm: QOMify target specific disas setup

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Move the target_disas() ARM specifics to the QOM disas_set_info hook and delete the ARM specific code in disas.c. This has the extra advantage of the more fully featured target_disas() implementation now applying to monitor_disas(). Currently, target_disas() has multi-en

[Qemu-devel] [PULL v2 09/22] cpu: Change tcg_cpu_exec() arg to cpu, not env

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite The sole caller of this function navigates the cpu->env_ptr only for this function to take it back the cpu pointer straight away. Pass in cpu pointer instead and grab the env pointer locally in the function. Removes a core code usage of ENV_GET_CPU(). Reviewed-by: Andreas

[Qemu-devel] [PULL v2 06/22] target-ppc: Move cpu_exec_init() call to realize function

2015-07-07 Thread Andreas Färber
From: Bharata B Rao Move cpu_exec_init() call from instance_init to realize. This allows any failures from cpu_exec_init() to be handled appropriately. Also add corresponding cpu_exec_exit() call from unrealize. cpu_dt_id assignment from instance_init is no longer needed since correct assignment

[Qemu-devel] [PULL v2 15/22] microblaze: boot: Use cpu_set_pc()

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Use cpu_set_pc() for setting program counters when bootloading. This removes an instance of system level code having to reach into the CPU env. Reviewed-by: Andreas Färber Signed-off-by: Peter Crosthwaite [AF: Avoid duplicated CPU() casts through local variable] Signed-

[Qemu-devel] [PULL v2 10/22] cpu: Change cpu_exec_init() arg to cpu, not env

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite The callers (most of them in target-foo/cpu.c) to this function all have the cpu pointer handy. Just pass it to avoid an ENV_GET_CPU() from core code (in exec.c). Cc: Paolo Bonzini Cc: Richard Henderson Cc: Peter Maydell Cc: "Edgar E. Iglesias" Cc: Eduardo Habkost Cc

[Qemu-devel] [PULL v2 04/22] cpu: Add Error argument to cpu_exec_init()

2015-07-07 Thread Andreas Färber
From: Bharata B Rao Add an Error argument to cpu_exec_init() to let users collect the error. This is in preparation to change the CPU enumeration logic in cpu_exec_init(). With the new enumeration logic, cpu_exec_init() can fail if cpu_index values corresponding to max_cpus have already been hand

[Qemu-devel] [PULL v2 05/22] cpu: Convert cpu_index into a bitmap

2015-07-07 Thread Andreas Färber
From: Bharata B Rao Currently CPUState::cpu_index is monotonically increasing and a newly created CPU always gets the next higher index. The next available index is calculated by counting the existing number of CPUs. This is fine as long as we only add CPUs, but there are architectures which are

[Qemu-devel] [PULL v2 20/22] disas: microblaze: QOMify target specific disas setup

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Move the target_disas() MB specifics to the QOM disas_set_info hook and delete the MB specific code in disas.c. This also now adds support for monitor_disas() to Microblaze. E.g. (qemu) xp 0x9000 9000: 0x94208001 And before this patch: (qemu) xp/i 0x9000

Re: [Qemu-devel] [PATCH 1/2] ahci: Fix CD-ROM signature

2015-07-07 Thread John Snow
On 07/06/2015 05:49 PM, John Snow wrote: > From: Hannes Reinecke > > The CD-ROM signature is 0xeb140101, not 0xeb14. > Without this change OVMF/Duet runs into a timeout trying > to detect a SATA cdrom. > > Signed-off-by: Hannes Reinecke > Signed-off-by: John Snow > --- > hw/ide/ahci.h |

[Qemu-devel] [PULL v2 13/22] gdbstub: Use cpu_set_pc() helper

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Use the cpu_set_pc() helper which will take care of CPUClass retrieval for us. Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- gdbstub.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index aa5ba51..92b2

[Qemu-devel] [PULL v2 07/22] translate-all: Change tb_flush() env argument to cpu

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite All of the core-code usages of this API have the cpu pointer handy so pass it in. There are only 3 architecture specific usages (2 of which are commented out) which can just use ENV_GET_CPU() locally to get the cpu pointer. The reduces core code usage of the CPU env, which

[Qemu-devel] [PULL v2 01/22] cpu: No need to zero-initialize CPUState::numa_node

2015-07-07 Thread Andreas Färber
From: Eduardo Habkost QOM objects are already zero-filled when instantiated, there's no need to explicitly set numa_node to 0. Reviewed-by: Igor Mammedov Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/exec.c b/exec.c

[Qemu-devel] [PULL v2 21/22] disas: cris: Fix 0 buffer length case

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Cris has the complication of variable length instructions and has a check in place to clamp memory reads in case the disas request doesn't have enough bytes for the instruction being disas'd. This breaks down in the case where disassembling for the monitor where the buffer

[Qemu-devel] [PULL v2 18/22] disas: arm-a64: Make printfer and stream variable

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite In a normal disassembly flow, the printf() and stream being used varies from disas job to job. In particular it varies if mixing monitor_disas and target_disas. Make both the printf() function and target stream settable in the QEMUDisassmbler class. Reviewed-by: Claudio

[Qemu-devel] [PULL v2 12/22] cpu: Add wrapper for the set_pc() hook

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Add a wrapper around the CPUClass::set_pc() hook. Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- include/qom/cpu.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 7db310e..5db1ea3 10064

[Qemu-devel] using MSIX for virtio-blk

2015-07-07 Thread Naredula Janardhana Reddy
Hi, How to enable MSIX for virtio-blk, this is to avoid extra use of VIRTIO_PCI_ISR port reads. This is for qemu 2.3.0 with virtio-blk-pci with x-data-plane is on. Thanks Jana

[Qemu-devel] [PULL v2 17/22] disas: QOMify target specific setup

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Add a QOM function hook for target-specific disassembly setup. This allows removal of the #ifdeffery currently implementing target specific disas setup from disas.c. Reviewed-by: Richard Henderson Signed-off-by: Peter Crosthwaite Signed-off-by: Andreas Färber --- disa

[Qemu-devel] [PULL v2 16/22] disas: Add print_insn to disassemble info

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Add the print_insn pointer to the disassemble info structure. This is to prepare for QOMification support, where a QOM CPU hook function will be responsible for setting the print_insn() function. Add this function to the existing struct to consolidate such that only the on

[Qemu-devel] [PULL v2 11/22] cpu-exec: Purge all uses of ENV_GET_CPU()

2015-07-07 Thread Andreas Färber
From: Peter Crosthwaite Remove un-needed usages of ENV_GET_CPU() by converting the APIs to use CPUState pointers and retrieving the env_ptr as minimally needed. Scripted conversion for target-* change: for I in target-*/cpu.h; do sed -i \ 's/\(^int cpu_[^_]*_exec(\)[^ ][^ ]* \*s);$/\1CP

Re: [Qemu-devel] [PATCH rebased for-2.4] target-i386: add ABM to Haswell* and Broadwell* CPU models

2015-07-07 Thread Eduardo Habkost
On Tue, Jul 07, 2015 at 12:42:01PM +0200, Paolo Bonzini wrote: > ABM is only implemented as a single instruction set by AMD; all AMD > processors support both instructions or neither. Intel considers POPCNT > as part of SSE4.2, and LZCNT as part of BMI1, but Intel also uses AMD's > ABM flag to indi

[Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-07 Thread Programmingkid
Make physical devices like a USB flash drive or a CDROM drive work in QEMU. With this patch I can use a USB flash drive like a hard drive. Before this patch, QEMU would just quit with a message like "resource busy". Now it handles issues like these for the user. This patch unmounts volumes of phys

[Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Olga Krishtal
Peter, can you try this patch on your system? In mingw older than mingw64-headers-4.0.2-1.el7.noarch header ntddscsi.h can be found in include/ddk, however compiler does not look there. This breaks the compilation. The patch adds this directory in QEMU_INCLUDES. Signed-off-by: Olga Krishtal ---

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Denis V. Lunev
On 07/07/15 20:13, Olga Krishtal wrote: Peter, can you try this patch on your system? In mingw older than mingw64-headers-4.0.2-1.el7.noarch header ntddscsi.h can be found in include/ddk, however compiler does not look there. This breaks the compilation. The patch adds this directory in QEMU_IN

Re: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options

2015-07-07 Thread Eduardo Habkost
Michael, is this going to be applied to your tree? On Tue, Jun 23, 2015 at 02:00:51PM -0300, Eduardo Habkost wrote: > On commit fddd179ab962f6f78a8493742e1068d6a620e059, I broke the chaining of > *_machine_options() functions on pc-i440fx-2.3, at: > > -#define PC_I440FX_2_3_MACHINE_OPTIONS \ >

Re: [Qemu-devel] [PULL v3 00/28] Migration pull request

2015-07-07 Thread Peter Maydell
/tags/vfio-update-20150706.0' > into staging (2015-07-07 09:22:40 +0100) > > are available in the git repository at: > > git://github.com/juanquintela/qemu.git tags/migration/20150707 > > for you to fetch changes up to dd63169766abd2b8dc33f4451dac5e778458a47c: > > mi

[Qemu-devel] [PATCH 0/6] ARM: MPU support for Cortex-M3/M4 emulation

2015-07-07 Thread Alex Zuepke
This patch series enables MPU support for Cortex-M3/M4 devices, based on the existing MPU support for Cortex-R series in QEMU. The MPU supports a variable number of windows and default to 8, the current limit on most Cortex-M3/M4 devices. Also, the necessary registers for exception handling and fau

[Qemu-devel] [PATCH 5/6] ARM: enable ARM_FEATURE_MPU for Cortex-M3/M4

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- hw/arm/armv7m.c | 17 - target-arm/cpu.c|2 ++ target-arm/helper.c | 30 -- 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index c6eab6d..db6bc3c 100644 -

[Qemu-devel] [PATCH 4/6] ARM: Cortex-M3/M4: on exception, set basic bits in exhandling registers

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- target-arm/helper.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 812204f..555bc5f 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -4541,6 +4541,7 @@ void arm_v7m_cpu_do_i

[Qemu-devel] [PATCH 3/6] ARM: Cortex-M3/M4: honor STKALIGN in CCR

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- hw/intc/armv7m_nvic.c |2 +- target-arm/helper.c |5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index e6ae047..369ef94 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @

[Qemu-devel] [PATCH 1/6] ARM: add Cortex-M3/M4 exception configuration and status registers

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- target-arm/cpu.h | 51 ++ target-arm/machine.c |6 ++ 2 files changed, 57 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 80297b3..1089f63 100644 --- a/target-arm/cpu.h +++ b/target

[Qemu-devel] [PATCH 6/6] ARM: enable PMSAv7-style MPU on Cortex-M3/M4

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- hw/intc/armv7m_nvic.c | 113 + target-arm/cpu.h |6 +++ target-arm/helper.c |7 ++- target-arm/machine.c |1 + 4 files changed, 126 insertions(+), 1 deletion(-) diff --git a/hw/intc/armv7m_nvic.c

[Qemu-devel] [PATCH 2/6] ARM: accessors to Cortex-M3/M4 exception configuration and status registers

2015-07-07 Thread Alex Zuepke
Signed-off-by: Alex Zuepke --- hw/intc/armv7m_nvic.c | 70 ++--- 1 file changed, 61 insertions(+), 9 deletions(-) diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index e13b729..e6ae047 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv

Re: [Qemu-devel] [PULL for-2.4 v2 0/6] Block patches

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 14:29, Stefan Hajnoczi wrote: > The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into > staging (2015-07-06 23:37:53 +0100) > > are available in the git repository at: > > gi

Re: [Qemu-devel] [PATCH 0/6] ARM: MPU support for Cortex-M3/M4 emulation

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 19:25, Alex Zuepke wrote: > This patch series enables MPU support for Cortex-M3/M4 devices, > based on the existing MPU support for Cortex-R series in QEMU. > The MPU supports a variable number of windows and default to 8, the current > limit on most Cortex-M3/M4 devices. Also, t

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 19:06, Denis V. Lunev wrote: > On 07/07/15 20:13, Olga Krishtal wrote: >> >> Peter, can you try this patch on your system? >> >> In mingw older than mingw64-headers-4.0.2-1.el7.noarch >> header ntddscsi.h can be found in include/ddk, however >> compiler does not look there. This

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Michael Roth
Quoting Peter Maydell (2015-07-07 14:16:29) > On 7 July 2015 at 19:06, Denis V. Lunev wrote: > > On 07/07/15 20:13, Olga Krishtal wrote: > >> > >> Peter, can you try this patch on your system? > >> > >> In mingw older than mingw64-headers-4.0.2-1.el7.noarch > >> header ntddscsi.h can be found in i

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Denis V. Lunev
On 07/07/15 23:02, Michael Roth wrote: Quoting Peter Maydell (2015-07-07 14:16:29) On 7 July 2015 at 19:06, Denis V. Lunev wrote: On 07/07/15 20:13, Olga Krishtal wrote: Peter, can you try this patch on your system? In mingw older than mingw64-headers-4.0.2-1.el7.noarch header ntddscsi.h ca

Re: [Qemu-devel] [PULL v2 0/2] X86 queue, 2015-07-07

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 15:47, Eduardo Habkost wrote: > The following changes since commit 1452673888f6d7f0454276d049846c9bec659233: > > Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20150706.0' > into staging (2015-07-07 09:22:40 +0100) > > are available in the git repository at: >

Re: [Qemu-devel] [PATCH 02/10 v11] linux-user: Support tilegx architecture in linux-user

2015-07-07 Thread Chen Gang
On 07/07/2015 08:19 AM, Chris Metcalf wrote: > I will be posting more hardware documents on Wednesday when I'm back in the > office. > That is good news! Thanks. And at present, I am just analyzing the issue about the vi of busybox with the static glibc (displaying and modifying contents through

Re: [Qemu-devel] [PATCH 02/10 v11] linux-user: Support tilegx architecture in linux-user

2015-07-07 Thread Chen Gang
On 07/07/2015 08:19 AM, Chris Metcalf wrote: > I will be posting more hardware documents on Wednesday when I'm back in the > office. > That is good news! Thanks. And at present, I am just analyzing the issue about the vi of busybox with the static glibc (displaying and modifying contents through

Re: [Qemu-devel] [PATCH 5/6] ARM: enable ARM_FEATURE_MPU for Cortex-M3/M4

2015-07-07 Thread Peter Crosthwaite
On Tue, Jul 7, 2015 at 11:25 AM, Alex Zuepke wrote: > > Signed-off-by: Alex Zuepke > --- > hw/arm/armv7m.c | 17 - > target-arm/cpu.c|2 ++ > target-arm/helper.c | 30 -- > 3 files changed, 46 insertions(+), 3 deletions(-) > > diff --gi

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-07 Thread Peter Crosthwaite
On Tue, Jul 7, 2015 at 7:22 AM, Christian Borntraeger wrote: > Am 07.07.2015 um 12:51 schrieb Peter Crosthwaite: >>> qemu_log_mask(CPU_LOG_RESET, "Watchdog timer expired.\n"); >>> @@ -80,6 +87,7 @@ static void wdt_diag288_realize(DeviceState *dev, Error >>> **errp) >>> { >>> DIAG288Sta

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Michael Roth
Quoting Denis V. Lunev (2015-07-07 15:04:20) > On 07/07/15 23:02, Michael Roth wrote: > > Quoting Peter Maydell (2015-07-07 14:16:29) > >> On 7 July 2015 at 19:06, Denis V. Lunev wrote: > >>> On 07/07/15 20:13, Olga Krishtal wrote: > > Peter, can you try this patch on your system? >

Re: [Qemu-devel] [PATCH] qga: fix build for older versions of mingw

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 22:23, Michael Roth wrote: > Since I have a build environment handy I'll go ahead and put together > a patch to disable the feature via a configure check/flag. Thanks. Since this is a pretty old build environment I think it's reasonable to just disable the feature there. -- PMM

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2015-07-07 for 2.4

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 16:49, Alexander Graf wrote: > Hi Peter, > > This is my current patch queue for ppc. Please pull. > > Alex > > > The following changes since commit 1452673888f6d7f0454276d049846c9bec659233: > > Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20150706.0' > into

[Qemu-devel] [Bug 1471583] Re: QCA988X Wifi Card Not PCI Passing Through

2015-07-07 Thread bill
I've figured out how to compile ElRepo's kernel-ml and make the change to pci's quirks. But now the KVM's VM won't even boot. It gives a popup with: "Error starting domain: Unable to read from monitor: Connection reset by peer Traceback (most recent call last): File "/usr/share/virt-manager/v

[Qemu-devel] GSoC 2015 (Mac OS 9 support) report, week 10

2015-07-07 Thread Alexander Graf
[Done] - Update project log (6.17) - Debug OpenBIOS ADB issues since agraf's 26a9dfe patch [This Week] - Update project page (7.7) - Fix cuda_adb_req() to expect a 3-byte header instead of a 2-byte one - This has a preliminary fix but will need some backwards-compatibility change

[Qemu-devel] [Bug 1471583] Re: QCA988X Wifi Card Not PCI Passing Through

2015-07-07 Thread bill
Oh I see. It's because the path that was shared on the host is no longer available, apparently causing this weird error message. 0a:00.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless Network Adapter (rev ff) (prog-if ff) !!! Unknown header type 7f So even earlier than P

Re: [Qemu-devel] [PATCH RFC 4/4] aio-posix: Use epoll in aio_poll

2015-07-07 Thread Fam Zheng
On Tue, 07/07 16:08, Stefan Hajnoczi wrote: > > @@ -44,6 +47,12 @@ static AioHandler *find_aio_handler(AioContext *ctx, int > > fd) > > > > void aio_context_setup(AioContext *ctx, Error **errp) > > { > > +#ifdef CONFIG_EPOLL > > +ctx->epollfd = epoll_create1(EPOLL_CLOEXEC); > > +if (ct

Re: [Qemu-devel] [PATCH RFC 0/4] aio: Use epoll_wait in aio_poll

2015-07-07 Thread Fam Zheng
On Tue, 07/07 16:54, Christian Borntraeger wrote: > Am 30.06.2015 um 15:19 schrieb Fam Zheng: > > epoll is more scalable than ppoll. It performs faster than ppoll when the > > number of polled fds is high. > > > > See patch 4 for an example of the senario and some benchmark data. > > > > Note: it

Re: [Qemu-devel] [PATCH RFC 1/4] aio: Introduce aio_set_fd_handler_pri

2015-07-07 Thread Fam Zheng
On Tue, 07/07 15:29, Stefan Hajnoczi wrote: > On Tue, Jun 30, 2015 at 09:19:42PM +0800, Fam Zheng wrote: > > G_IO_PRI event is watched by slirp, add support of that to make future > > refactoring possible. > > > > Signed-off-by: Fam Zheng > > --- > > aio-posix.c | 2 +- > > 1 file changed, 1 ins

Re: [Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-07-07 Thread Fam Zheng
On Tue, 07/07 15:35, Stefan Hajnoczi wrote: > On Tue, Jun 30, 2015 at 09:19:44PM +0800, Fam Zheng wrote: > > diff --git a/async.c b/async.c > > index 06971f4..1d70cfd 100644 > > --- a/async.c > > +++ b/async.c > > @@ -290,12 +290,17 @@ AioContext *aio_context_new(Error **errp) > > { > > int r

Re: [Qemu-devel] [PATCH COLO-BLOCK v7 00/17] Block replication for continuous checkpoints

2015-07-07 Thread Wen Congyang
On 07/08/2015 12:56 AM, Michael R. Hines wrote: > On 07/07/2015 04:23 AM, Paolo Bonzini wrote: >> >> On 07/07/2015 11:13, Dr. David Alan Gilbert wrote: > This log is very stange. The NBD client connects to NBD server, and NBD > server wants to read data > from NBD client, but reading f

[Qemu-devel] [PATCH 09/11] configure: add configure check for ntdddisk.h

2015-07-07 Thread Michael Roth
This header file provides w32 ioctl definitions for working with disk devices. Older versions of mingw do not expose this in a useable way, so add a configure check and report it via CONFIG_QGA_NTDDSCSI. Subsequent patches will use this macro to stub out functionality that relies on this in cases

[Qemu-devel] [PATCH 04/11] qga: add win32 library iphlpapi

2015-07-07 Thread Michael Roth
From: Kirk Allan Add the iphlpapi library to use APIs such as GetAdaptersInfo and GetAdaptersAddresses. Signed-off-by: Kirk Allan Signed-off-by: Michael Roth --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 3063739..3bb5e55 100755 -

<    1   2   3   4   5   >