Re: [Qemu-devel] [PATCH] virt: Lift the maximum RAM limit from 30GB to 255GB

2016-02-26 Thread Christoffer Dall
On Thu, Feb 25, 2016 at 04:51:51PM +, Peter Maydell wrote: > [Typoed the kvmarm list address; sorry... -- PMM] > > On 25 February 2016 at 12:09, Peter Maydell wrote: > > The virt board restricts guests to only 30GB of RAM. This is a > > hangover from the vexpress-a15 board, and there's inhere

[Qemu-devel] [PATCH V7 0/2] net/filter-mirror:add filter-mirror and unit test

2016-02-26 Thread Zhang Chen
Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. v7: - fix mktemp() to mkstemp() v6: - Address Jason's comments. v5: - Address Jason's comments. v4: - Address Jason's comments. v3: - Add filter-mirror unit test according to Jason's comments

[Qemu-devel] [PATCH V7 2/2] tests/test-filter-mirror:add filter-mirror unit test

2016-02-26 Thread Zhang Chen
In this unit test we will test the mirror function. start qemu with: -netdev socket,id=qtest-bn0,fd=sockfd -device e1000,netdev=qtest-bn0,id=qtest-e0 -chardev socket,id=mirror0,path=/tmp/filter-mirror-test.sock,server,nowait -object filter-mirror,id=qtest-f0,netdev=qtest-bn0,qu

[Qemu-devel] [PATCH V7 1/2] net/filter-mirror:Add filter-mirror

2016-02-26 Thread Zhang Chen
Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. usage: -netdev tap,id=hn0 -chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait -filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0 Signed-off-by: Zhang Chen Signed-off-by: Wen Co

[Qemu-devel] [PATCH v2] migration/vmstate: document VMStateFlags

2016-02-26 Thread Sascha Silbe
The VMState API is rather sparsely documented. Start by describing the meaning of all VMStateFlags. Reviewed-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Sascha Silbe --- v1->v2: - rebased on current devel - documented VMS_MULTIPLY_ELEMENTS (including references to VMS_MULTIP

Re: [Qemu-devel] [PATCH qemu] migration/vmstate: document VMStateFlags

2016-02-26 Thread Sascha Silbe
Dear Amit, Amit Shah writes: >> FWIW, here's the version based on current master. As mentioned before; >> I'm happy to rebase on your version if you prefer. > > Thanks, can you please post this as a standalone email? Easier for me > to apply. Sure. Sascha -- Softwareentwicklung Sascha Silbe,

Re: [Qemu-devel] [PATCH v2 8/8] target-arm: Use isyn.swstep.ex to hold the is_ldex state

2016-02-26 Thread Edgar E. Iglesias
On Thu, Feb 25, 2016 at 06:28:54PM +, Peter Maydell wrote: > On 19 February 2016 at 20:04, Edgar E. Iglesias > wrote: > > From: "Edgar E. Iglesias" > > > > Switch to using isyn.swstep.ex to hold the is_ldex state for > > SWStep syndrome generation. > > > > No functional change. > > > > Signed

Re: [Qemu-devel] [qemu] how to test qemu?

2016-02-26 Thread Alex Bennée
Bastian Koppelmann writes: > Hi, > > On 02/25/2016 01:24 PM, wangyan (AQ) wrote: >> >> >> Hi all: >> AFAIK, there're several ways to test qemu: >> 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm >> 2) Qtest��using instruction ��make check V=1��, which aims to do low le

[Qemu-devel] [PATCH] doc/memory.txt: correct a logic error

2016-02-26 Thread xiaoqiang zhao
In the regions overlap example, region B has a higher priority thus should has a larger priority number than C. Signed-off-by: xiaoqiang zhao --- docs/memory.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index 8745f76..d0aca05 10064

Re: [Qemu-devel] drive-backup

2016-02-26 Thread Stefan Priebe
Am 25.02.2016 um 20:53 schrieb John Snow: On 02/25/2016 02:49 AM, Stefan Priebe - Profihost AG wrote: Am 22.02.2016 um 23:08 schrieb John Snow: On 02/22/2016 03:21 PM, Stefan Priebe wrote: Hello, is there any chance or hack to work with a bigger cluster size for the drive backup job? S

Re: [Qemu-devel] [PATCH v2 1/2] block: Allow x-blockdev-del on a BB with a monitor-owned BDS

2016-02-26 Thread Kevin Wolf
Am 25.02.2016 um 12:11 hat Alberto Garcia geschrieben: > On Wed 24 Feb 2016 05:15:11 PM CET, Max Reitz wrote: > > >> When x-blockdev-del is performed on a BlockBackend that has inserted > >> media it will only succeed if the BDS doesn't have any additional > >> references. > >> > >> The only prob

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-26 Thread Kevin Wolf
Am 25.02.2016 um 10:06 hat Pavel Dovgalyuk geschrieben: > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > Coroutines aren't randomly assigned to threads, but threads actively > > > > enter coroutines. To my knowledge this happens only when starting a > > > > request (either vcpu or I/O thread;

Re: [Qemu-devel] [PULL 05/23] pc-dimm: add pc_dimm_build_list()

2016-02-26 Thread Vladimir Sementsov-Ogievskiy
On 25.02.2016 13:22, Michael S. Tsirkin wrote: On Thu, Feb 25, 2016 at 11:09:16AM +0100, Paolo Bonzini wrote: On 25/02/2016 10:54, Vladimir Sementsov-Ogievskiy wrote: On 25.02.2016 12:11, Michael S. Tsirkin wrote: On Thu, Feb 25, 2016 at 11:55:56AM +0300, Vladimir Sementsov-Ogievskiy wrote:

Re: [Qemu-devel] [PULL 05/23] pc-dimm: add pc_dimm_build_list()

2016-02-26 Thread Vladimir Sementsov-Ogievskiy
On 25.02.2016 13:09, Paolo Bonzini wrote: On 25/02/2016 10:54, Vladimir Sementsov-Ogievskiy wrote: On 25.02.2016 12:11, Michael S. Tsirkin wrote: On Thu, Feb 25, 2016 at 11:55:56AM +0300, Vladimir Sementsov-Ogievskiy wrote: On 25.02.2016 11:39, Michael S. Tsirkin wrote: On Thu, Feb 25, 2016

Re: [Qemu-devel] [PATCH v2 1/2] block: Allow x-blockdev-del on a BB with a monitor-owned BDS

2016-02-26 Thread Alberto Garcia
On Fri 26 Feb 2016 09:58:54 AM CET, Kevin Wolf wrote: >> I think your case is reasonable, but it's not the only way to get >> into this situation. See for example this one: >> >> blockdev-add 'drive0', 'node0' >> blockdev-add 'node1' >> blockdev-snapshot node='node0' overlay='node1' >> >> Now you

Re: [Qemu-devel] [PATCH] spice/gl: Enable dmabuf only for spice >= 0.13.1

2016-02-26 Thread Gerd Hoffmann
On Mi, 2016-02-24 at 13:42 +0100, Michal Privoznik wrote: > After 474114b7 the dmabuf feature is enabled whenever spice > greater than or equal to spice 0.13.0 is found. This is because > two new functions are required: spice_qxl_gl_scanout and > spice_qxl_gl_draw_async. These were, however, introd

Re: [Qemu-devel] [PATCH 1/9] dma-helpers: Expose the sg mapping logic

2016-02-26 Thread Kevin Wolf
Am 25.02.2016 um 11:10 hat Alex Pyrgiotis geschrieben: > > I think the first step is understanding what to do about the weird "& > > ~BDRV_SECTOR_MASK" case, then. > > We can discuss about this case in the "dma-helpers: Do not truncate > small qiovs" thread. I'm all for the removal of this check,

Re: [Qemu-devel] [PATCH 0/3] Add some more files to the MAINTAINERS file

2016-02-26 Thread Gerd Hoffmann
On Do, 2016-02-25 at 10:36 +0100, Thomas Huth wrote: > These three patches add some more USB, Spice and UI related files > to the MAINTAINERS file. > > Gerd, I'm not sure whether you want to take the third patch as is, > since this adds the whole include/ui/ folder to one of your sections, > so fe

Re: [Qemu-devel] [PATCH] qemu-img: eliminate memory leak

2016-02-26 Thread Kevin Wolf
Am 25.02.2016 um 23:53 hat Paolo Bonzini geschrieben: > Not particularly important since qemu-img exits immediately after > calling img_rebase, but easily fixed. Coverity says thanks. > > Signed-off-by: Paolo Bonzini Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [PATCH] usb-redirect: Avoid double free of data

2016-02-26 Thread Gerd Hoffmann
On Mi, 2016-02-24 at 16:08 +0800, Fam Zheng wrote: > If dropping packets, data is freed, the caller's loop should not > continue. Added to usb queue. thanks, Gerd

Re: [Qemu-devel] [PULL 2/8] configure: add dma-buf support detection.

2016-02-26 Thread Paolo Bonzini
On 23/02/2016 15:24, Gerd Hoffmann wrote: > Set CONFIG_OPENGL_DMABUF in case both mesa and libepoxy are > new enough to have support for dma-buf import/export. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Marc-André Lureau > --- > configure | 20 +++- > 1 file changed, 19 i

Re: [Qemu-devel] [RFC PATCH v0 5/6] qmp, spapr: Show hot-plugged/pluggable CPU slots in the Machine

2016-02-26 Thread Bharata B Rao
David, I am responding to just one comment here and will respond to others in detail later. On Fri, Feb 26, 2016 at 03:03:17PM +1100, David Gibson wrote: > > > +if (!strstart(prop->name, SPAPR_MACHINE_CPU_CORE_PROP, NULL)) { > > +continue; > > +} > > + > > +ele

Re: [Qemu-devel] Question on ioeventfd behavior

2016-02-26 Thread Paolo Bonzini
On 26/02/2016 08:51, Markus Armbruster wrote: > /** > * memory_region_add_eventfd: Request an eventfd to be triggered when a word > *is written to a location. > * > * Marks a word in an IO region (initialized with memory_region_init_io()) > * as a trigger for an e

[Qemu-devel] [PATCH v2] xics: report errors with the QEMU Error API

2016-02-26 Thread Greg Kurz
Using the return value to report errors is error prone: - xics_alloc() returns -1 on error but spapr_vio_busdev_realize() errors on 0 - xics_alloc_block() returns the unclear value of ics->offset - 1 on error but both rtas_ibm_change_msi() and spapr_phb_realize() error on 0 This patch adds an

Re: [Qemu-devel] [PATCH v2 00/24] target-sparc improvements

2016-02-26 Thread Mark Cave-Ayland
On 23/02/16 21:11, Richard Henderson wrote: > The primary focus of this patch set is to reduce the number of > helpers that modify TCG globals, and thus increase the lifetime > of those globals within each TB, and thus decrease the number > of times that tcg must spill and fill them from backing s

[Qemu-devel] [PULL 1/6] migration: reorder code to make it symmetric

2016-02-26 Thread Amit Shah
From: Wei Yang In qemu_savevm_state_complete_precopy(), it iterates on each device to add a json object and transfer related status to destination, while the order of the last two steps could be refined. Current order: json_start_object() save_section_header() vmstate_save()

[Qemu-devel] [PULL 5/6] MAINTAINERS: Add docs/migration.txt to the "Migration" section

2016-02-26 Thread Amit Shah
From: Thomas Huth Signed-off-by: Thomas Huth Reviewed-by: Amit Shah Message-Id: <1456393669-20678-1-git-send-email-th...@redhat.com> Signed-off-by: Amit Shah --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 606d9c0..5fafa81 100644 --- a/MAINT

[Qemu-devel] [PULL 4/6] migration (postcopy): move bdrv_invalidate_cache_all of of coroutine context

2016-02-26 Thread Amit Shah
From: "Denis V. Lunev" There is a possibility to hit an assert in qcow2_get_specific_info that s->qcow_version is undefined. This happens when VM in starting from suspended state, i.e. it processes incoming migration, and in the same time 'info block' is called. The problem is that qcow2_invalid

[Qemu-devel] [PULL 2/6] migration/postcopy-ram: Guard use of sys/eventfd.h with CONFIG_EVENTFD

2016-02-26 Thread Amit Shah
From: Matthew Fortune sys/eventfd.h was being guarded only by a check for linux but does not exist on older distributions like CentOS 5. Move the include into the code that uses it and add an appropriate guard. Signed-off-by: Matthew Fortune Reviewed-by: Juan Quintela Message-Id: <6d39441bf12e

[Qemu-devel] [PULL 0/6] migration pull

2016-02-26 Thread Amit Shah
The following changes since commit 0c6940d086f39bbf725d96104abe46da87429cb6: build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target directories (2016-02-25 16:41:08 +) are available in the git repository at: https://git.kernel.org/pub/scm/virt/qemu/amit/migration.git tags

[Qemu-devel] [PULL 6/6] migration/vmstate: document VMStateFlags

2016-02-26 Thread Amit Shah
From: Sascha Silbe The VMState API is rather sparsely documented. Start by describing the meaning of all VMStateFlags. Reviewed-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Sascha Silbe Message-Id: <1456474693-11662-1-git-send-email-si...@linux.vnet.ibm.com> Signed-off-by: Amit Sha

[Qemu-devel] [PULL 3/6] migration (ordinary): move bdrv_invalidate_cache_all of of coroutine context

2016-02-26 Thread Amit Shah
From: "Denis V. Lunev" There is a possibility to hit an assert in qcow2_get_specific_info that s->qcow_version is undefined. This happens when VM in starting from suspended state, i.e. it processes incoming migration, and in the same time 'info block' is called. The problem is that qcow2_invalid

Re: [Qemu-devel] [PATCH] Qemu/KVM: Remove x2apic feature from CPU model when kernel_irqchip is off

2016-02-26 Thread Paolo Bonzini
On 25/02/2016 16:15, Lan Tianyu wrote: > x2apic feature is in the kvm_default_props and automatically added to all > CPU models when KVM is enabled. But userspace devices don't support x2apic > which can't be enabled without the in-kernel irqchip. It will trigger > warning of "host doesn't suppor

Re: [Qemu-devel] Question on ioeventfd behavior

2016-02-26 Thread Markus Armbruster
Paolo Bonzini writes: > On 26/02/2016 08:51, Markus Armbruster wrote: >> /** >> * memory_region_add_eventfd: Request an eventfd to be triggered when a word >> *is written to a location. >> * >> * Marks a word in an IO region (initialized with memory_region_init_io(

Re: [Qemu-devel] Question on ioeventfd behavior

2016-02-26 Thread Paolo Bonzini
On 26/02/2016 10:58, Markus Armbruster wrote: > Double-checking: can i rely on ivshmem_io_write() getting called on a > write of a non-matching value? That for sure. Paolo

Re: [Qemu-devel] [Qemu-arm] [PATCH v2 1/3] hw/timer: Add ASPEED AST2400 timer device model

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 03:14, Andrew Jeffery wrote: > Hi Peter, > > On Thu, 2016-02-25 at 16:11 +, Peter Maydell wrote: >> On 16 February 2016 at 11:34, Andrew Jeffery wrote: >> > Implement basic AST2400 timer functionality: Timers can be configured, >> > enabled, reset and disabled. >> > >>

Re: [Qemu-devel] Regarding Cortex-A7 CPU definition

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 06:48, Deepak kumar Raju wrote: > Hi Peter, > We have GIC & generic timer enabled on Linux kernel side. Need help from you > how to enable GIC & generic timer on QEMU side. I suggest you look at how we already do it for the Cortex-A15. The A7 will be very similar. thanks -

Re: [Qemu-devel] [PATCH] virt: Lift the maximum RAM limit from 30GB to 255GB

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 08:06, Christoffer Dall wrote: > On Thu, Feb 25, 2016 at 04:51:51PM +, Peter Maydell wrote: >> [Typoed the kvmarm list address; sorry... -- PMM] >> >> On 25 February 2016 at 12:09, Peter Maydell wrote: >> > The virt board restricts guests to only 30GB of RAM. This is a

Re: [Qemu-devel] [Qemu-arm] help on how to emulate rasbperry pi 2

2016-02-26 Thread Mats Malmberg
Hello, thank you for your quick response! It helped me to get a little bit further, but unfortunately the problem persists. I now get some output from the kernel startup, but I think that it is unable to find the provided sd-card image. Here's what I've tried (the most successful setup): 1. do

[Qemu-devel] [PATCH] gtk: Add show_tabs=on|off command line option.

2016-02-26 Thread Igor S
The patch adds "show_tabs" command line option for GTK ui similar to "grab_on_hover". This option allows tabbed view mode to not have to be enabled by hand at each start of the VM. Signed-off-by: Igor Sudarikov <4se...@gmail.com> --- include/ui/console.h | 2 +- qemu-options.hx | 2 +- u

Re: [Qemu-devel] [PATCH] doc/memory.txt: correct a logic error

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 08:40, xiaoqiang zhao wrote: > In the regions overlap example, region B has a higher priority thus > should has a larger priority number than C. > > Signed-off-by: xiaoqiang zhao > --- > docs/memory.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff -

Re: [Qemu-devel] [RFC] QMP: add query-hotpluggable-cpus

2016-02-26 Thread Igor Mammedov
On Fri, 26 Feb 2016 15:12:26 +1100 David Gibson wrote: > On Thu, Feb 25, 2016 at 01:43:05PM +0100, Igor Mammedov wrote: > > On Thu, 25 Feb 2016 12:25:43 +1100 > > David Gibson wrote: > > > > > On Wed, Feb 24, 2016 at 03:17:54PM +0100, Igor Mammedov wrote: > > > > On Wed, 24 Feb 2016 12:54:1

Re: [Qemu-devel] [PATCH] doc/memory.txt: correct a logic error

2016-02-26 Thread hitmoon
在 2016年02月26日 18:25, Peter Maydell 写道: On 26 February 2016 at 08:40, xiaoqiang zhao wrote: In the regions overlap example, region B has a higher priority thus should has a larger priority number than C. Signed-off-by: xiaoqiang zhao --- docs/memory.txt | 4 ++-- 1 file changed, 2 inserti

Re: [Qemu-devel] [RFC PATCH v0 2/6] spapr: CPU core device

2016-02-26 Thread Thomas Huth
On 25.02.2016 17:22, Bharata B Rao wrote: > Add sPAPR specific CPU core device that is based on generic CPU core device. > Creating this core device will result in creation of all the CPU thread > devices that are part of this core. > > Signed-off-by: Bharata B Rao > --- ... > diff --git a/hw/ppc

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/2] Fix migration of old pseries

2016-02-26 Thread Greg Kurz
On Mon, 22 Feb 2016 12:09:12 +1100 David Gibson wrote: > On Fri, Feb 19, 2016 at 08:59:44AM +0100, Greg Kurz wrote: > > On Fri, 19 Feb 2016 11:11:47 +1100 > > David Gibson wrote: > > > > > On Thu, Feb 18, 2016 at 12:32:11PM +0100, Greg Kurz wrote: > > > > QEMU 2.4 broke the migration of old

[Qemu-devel] [PULL] Update OpenBIOS images

2016-02-26 Thread Mark Cave-Ayland
Hi Peter, This update is mainly for PPC and fixes up a few issues with the ESCC serial ports before freeze. Please pull. ATB, Mark. The following changes since commit 0c6940d086f39bbf725d96104abe46da87429cb6: build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target directorie

Re: [Qemu-devel] cpu_memory_rw_debug doesn't work on MIPS?

2016-02-26 Thread Leon Alrae
On 25/02/16 18:56, Igor R wrote: > If I understand correctly, the most advanced MMU that QEMU emulates > for MIPS is "R4000-style" MMU - i.e. a "software-managed" TLB, where > on TLB miss QEMU just emulates exception that should be handled by the > guest OS. So, QEMU doesn't walk through the page d

Re: [Qemu-devel] [PATCH v7 0/9] qemu-log, -dfilter and other logging tweaks

2016-02-26 Thread Alex Bennée
Alex Bennée writes: > As soft-freeze is approaching I'm trying to get these off my queue. v6 > missed out one of the review comments - now I believe all review > comments since v5 have been addressed. The two patches that have seen > the most change are: > > qemu-log: new option -dfilter to

[Qemu-devel] [PATCH v2] doc/memory.txt: fix typo

2016-02-26 Thread Cao jin
and also modify its description, make the text parallel to the existing .impl.unaligned doc. bonus: slightly modified the diagram, make it prettier. Signed-off-by: Cao jin --- docs/memory.txt | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/memory.txt

Re: [Qemu-devel] [PATCH v2] doc/memory.txt: fix typo

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 10:59, Cao jin wrote: > and also modify its description, make the text parallel to the existing > .impl.unaligned doc. For commit messages I think they are nicer to read if they follow the format of: area or file: summary of changes Longer paragraph which describes the ch

Re: [Qemu-devel] [PATCH v2] doc/memory.txt: fix typo

2016-02-26 Thread Cao jin
On 02/26/2016 07:03 PM, Peter Maydell wrote: On 26 February 2016 at 10:59, Cao jin wrote: diff --git a/docs/memory.txt b/docs/memory.txt index 8745f76..8aee3d6 100644 --- a/docs/memory.txt +++ b/docs/memory.txt @@ -186,15 +186,15 @@ of its own subregions: D of size 0x1000 at offset 0 and E

[Qemu-devel] [PULL 0/8] target-mips queue

2016-02-26 Thread Leon Alrae
target directories (2016-02-25 16:41:08 +) are available in the git repository at: git://github.com/lalrae/qemu.git tags/mips-20160226 for you to fetch changes up to 01bc435b44b8802cc4697faa07d908684afbce4e: target-mips: implement R6 multi-threading (2016-

[Qemu-devel] [PULL 6/8] mips/kvm: Support FPU in MIPS KVM guests

2016-02-26 Thread Leon Alrae
From: James Hogan Support the new KVM_CAP_MIPS_FPU capability, which allows the host's FPU to be exposed to the KVM guest. The capability is enabled if the guest core has an FPU according to its Config1 register. Various config bits are now writeable so that KVM is aware of the configuration (Co

[Qemu-devel] [PULL 3/8] mips/kvm: Implement Config CP0 registers

2016-02-26 Thread Leon Alrae
From: James Hogan Implement saving and restoring to KVM state of the Config CP0 registers (namely Config, Config1, Config2, Config3, Config4, and Config5). These control the features available to a guest, and a few of the fields will soon be writeable by a guest so QEMU needs to know about them s

[Qemu-devel] [PULL 1/8] mips/kvm: Remove a couple of noisy DPRINTFs

2016-02-26 Thread Leon Alrae
From: James Hogan The DPRINTFs in cpu_mips_io_interrupts_pending() and kvm_arch_pre_run() are particularly noisy during normal execution, and also not particularly helpful. Remove them so that more important debug messages can be more easily seen. Signed-off-by: James Hogan Reviewed-by: Leon Al

[Qemu-devel] [PULL 2/8] mips/kvm: Implement PRid CP0 register

2016-02-26 Thread Leon Alrae
From: James Hogan Implement saving and restoring to KVM state of the Processor ID (PRid) CP0 register. This allows QEMU to control the PRid exposed to the guest instead of using the default set by KVM. Signed-off-by: James Hogan Reviewed-by: Leon Alrae Cc: Paolo Bonzini Cc: Aurelien Jarno Si

[Qemu-devel] [PULL 8/8] target-mips: implement R6 multi-threading

2016-02-26 Thread Leon Alrae
From: Yongbok Kim MIPS Release 6 provides multi-threading features which replace pre-R6 MT Module. CP0.Config3.MT is always 0 in R6, instead there is new CP0.Config5.VP (Virtual Processor) bit which indicates presence of multi-threading support which includes CP0.GlobalNumber register and DVP/EVP

[Qemu-devel] [PULL 7/8] mips/kvm: Support MSA in MIPS KVM guests

2016-02-26 Thread Leon Alrae
From: James Hogan Support the new KVM_CAP_MIPS_MSA capability, which allows MIPS SIMD Architecture (MSA) to be exposed to the KVM guest. The capability is enabled if the guest core has MSA according to its Config3 register. Various config bits are now writeable so that KVM is aware of the config

Re: [Qemu-devel] [PATCH v2] doc/memory.txt: fix typo

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 11:12, Cao jin wrote: > On 02/26/2016 07:03 PM, Peter Maydell wrote: >> Why is this patch touching all these ascii art diagrams? If you want >> to change them, that's a different patch, but I don't see any need to. >> In fact you seem to have lost some of the [] from your ve

[Qemu-devel] [PULL 4/8] mips/kvm: Support unsigned KVM registers

2016-02-26 Thread Leon Alrae
From: James Hogan Add KVM register access functions for the uint32_t type. This is required for FP and MSA control registers, which are represented as unsigned 32-bit integers. Signed-off-by: James Hogan Cc: Paolo Bonzini Cc: Leon Alrae Cc: Aurelien Jarno Signed-off-by: Leon Alrae --- targ

[Qemu-devel] [PULL 5/8] mips/kvm: Support signed 64-bit KVM registers

2016-02-26 Thread Leon Alrae
From: James Hogan Rename kvm_mips_{get,put}_one_reg64() to kvm_mips_{get,put}_one_ureg64() since they take an int64_t pointer, and add separate signed 64-bit accessors. These will be used for double precision floating point registers. Signed-off-by: James Hogan Cc: Paolo Bonzini Cc: Leon Alrae

[Qemu-devel] [PATCH v3 0/2] doc/memory: cleanup

2016-02-26 Thread Cao jin
see each commit message Cao jin (2): doc/memory: fix typo doc/memory: remove the stray extra '-' docs/memory.txt | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.1.0

[Qemu-devel] [PATCH v3 2/2] doc/memory: remove the stray extra '-'

2016-02-26 Thread Cao jin
Signed-off-by: Cao jin --- docs/memory.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index 306280e..d5c216c 100644 --- a/docs/memory.txt +++ b/docs/memory.txt @@ -185,8 +185,8 @@ an MMIO region mapped at 0x0, size 0x6000, priority 2.

[Qemu-devel] [PATCH v3 1/2] doc/memory: fix typo

2016-02-26 Thread Cao jin
Fix typo while also modify its description, make the text parallel to the existing .impl.unaligned doc. Signed-off-by: Cao jin --- docs/memory.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index 8745f76..306280e 100644 --- a/docs/m

[Qemu-devel] [PATCH 05/12] spapr_pci: Fold spapr_phb_vfio_eeh_reset() into spapr_pci code

2016-02-26 Thread David Gibson
Simplify the sPAPR PCI code by folding spapr_phb_vfio_eeh_reset() into rtas_ibm_set_slot_reset(). We move several functions of which it was the only caller (spapr_phb_eeh_clear_dev_msix(), spapr_phb_eeh_clear_bus_msix() and spapr_phb_eeh_pre_reset()) into spapr_pci.c along with it. Signed-off-by:

[Qemu-devel] [PATCH 07/12] spapr_pci: Fold spapr_phb_vfio_eeh_set_option() into spapr_pci code

2016-02-26 Thread David Gibson
Simplify the sPAPR PCI code by folding spapr_phb_eeh_set_option() into rtas_ibm_set_eeh_option(). Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 43 +++-- hw/ppc/spapr_pci_vfio.c | 47 - include/hw

[Qemu-devel] [PATCH 10/12] spapr_pci: (Mostly) remove spapr-pci-vfio-host-bridge

2016-02-26 Thread David Gibson
Now that the regular spapr-pci-host-bridge can handle EEH, there are only two things that spapr-pci-vfio-host-bridge does differently: 1. automatically sizes its DMA window to match the host IOMMU 2. checks if the attached VFIO container is backed by the VFIO_SPAPR_TCE_IOMMU type on

[Qemu-devel] [PATCH 08/12] spapr_pci: Fold spapr_phb_vfio_reset() into spapr_pci code

2016-02-26 Thread David Gibson
Simplify the sPAPR PCI code by folding spapr_phb_vfio_reset() into spapr_phb_reset(). Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 13 - hw/ppc/spapr_pci_vfio.c | 16 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/ppc/spapr_pci.c b/h

[Qemu-devel] [PATCH 00/12] Allow EEH on spapr-pci-host-bridge devices

2016-02-26 Thread David Gibson
For historical reasons, the spapr machine type has two PCI host bridge implementations: spapr-pci-host-bridge, and spapr-vfio-pci-host-bridge. The latter was (duh) designed for VFIO devices, but later reworks mean it's not necessary for that, and VFIO can be used on the regular host bridge. The o

[Qemu-devel] [PATCH 02/12] spapr_pci: Switch to vfio_eeh_as_op() interface

2016-02-26 Thread David Gibson
This switches all EEH on VFIO operations in spapr_pci_vfio.c from the broken vfio_container_ioctl() interface to the new vfio_as_eeh_op() interface. Signed-off-by: David Gibson mak --- hw/ppc/spapr_pci_vfio.c | 50 - 1 file changed, 16 insertions(+)

[Qemu-devel] [PATCH 06/12] spapr_pci: Fold spapr_phb_vfio_eeh_get_state() into spapr_pci code

2016-02-26 Thread David Gibson
Simplify the sPAPR PCI code by folding spapr_phb_vfio_eeh_get_state9) into rtas_ibm_read_slot_reset_state2(). Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 12 ++-- hw/ppc/spapr_pci_vfio.c | 13 - include/hw/pci-host/spapr.h | 1 - 3 files changed, 6 inse

[Qemu-devel] [PATCH 01/12] vfio: Start improving VFIO/EEH interface

2016-02-26 Thread David Gibson
At present the code handling IBM's Enhanced Error Handling (EEH) interface on VFIO devices operates by bypassing the usual VFIO logic with vfio_container_ioctl(). That's a poorly designed interface with unclear semantics about exactly what can be operated on. In particular it operates on a single

[Qemu-devel] [PATCH 04/12] spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code

2016-02-26 Thread David Gibson
Simplify the sPAPR PCI code by folding spapr_phb_vfio_eeh_configure() into rtas_ibm_configure_pe(). Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 11 +-- hw/ppc/spapr_pci_vfio.c | 12 include/hw/pci-host/spapr.h | 1 - 3 files changed, 9 insertions(+), 1

[Qemu-devel] [PATCH 09/12] spapr_pci: Allow EEH on spapr-pci-host-bridge

2016-02-26 Thread David Gibson
Now that the EEH code is independent of the special spapr-vfio-pci-host-bridge device, we can allow it on all spapr PCI host bridges instead. We do this by changing spapr_phb_eeh_available() to be based on the vfio_eeh_as_ok() call instead of the host bridge class. Because the value of vfio_eeh_a

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/2] Fix migration of old pseries

2016-02-26 Thread David Gibson
On Fri, Feb 26, 2016 at 11:49:56AM +0100, Greg Kurz wrote: > On Mon, 22 Feb 2016 12:09:12 +1100 > David Gibson wrote: > > > On Fri, Feb 19, 2016 at 08:59:44AM +0100, Greg Kurz wrote: > > > On Fri, 19 Feb 2016 11:11:47 +1100 > > > David Gibson wrote: > > > > > > > On Thu, Feb 18, 2016 at 12:32

[Qemu-devel] [PATCH 03/12] spapr_pci: Eliminate class callbacks

2016-02-26 Thread David Gibson
The EEH operations in the spapr-vfio-pci-host-bridge no longer rely on the special groupid field in sPAPRPHBVFIOState. So we can simplify, removing the class specific callbacks with direct calls based on a simple spapr_phb_eeh_enabled() helper. For now we implement that in terms of a boolean in t

Re: [Qemu-devel] [PATCH 00/12] Allow EEH on spapr-pci-host-bridge devices

2016-02-26 Thread David Gibson
On Fri, Feb 26, 2016 at 10:31:51PM +1100, David Gibson wrote: > For historical reasons, the spapr machine type has two PCI host bridge > implementations: spapr-pci-host-bridge, and > spapr-vfio-pci-host-bridge. The latter was (duh) designed for VFIO > devices, but later reworks mean it's not neces

[Qemu-devel] [PATCH 11/12] spapr_pci: Remove finish_realize hook

2016-02-26 Thread David Gibson
Now that spapr-pci-vfio-host-bridge is reduced to just a stub, there is only one implementation of the finish_realize hook in sPAPRPHBClass. So, we can fold that implementation into its (single) caller, and remove the hook. That's the last thing left in sPAPRPHBClass, so that can go away as well.

Re: [Qemu-devel] [PATCH v3 1/2] doc/memory: fix typo

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 11:29, Cao jin wrote: > Fix typo while also modify its description, make the text parallel to > the existing .impl.unaligned doc. This still isn't a typo... > Signed-off-by: Cao jin > --- > docs/memory.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >

Re: [Qemu-devel] [PULL 0/9] qemu-ga patch queue for 2.6

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 05:44, Stefan Weil wrote: > Am 25.02.2016 um 22:27 schrieb Michael Roth: >> Quoting Peter Maydell (2016-02-25 12:18:17) > [...] >>> I'm open to the idea of dropping old-mingw from the build rotation >>> if it looks like it really is just totally hopeless, since I have >>> a

[Qemu-devel] [PATCH 12/12] vfio: Eliminate vfio_container_ioctl()

2016-02-26 Thread David Gibson
vfio_container_ioctl() was a bad interface that bypassed abstraction boundaries, had semantics that sat uneasily with its name, and was unsafe in many realistic circumstances. Now that spapr-pci-vfio-host-bridge has been folded into spapr-pci-host-bridge, there are no more users, so remove it. Si

Re: [Qemu-devel] [PULL 0/9] qemu-ga patch queue for 2.6

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 11:39, Peter Maydell wrote: > OK, I have dropped my ancient mingw w32 setup from the compile > testing list, so this pull req is ok to apply as-is. ...and I have done so, which I meant to say. thanks -- PMM

Re: [Qemu-devel] [PATCH v4 0/2] sdhci: pending insert quirk for raspberry pi

2016-02-26 Thread Peter Maydell
On 25 February 2016 at 21:35, Andrew Baumann wrote: > This is a small series to correctly implement a quirk modelling the > behaviour of the card insert interrupt bit on Raspberry Pi, and on > which Windows' UEFI loader sadly depends. > > This should be the last change required to support Windows

Re: [Qemu-devel] [PATCH v3 2/2] doc/memory: remove the stray extra '-'

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 11:29, Cao jin wrote: > Signed-off-by: Cao jin > --- > docs/memory.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/docs/memory.txt b/docs/memory.txt > index 306280e..d5c216c 100644 > --- a/docs/memory.txt > +++ b/docs/memory.txt > @@ -185,8

Re: [Qemu-devel] [PULL 0/6] migration pull

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 09:55, Amit Shah wrote: > The following changes since commit 0c6940d086f39bbf725d96104abe46da87429cb6: > > build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target > directories (2016-02-25 16:41:08 +) > > are available in the git repository at: > > http

Re: [Qemu-devel] [Qemu-ppc] Migrating decrementer

2016-02-26 Thread Mark Cave-Ayland
On 26/02/16 04:35, David Gibson wrote: >> Sign. And let me try that again, this time after caffeine: >> >> cpu_start/resume(): >> cpu->tb_env->tb_offset = >> muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), >> cpu->tb_env->tb_freq, NANOSECONDS_PER_SECOND) + >>

Re: [Qemu-devel] [PATCH 1/1] arm: virt: change GPIO trigger interrupt to pulse

2016-02-26 Thread Shannon Zhao
On 2016/2/25 6:22, Wei Huang wrote: > > > On 02/20/2016 04:53 AM, Shannon Zhao wrote: >> Hi Wei, >> >> On 2016/2/10 6:59, Wei Huang wrote: >>> >>> On 02/04/2016 12:51 AM, Shannon Zhao wrote: On 2016/2/4 14:10, Wei Huang wrote: > > On 02/03/2016 07:44 PM, Shannon Zhao wrot

[Qemu-devel] [PATCH v1 1/1] target-arm: Mark CNTHP_TVAL_EL2 as ARM_CP_NO_RAW

2016-02-26 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Mark CNTHP_TVAL_EL2 as ARM_CP_NO_RAW due to the register not having any underlying state. This fixes an issue with booting KVM enabled kernels when EL2 is on. Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [Qemu-devel] [PATCH COLO-Frame v15 27/38] migration/savevm: Add new helpers to process the different stages of loadvm

2016-02-26 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > There are several stages during loadvm process. In different stage, > migration incoming processes different section. > We want to control these stages more accuracy, to optimize the COLO > capability. > > Here we add two new helper functio

Re: [Qemu-devel] [PATCH 1/1] arm: virt: change GPIO trigger interrupt to pulse

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 12:31, Shannon Zhao wrote: > So how about below patch? I've tested it and it works both for ACPI and > DT. Could you help verify if it works for you? Thanks. > > diff --git a/hw/arm/virt.c b/hw/arm/virt.c > index 15658f4..4d45ea2 100644 > --- a/hw/arm/virt.c > +++ b/hw/arm/v

Re: [Qemu-devel] [PULL] Update OpenBIOS images

2016-02-26 Thread Peter Maydell
On 26 February 2016 at 10:51, Mark Cave-Ayland wrote: > Hi Peter, > > This update is mainly for PPC and fixes up a few issues with the ESCC serial > ports before freeze. Please pull. > > > ATB, > > Mark. > > > The following changes since commit 0c6940d086f39bbf725d96104abe46da87429cb6: > > buil

Re: [Qemu-devel] [PATCH COLO-Frame v15 28/38] migration/savevm: Export two helper functions for savevm process

2016-02-26 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > We add a new helper functions qemu_savevm_live_state(), > and make qemu_save_device_state() public. > > Signed-off-by: zhanghailiang > Signed-off-by: Li Zhijian Reviewed-by: Dr. David Alan Gilbert Again the extra function doesn't do mu

Re: [Qemu-devel] [RFC PATCH v0 4/6] spapr: CPU hotplug support

2016-02-26 Thread Thomas Huth
On 25.02.2016 17:22, Bharata B Rao wrote: > Set up device tree entries for the hotplugged CPU core and use the > exising EPOW event infrastructure to send CPU hotplug notification to > the guest. > > Signed-off-by: Bharata B Rao > --- > hw/ppc/spapr.c | 136 > +++

[Qemu-devel] [PATCH RFC] tests: always build test programs

2016-02-26 Thread Daniel P. Berrange
It is easy to miss that a change broke compilation of a unit test unless you always remember to run 'make check-unit' for every patch. Hook build of unit test programs into the 'all' target so that they are built by default. Signed-off-by: Daniel P. Berrange --- tests/Makefile | 2 ++ 1 file cha

Re: [Qemu-devel] [PATCH 2/2] hmp: Extend drive_del to delete nodes without BB

2016-02-26 Thread Max Reitz
On 24.02.2016 19:23, Kevin Wolf wrote: > Am 24.02.2016 um 18:54 hat Max Reitz geschrieben: >> On 23.02.2016 18:16, Kevin Wolf wrote: >>> Now that we can use drive_add to create new nodes without a BB, we also >>> want to be able to delete such nodes again. >>> >>> Signed-off-by: Kevin Wolf >>> ---

Re: [Qemu-devel] [PATCH 2/2] hmp: Extend drive_del to delete nodes without BB

2016-02-26 Thread Max Reitz
On 25.02.2016 13:51, Peter Krempa wrote: > On Wed, Feb 24, 2016 at 18:54:45 +0100, Max Reitz wrote: >> On 23.02.2016 18:16, Kevin Wolf wrote: >>> Now that we can use drive_add to create new nodes without a BB, we also >>> want to be able to delete such nodes again. >>> >>> Signed-off-by: Kevin Wolf

[Qemu-devel] [RFC 01/11] config/config-arm-common: build-up tests-common target

2016-02-26 Thread Alex Bennée
This is a source of needless conflicts when adding new tests and re-basing. Let's just build up the lists of tests by hand. Signed-off-by: Alex Bennée --- config/config-arm-common.mak | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config-arm-common.mak b/config/c

[Qemu-devel] [RFC 02/11] arm/arm64: irq enable/disable

2016-02-26 Thread Alex Bennée
From: Andrew Jones Signed-off-by: Andrew Jones --- lib/arm/asm/processor.h | 10 ++ lib/arm64/asm/processor.h | 10 ++ 2 files changed, 20 insertions(+) diff --git a/lib/arm/asm/processor.h b/lib/arm/asm/processor.h index f25e7ee..a3a4e0b 100644 --- a/lib/arm/asm/processor.h

[Qemu-devel] [RFC 06/11] arm/run: set indentation defaults for emacs

2016-02-26 Thread Alex Bennée
Signed-off-by: Alex Bennée --- arm/run | 1 + 1 file changed, 1 insertion(+) diff --git a/arm/run b/arm/run index dc0a332..0eaf23a 100755 --- a/arm/run +++ b/arm/run @@ -1,4 +1,5 @@ #!/bin/bash +# -*- sh-basic-offset:8 indent-tabs-mode: t -*- if [ -z "$STANDALONE" ]; then if [ ! -f c

[Qemu-devel] [RFC 04/11] arm/arm64: Add IPI test

2016-02-26 Thread Alex Bennée
From: Andrew Jones Signed-off-by: Andrew Jones [ajb: slight tweak to .mak file] Signed-off-by: Alex Bennée --- arm/ipi-test.c | 58 config/config-arm-common.mak | 2 ++ 2 files changed, 60 insertions(+) create mode 100644 arm/ipi-tes

  1   2   3   >