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

2015-07-07 Thread David Gibson
On Wed, Jul 08, 2015 at 08:24:56AM +0200, Thomas Huth wrote: > On Wed, 8 Jul 2015 14:30:29 +1000 > David Gibson wrote: > > > On Tue, Jul 07, 2015 at 09:05:02PM +1000, Alexey Kardashevskiy wrote: > > > On 07/07/2015 08:21 PM, Thomas Huth wrote: > > > >On Tue, 7 Jul 2015 20:05:25 +1000 > > > >Alexe

Re: [Qemu-devel] [PATCH] target-ppc: Add POWER8E_v2.1 CPU model.

2015-07-07 Thread David Gibson
On Wed, Jul 08, 2015 at 04:40:27PM +1000, Alexey Kardashevskiy wrote: > On 07/08/2015 03:37 PM, David Gibson wrote: > >On Wed, Jul 08, 2015 at 02:10:28PM +1000, Alexey Kardashevskiy wrote: > >>On 07/08/2015 01:43 PM, David Gibson wrote: > >>>From: Andrea Bolognani > >>> > >>>Add a missing PVR valu

Re: [Qemu-devel] [RFC PATCH] target-ppc: Register CPU class per family only when needed

2015-07-07 Thread Alexey Kardashevskiy
On 07/08/2015 04:37 PM, Alexey Kardashevskiy wrote: Adding David to this old conversation. This is the patch: http://patchwork.ozlabs.org/patch/446544/ On 03/17/2015 09:47 AM, Alexey Kardashevskiy wrote: On 03/16/2015 09:40 PM, Andreas Färber wrote: Am 16.03.2015 um 05:58 schrieb Alexey

Re: [Qemu-devel] [PATCH] target-ppc: Add POWER8E_v2.1 CPU model.

2015-07-07 Thread Alexey Kardashevskiy
On 07/08/2015 03:37 PM, David Gibson wrote: On Wed, Jul 08, 2015 at 02:10:28PM +1000, Alexey Kardashevskiy wrote: On 07/08/2015 01:43 PM, David Gibson wrote: From: Andrea Bolognani Add a missing PVR value for the POWER8E v2.1 CPU. Information taken >from the kernel cputable. Signed-off-by

Re: [Qemu-devel] [RFC PATCH] target-ppc: Register CPU class per family only when needed

2015-07-07 Thread Alexey Kardashevskiy
Adding David to this old conversation. On 03/17/2015 09:47 AM, Alexey Kardashevskiy wrote: On 03/16/2015 09:40 PM, Andreas Färber wrote: Am 16.03.2015 um 05:58 schrieb Alexey Kardashevskiy: On 03/06/2015 12:17 AM, Alexander Graf wrote: On 05.03.15 02:56, Alexey Kardashevskiy wrote: At the mo

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

2015-07-07 Thread Alexey Kardashevskiy
On 07/08/2015 02:24 AM, Alex Williamson wrote: 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:1

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

2015-07-07 Thread Thomas Huth
On Wed, 8 Jul 2015 14:30:29 +1000 David Gibson wrote: > On Tue, Jul 07, 2015 at 09:05:02PM +1000, Alexey Kardashevskiy wrote: > > On 07/07/2015 08:21 PM, Thomas Huth wrote: > > >On Tue, 7 Jul 2015 20:05:25 +1000 > > >Alexey Kardashevskiy wrote: > > > > > >>On 07/07/2015 05:23 PM, Thomas Huth wro

Re: [Qemu-devel] [PULL 24/28] migration: Make events a capability

2015-07-07 Thread Jiri Denemark
On Tue, Jul 07, 2015 at 15:09:05 +0200, Juan Quintela wrote: > Make check fails with events. THis is due to the parser/lexer that it > uses. Just in case that they are more broken parsers, just only send > events when there are capabilities. > > Signed-off-by: Juan Quintela > Reviewed-by: Dr. D

Re: [Qemu-devel] [PATCH] target-ppc: Add POWER8E_v2.1 CPU model.

2015-07-07 Thread David Gibson
On Wed, Jul 08, 2015 at 02:10:28PM +1000, Alexey Kardashevskiy wrote: > On 07/08/2015 01:43 PM, David Gibson wrote: > >From: Andrea Bolognani > > > >Add a missing PVR value for the POWER8E v2.1 CPU. Information taken > >from the kernel cputable. > > > >Signed-off-by: Andrea Bolognani > >Signed-o

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

2015-07-07 Thread David Gibson
On Tue, Jul 07, 2015 at 09:05:02PM +1000, Alexey Kardashevskiy wrote: > On 07/07/2015 08:21 PM, Thomas Huth wrote: > >On Tue, 7 Jul 2015 20:05:25 +1000 > >Alexey Kardashevskiy wrote: > > > >>On 07/07/2015 05:23 PM, Thomas Huth wrote: > >>>On Mon, 6 Jul 2015 12:11:09 +1000 > >>>Alexey Kardashevski

Re: [Qemu-devel] [PATCH qemu v10 00/14] spapr: vfio: Enable Dynamic DMA windows (DDW)

2015-07-07 Thread David Gibson
On Mon, Jul 06, 2015 at 05:54:56PM +0200, Thomas Huth wrote: > On Mon, 6 Jul 2015 12:10:56 +1000 > Alexey Kardashevskiy wrote: > ... > > > > This patchset adds DDW support for pseries. The host kernel changes are > > required, available in the current upstream. > > > > This patchset is based on

Re: [Qemu-devel] [PATCH 2/2] tests: test rx recovery from cont

2015-07-07 Thread Fam Zheng
On Wed, 07/08 13:44, Fam Zheng wrote: > On Wed, 07/08 13:12, Jason Wang wrote: > > > > > > On 07/08/2015 11:22 AM, Fam Zheng wrote: > > > On Tue, 07/07 18:58, Jason Wang wrote: > > >> Rx should be recovered after cont. > > >> > > >> Signed-off-by: Jason Wang > > >> --- > > >> tests/virtio-net-t

Re: [Qemu-devel] [PATCH 1/2] tests: introduce basic pci test for virtio-net

2015-07-07 Thread Fam Zheng
On Wed, 07/08 13:02, Jason Wang wrote: > > > On 07/08/2015 11:19 AM, Fam Zheng wrote: > > On Tue, 07/07 18:58, Jason Wang wrote: > >> Signed-off-by: Jason Wang > >> --- > >> tests/Makefile | 2 +- > >> tests/virtio-net-test.c | 184 > >> ++

Re: [Qemu-devel] [PATCH 2/2] tests: test rx recovery from cont

2015-07-07 Thread Fam Zheng
On Wed, 07/08 13:12, Jason Wang wrote: > > > On 07/08/2015 11:22 AM, Fam Zheng wrote: > > On Tue, 07/07 18:58, Jason Wang wrote: > >> Rx should be recovered after cont. > >> > >> Signed-off-by: Jason Wang > >> --- > >> tests/virtio-net-test.c | 48 > >> +

Re: [Qemu-devel] [PATCH 2/2] tests: test rx recovery from cont

2015-07-07 Thread Jason Wang
On 07/08/2015 11:22 AM, Fam Zheng wrote: > On Tue, 07/07 18:58, Jason Wang wrote: >> Rx should be recovered after cont. >> >> Signed-off-by: Jason Wang >> --- >> tests/virtio-net-test.c | 48 >> >> 1 file changed, 48 insertions(+) >> >> diff --g

Re: [Qemu-devel] [PATCH 1/2] tests: introduce basic pci test for virtio-net

2015-07-07 Thread Jason Wang
On 07/08/2015 11:19 AM, Fam Zheng wrote: > On Tue, 07/07 18:58, Jason Wang wrote: >> Signed-off-by: Jason Wang >> --- >> tests/Makefile | 2 +- >> tests/virtio-net-test.c | 184 >> ++-- >> 2 files changed, 178 insertions(+), 8 deletions(-)

Re: [Qemu-devel] [PATCH] target-ppc: Add POWER8E_v2.1 CPU model.

2015-07-07 Thread Alexey Kardashevskiy
On 07/08/2015 01:43 PM, David Gibson wrote: From: Andrea Bolognani Add a missing PVR value for the POWER8E v2.1 CPU. Information taken from the kernel cputable. Signed-off-by: Andrea Bolognani Signed-off-by: David Gibson --- target-ppc/cpu-models.c | 4 +++- target-ppc/cpu-models.h | 1 +

[Qemu-devel] [PATCH] target-ppc: Add POWER8E_v2.1 CPU model.

2015-07-07 Thread David Gibson
From: Andrea Bolognani Add a missing PVR value for the POWER8E v2.1 CPU. Information taken from the kernel cputable. Signed-off-by: Andrea Bolognani Signed-off-by: David Gibson --- target-ppc/cpu-models.c | 4 +++- target-ppc/cpu-models.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-

Re: [Qemu-devel] [PATCH 2/2] tests: test rx recovery from cont

2015-07-07 Thread Fam Zheng
On Tue, 07/07 18:58, Jason Wang wrote: > Rx should be recovered after cont. > > Signed-off-by: Jason Wang > --- > tests/virtio-net-test.c | 48 > 1 file changed, 48 insertions(+) > > diff --git a/tests/virtio-net-test.c b/tests/virtio-net-test.c

Re: [Qemu-devel] [PATCH 1/2] tests: introduce basic pci test for virtio-net

2015-07-07 Thread Fam Zheng
On Tue, 07/07 18:58, Jason Wang wrote: > Signed-off-by: Jason Wang > --- > tests/Makefile | 2 +- > tests/virtio-net-test.c | 184 > ++-- > 2 files changed, 178 insertions(+), 8 deletions(-) > > diff --git a/tests/Makefile b/tests/Makefile

Re: [Qemu-devel] [PATCH 2/3] AioContext: acquire/release AioContext during aio_poll

2015-07-07 Thread Fam Zheng
On Fri, 02/20 17:26, Paolo Bonzini wrote: > This is the first step in pushing down acquire/release, and will let > rfifolock drop the contention callback feature. > > Signed-off-by: Paolo Bonzini > --- > aio-posix.c | 9 + > aio-win32.c | 8 > include/block/aio

[Qemu-devel] [PATCH 06/11] qga: fail early for invalid time

2015-07-07 Thread Michael Roth
From: Marc-André Lureau It's possible to set system time with dates after 2070, however, it's not possible to set the RTC. It has limitation to up to year 2070 (1970+100). In order to keep both clock in sync and before the kernel complains on invalid values, bail out early. Signed-off-by: Marc-A

[Qemu-devel] [PATCH 05/11] qga: win32 qmp_guest_network_get_interfaces implementation

2015-07-07 Thread Michael Roth
From: Kirk Allan By default, IPv4 prefixes will be derived by matching the address to those returned by GetAdaptersInfo. IPv6 prefixes can not be matched this way due to the unpredictable order of entries. In Windows Vista/2008 guests and newer, both IPv4 and IPv6 prefixes can be retrieved from

[Qemu-devel] [PATCH 08/11] qga: added mountpoint and filesystem type for single volume

2015-07-07 Thread Michael Roth
From: Olga Krishtal We should use GetVolumeXXX api to work with volumes. This will help us to resolve the situation with volumes without drive letter, i.e. when the volume is mounted as a folder. Such volume is called mounted folder. This volume is a regular mounted volume from all other points o

[Qemu-devel] [PATCH 11/11] qga: added GuestPCIAddress information

2015-07-07 Thread Michael Roth
PCIAddress inforfation is obtained via SetupApi, which provides the information about address, bus, etc. We look throught entire device tree in the system and try to find device object for given volume. For this PDO SetupDiGetDeviceRegistryProperty is called, which reads PCI configuration for a giv

[Qemu-devel] [PATCH 10/11] qga: added bus type and disk location path

2015-07-07 Thread Michael Roth
From: Olga Krishtal According to Microsoft disk location path can be obtained via IOCTL_SCSI_GET_ADDRESS. Unfortunately this ioctl can not be used for all devices. There are certain bus types which could be obtained with this API. Please, refer to the following link for more details https://techn

[Qemu-devel] [PATCH 02/11] qga/qmp_guest_fstrim: Return per path fstrim result

2015-07-07 Thread Michael Roth
From: Justin Ossevoort The current guest-fstrim support only returns an error if some mountpoint was unable to be trimmed, skipping any possible additional mountpoints. The result of the TRIM operation itself is also discarded. This change returns a per mountpoint result of the TRIM operation. I

[Qemu-devel] [PATCH 03/11] Revert "guest agent: remove g_strcmp0 usage"

2015-07-07 Thread Michael Roth
From: Markus Armbruster Since we now require GLib 2.22+ (commit f40685c), we don't have to work around lack of g_strcmp0() anymore. This reverts commit 8f4774789947bc4bc4c8d026a289fe980d3d2ee1. Conflicts: qemu-ga.c Signed-off-by: Markus Armbruster Reviewed-by: John Snow Signed-off-by

[Qemu-devel] [PATCH 07/11] qga: added empty qmp_quest_get_fsinfo functionality.

2015-07-07 Thread Michael Roth
From: Olga Krishtal We need qmp_quest_get_fsinfo togather with vss-provider, which works with volumes. The call to this function is implemented via FindFirst/NextVolumes. Moreover, volumes in Windows OS are filesystem unit, so it will be more effective to work with them rather with devices. Sign

[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 -

[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] [PULL v3 00/11] qemu-ga patches for 2.4.0

2015-07-07 Thread Michael Roth
Hi Peter, Please ignore the just-posted v2, the configure check was missing an include which resulted in the feature *always* being disabled. Sorry for all the noise. This adds win32 implementations of: guest-get-fsinfo guest-network-get-interfaces and modifies guest-fstrim to return per-mou

[Qemu-devel] [PATCH 01/11] qga/commands-posix: Fix bug in guest-fstrim

2015-07-07 Thread Michael Roth
From: Justin Ossevoort The FITRIM ioctl updates the fstrim_range structure it receives. This way the caller can determine how many bytes were trimmed. The guest-fstrim logic reuses the same fstrim_range for each filesystem, effectively limiting each filesystem to trim at most as much as the previ

Re: [Qemu-devel] [PATCH v2 05/10] block: add block job transactions

2015-07-07 Thread Fam Zheng
On Tue, 07/07 13:59, Stefan Hajnoczi wrote: > On Tue, Jul 07, 2015 at 03:32:45PM +0800, Fam Zheng wrote: > > On Mon, 07/06 15:24, Stefan Hajnoczi wrote: > > > +/** > > > + * block_job_txn_add_job: > > > + * @txn: The transaction (may be NULL) > > > + * @job: Job to add to the transaction > > > + *

[Qemu-devel] [PATCH 05/11] qga: win32 qmp_guest_network_get_interfaces implementation

2015-07-07 Thread Michael Roth
From: Kirk Allan By default, IPv4 prefixes will be derived by matching the address to those returned by GetAdaptersInfo. IPv6 prefixes can not be matched this way due to the unpredictable order of entries. In Windows Vista/2008 guests and newer, both IPv4 and IPv6 prefixes can be retrieved from

[Qemu-devel] [PATCH 06/11] qga: fail early for invalid time

2015-07-07 Thread Michael Roth
From: Marc-André Lureau It's possible to set system time with dates after 2070, however, it's not possible to set the RTC. It has limitation to up to year 2070 (1970+100). In order to keep both clock in sync and before the kernel complains on invalid values, bail out early. Signed-off-by: Marc-A

[Qemu-devel] [PATCH 08/11] qga: added mountpoint and filesystem type for single volume

2015-07-07 Thread Michael Roth
From: Olga Krishtal We should use GetVolumeXXX api to work with volumes. This will help us to resolve the situation with volumes without drive letter, i.e. when the volume is mounted as a folder. Such volume is called mounted folder. This volume is a regular mounted volume from all other points o

[Qemu-devel] [PATCH 02/11] qga/qmp_guest_fstrim: Return per path fstrim result

2015-07-07 Thread Michael Roth
From: Justin Ossevoort The current guest-fstrim support only returns an error if some mountpoint was unable to be trimmed, skipping any possible additional mountpoints. The result of the TRIM operation itself is also discarded. This change returns a per mountpoint result of the TRIM operation. I

[Qemu-devel] [PATCH 11/11] qga: added GuestPCIAddress information

2015-07-07 Thread Michael Roth
PCIAddress inforfation is obtained via SetupApi, which provides the information about address, bus, etc. We look throught entire device tree in the system and try to find device object for given volume. For this PDO SetupDiGetDeviceRegistryProperty is called, which reads PCI configuration for a giv

[Qemu-devel] [PATCH 10/11] qga: added bus type and disk location path

2015-07-07 Thread Michael Roth
From: Olga Krishtal According to Microsoft disk location path can be obtained via IOCTL_SCSI_GET_ADDRESS. Unfortunately this ioctl can not be used for all devices. There are certain bus types which could be obtained with this API. Please, refer to the following link for more details https://techn

[Qemu-devel] [PATCH 03/11] Revert "guest agent: remove g_strcmp0 usage"

2015-07-07 Thread Michael Roth
From: Markus Armbruster Since we now require GLib 2.22+ (commit f40685c), we don't have to work around lack of g_strcmp0() anymore. This reverts commit 8f4774789947bc4bc4c8d026a289fe980d3d2ee1. Conflicts: qemu-ga.c Signed-off-by: Markus Armbruster Reviewed-by: John Snow Signed-off-by

[Qemu-devel] [PULL v2 00/11] qemu-ga patches for 2.4.0

2015-07-07 Thread Michael Roth
Hi Peter, Here's an updated PULL for outstanding qemu-ga patches. There's a configure check added to deal with the MinGW breakage as discussed. This adds win32 implementations of: guest-get-fsinfo guest-network-get-interfaces and modifies guest-fstrim to return per-mount results and continue

[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 -

[Qemu-devel] [PATCH 01/11] qga/commands-posix: Fix bug in guest-fstrim

2015-07-07 Thread Michael Roth
From: Justin Ossevoort The FITRIM ioctl updates the fstrim_range structure it receives. This way the caller can determine how many bytes were trimmed. The guest-fstrim logic reuses the same fstrim_range for each filesystem, effectively limiting each filesystem to trim at most as much as the previ

[Qemu-devel] [PATCH 07/11] qga: added empty qmp_quest_get_fsinfo functionality.

2015-07-07 Thread Michael Roth
From: Olga Krishtal We need qmp_quest_get_fsinfo togather with vss-provider, which works with volumes. The call to this function is implemented via FindFirst/NextVolumes. Moreover, volumes in Windows OS are filesystem unit, so it will be more effective to work with them rather with devices. Sign

[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

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

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 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 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 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

[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

[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
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

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

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] [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 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 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 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] [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] 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] [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 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 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] [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

[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

[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 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 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 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 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

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

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] [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

[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 ---

[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

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] [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

[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 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] 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 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] [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 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 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 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 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

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 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

[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 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 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 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 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 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

  1   2   3   4   5   >