[Qemu-devel] [PATCH 01/19] xen: Create a new file xen_pvdev.c

2016-07-10 Thread Emil Condrea
The purpose of the new file is to store generic functions shared by frontend and backends such as xenstore operations, xendevs. Signed-off-by: Quan Xu Signed-off-by: Emil Condrea --- hw/xen/Makefile.objs | 2 +- hw/xen/xen_backend.c |

[Qemu-devel] [PATCH 06/19] xen: Rename xen_be_printf to xen_pv_printf

2016-07-10 Thread Emil Condrea
Prepare xen_be_printf to be used by both backend and frontends: * xen_be_printf -> xen_pv_printf Signed-off-by: Emil Condrea --- hw/block/xen_disk.c| 52 +++--- hw/char/xen_console.c | 10 - hw/display/xenfb.c

[Qemu-devel] [v9 00/19] QEMU:Xen stubdom vTPM for HVM virtual machine(QEMU Part)

2016-07-10 Thread Emil Condrea
*INTRODUCTION* The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each

[Qemu-devel] [PATCH 05/19] xen: Prepare xendev qtail to be shared with frontends

2016-07-10 Thread Emil Condrea
* move xendevs qtail to xen_pvdev.c * change xen_be_get_xendev to use a new function: xen_pv_insert_xendev Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 70 +--- hw/xen/xen_pvdev.c| 75

[Qemu-devel] [PATCH 09/19] xen: Rename xen_be_evtchn_event

2016-07-10 Thread Emil Condrea
Prepare xen_be_evtchn_event to be shared with frontends: * xen_be_evtchn_event -> xen_pv_evtchn_event Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 2 +- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +- 3 files changed, 3

[Qemu-devel] [PATCH 02/19] xen: Create a new file xen_frontend.c

2016-07-10 Thread Emil Condrea
Its purpose is to store frontend related functions. Signed-off-by: Quan Xu Signed-off-by: Emil Condrea --- hw/block/xen_disk.c | 1 + hw/display/xenfb.c| 1 + hw/net/xen_nic.c | 1 + hw/xen/Makefile.objs |

[Qemu-devel] [PATCH 19/19] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init()

2016-07-10 Thread Emil Condrea
make sure QEMU machine class is initialized and QEMU has registered Xen stubdom vTPM driver when call tpm_init() Signed-off-by: Quan Xu Signed-off-by: Emil Condrea Reviewed-by: Stefan Berger --- vl.c | 17 +++--

[Qemu-devel] [PATCH 03/19] xen: Move xenstore_update to xen_pvdev.c

2016-07-10 Thread Emil Condrea
* xenstore_update -> xen_pvdev.c * xenstore_update_fe -> xen_frontend.c Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 43 +-- hw/xen/xen_frontend.c | 18 ++ hw/xen/xen_pvdev.c|

[Qemu-devel] [PATCH 08/19] xen: Rename xen_be_send_notify

2016-07-10 Thread Emil Condrea
Prepare xen_be_send_notify to be shared with frontends: * xen_be_send_notify -> xen_pv_send_notify Signed-off-by: Emil Condrea --- hw/block/xen_disk.c| 4 ++-- hw/char/xen_console.c | 4 ++-- hw/display/xenfb.c | 8 hw/net/xen_nic.c

[Qemu-devel] [PATCH 04/19] xen: Move evtchn functions to xen_pvdev.c

2016-07-10 Thread Emil Condrea
The name of the functions moved: * xen_be_evtchn_event * xen_be_unbind_evtchn * xen_be_send_notify Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 37 + hw/xen/xen_pvdev.c | 35

[Qemu-devel] [PATCH 10/19] xen: Rename xen_be_find_xendev

2016-07-10 Thread Emil Condrea
Prepare xen_be_find_xendev to be shared with frontends: * xen_be_find_xendev -> xen_pv_find_xendev Signed-off-by: Emil Condrea --- hw/display/xenfb.c | 4 ++-- hw/xen/xen_backend.c | 2 +- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +-

[Qemu-devel] [PATCH 07/19] xen: Rename xen_be_unbind_evtchn

2016-07-10 Thread Emil Condrea
Prepare xen_be_unbind_evtchn to be shared with frontends: * xen_be_unbind_evtchn -> xen_pv_unbind_evtchn Signed-off-by: Emil Condrea --- hw/block/xen_disk.c| 2 +- hw/char/xen_console.c | 2 +- hw/display/xenfb.c | 2 +- hw/net/xen_nic.c |

[Qemu-devel] [PATCH 11/19] xen: Rename xen_be_del_xendev

2016-07-10 Thread Emil Condrea
Prepare xen_be_del_xendev to be shared with frontends: * xen_be_del_xendev -> xen_pv_del_xendev Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 2 +- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +- 3 files changed, 3 insertions(+), 3

[Qemu-devel] [PATCH 12/19] xen: Rename xen_be_frontend_changed

2016-07-10 Thread Emil Condrea
xen_be_frontend_changed -> xen_fe_frontend_changed Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 2 +- hw/xen/xen_frontend.c | 4 ++-- include/hw/xen/xen_frontend.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 14/19] Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line options

2016-07-10 Thread Emil Condrea
Signed-off-by: Quan Xu Signed-off-by: Emil Condrea Reviewed-by: Eric Blake --- Changes in v9: * Replace `type` with `struct` as required by 895a2a80e * Change `qpm_query_tpm_inst` as required by ce21131a0 --- configure| 14

[Qemu-devel] [PATCH 15/19] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2016-07-10 Thread Emil Condrea
This patch adds infrastructure for xen front drivers living in qemu, so drivers don't need to implement common stuff on their own. It's mostly xenbus management stuff: some functions to access XenStore, setting up XenStore watches, callbacks on device discovery and state changes, and handle event

[Qemu-devel] [PATCH 13/19] xen: Distinguish between frontend and backend devops

2016-07-10 Thread Emil Condrea
xen_be_check_state should not be called for frontends Use DEVOPS_FLAG_FE flag to distinguish a frontend. Signed-off-by: Emil Condrea Signed-off-by: Quan Xu --- Changes in v9: * Removed not needed strstr from xenstore_update_be It was left over from

[Qemu-devel] [PATCH 18/19] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backend

2016-07-10 Thread Emil Condrea
This Patch provides the glue for the TPM_TIS(Qemu frontend) to Xen stubdom vTPM domain that provides the actual TPM functionality. It sends data and TPM commends with xen_vtpm_frontend. It is similar as another two vTPM backends: *vTPM passthrough backend Since QEMU 1.5. *vTPM libtpms-based

[Qemu-devel] [PATCH 16/19] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2016-07-10 Thread Emil Condrea
This driver transfers any request/repond between TPM xenstubdoms driver and Xen vTPM stubdom, and facilitates communications between Xen vTPM stubdom domain and vTPM xenstubdoms driver. It is a glue for the TPM xenstubdoms driver and Xen stubdom vTPM domain that provides the actual TPM

[Qemu-devel] [PATCH 17/19] Qemu-Xen-vTPM: Move tpm_passthrough_is_selftest() into tpm_util.c

2016-07-10 Thread Emil Condrea
Also rename it to tpm_util_is_selftest(). Signed-off-by: Quan Xu Signed-off-by: Emil Condrea Reviewed-by: Stefan Berger --- hw/tpm/Makefile.objs | 2 +- hw/tpm/tpm_passthrough.c | 13 + hw/tpm/tpm_util.c

[Qemu-devel] [Bug 1600563] [NEW] min_io_size is currently limited to size uint16_t

2016-07-10 Thread Alex
Public bug reported: I am using LVM VGs on MD-raid1 for hosting my KVM volumes. On the host, a VG looks like this: Disk /dev/vm/vol202a: 60 GiB, 64424509440 bytes, 125829120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr: fix core unplug crash

2016-07-10 Thread Bharata B Rao
On Fri, Jul 08, 2016 at 05:47:01PM +0200, Greg Kurz wrote: > On Fri, 08 Jul 2016 15:12:07 +0200 > Greg Kurz wrote: > > > If the host has 8 threads/core and the guest is started with: > > > > -smp cores=1,threads=4,maxcpus=12 > > > > It is possible to crash QEMU by doing: > > >

[Qemu-devel] [PATCH 6/6] dbdma: reset io->processing flag for unassigned DBDMA channel rw accesses

2016-07-10 Thread Mark Cave-Ayland
Otherwise MacOS 9 hangs upon shutdown. Signed-off-by: Mark Cave-Ayland Acked-by: Benjamin Herrenschmidt --- hw/misc/macio/mac_dbdma.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/macio/mac_dbdma.c

[Qemu-devel] [PATCH 2/6] dbdma: add per-channel debugging enabled via DEBUG_DBDMA_CHANMASK

2016-07-10 Thread Mark Cave-Ayland
By default large amounts of DBDMA debugging are produced when often it is just 1 or 2 channels that are of interest. Introduce DEBUG_DBDMA_CHANMASK to allow the developer to select the channels of interest at compile time, and then further add the extra channel information to each debug statement

Re: [Qemu-devel] [Qemu-ppc] [PULL 05/23] ppc: Enforce setting MSR:EE, IR and DR when MSR:PR is set

2016-07-10 Thread Cédric Le Goater
On 07/09/2016 07:42 PM, G 3 wrote: >> On 07/09/2016 02:43 AM, Mark Cave-Ayland wrote: >> >>> On 01/07/16 07:41, David Gibson wrote: >>> >>> From: Benjamin Herrenschmidt The architecture specifies that any instruction that sets MSR:PR will also set MSR:EE, IR and DR.

[Qemu-devel] [PATCH RFC v4 3/4] docker: Support "QEMU_CHROOT" in dockerfiles

2016-07-10 Thread Fam Zheng
This allows a docker file to say "ENV QEMU_CHROOT /path/to/new/root" to indicate that the test execution should be done in a chroot in the container. Bind mount dev,sys,proc into QEMU_CHROOT to make them avaiable for testing scripts. The SYS_ADMIN is a required capability for mount, add it to

[Qemu-devel] [PATCH RFC v4 2/4] docker: Fix exit code if $CMD failed

2016-07-10 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/docker/run | 4 1 file changed, 4 insertions(+) diff --git a/tests/docker/run b/tests/docker/run index 575e732..38ce789 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -11,6 +11,8 @@ # or (at your option) any later version. See

[Qemu-devel] [Qemu-ppc] [PATCH 0/6] dbdma: improve logging and various fixes

2016-07-10 Thread Programmingkid
On Jul 10, 2016, at 2:09 PM, qemu-ppc-requ...@nongnu.org wrote: > This patchset is based upon some work Ben H did to fix various DBDMA issues > found whilst trying to boot MacOS 9 (effectively a minimal rework of a > WIP diff). With this patch, along with the patch for odd MSR combinations, > it

Re: [Qemu-devel] [RFC PATCH V2] qemu-char: Fix context for g_source_attach()

2016-07-10 Thread Zhang Chen
On 07/08/2016 10:27 PM, Paolo Bonzini wrote: On 08/07/2016 10:54, Daniel P. Berrange wrote: On Fri, Jul 08, 2016 at 09:48:23AM +0800, Fam Zheng wrote: On Wed, 06/22 18:49, Zhang Chen wrote: We want to poll and handle chardev in another thread other than main loop. But

Re: [Qemu-devel] [PATCH 0/6] dbdma: improve logging and various fixes

2016-07-10 Thread David Gibson
On Sun, Jul 10, 2016 at 07:08:52PM +0100, Mark Cave-Ayland wrote: > This patchset is based upon some work Ben H did to fix various DBDMA issues > found whilst trying to boot MacOS 9 (effectively a minimal rework of a > WIP diff). With this patch, along with the patch for odd MSR combinations, > it

Re: [Qemu-devel] [PATCH] spapr: fix core unplug crash

2016-07-10 Thread David Gibson
On Fri, Jul 08, 2016 at 03:12:07PM +0200, Greg Kurz wrote: > If the host has 8 threads/core and the guest is started with: > > -smp cores=1,threads=4,maxcpus=12 > > It is possible to crash QEMU by doing: > > (qemu) device_add host-spapr-cpu-core,core-id=16,id=foo > (qemu) device_del foo >

Re: [Qemu-devel] [PATCH v2] ppc: Fix support for odd MSR combinations

2016-07-10 Thread David Gibson
On Sat, Jul 09, 2016 at 01:41:31PM +1000, Benjamin Herrenschmidt wrote: > MacOS uses an architecturally illegal MSR combination that > seems nonetheless supported by 32-bit processors, which is > to have MSR[PR]=1 and one or more of MSR[DR/IR/EE]=0. > > This adds support for it. To work properly

Re: [Qemu-devel] [PATCH v2] Fix confusing argument names in some common functions

2016-07-10 Thread David Gibson
I'm afraid your mailer has turned this into an unreadable HTML mess. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_!

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr: fix core unplug crash

2016-07-10 Thread David Gibson
On Fri, Jul 08, 2016 at 05:47:01PM +0200, Greg Kurz wrote: > On Fri, 08 Jul 2016 15:12:07 +0200 > Greg Kurz wrote: > > > If the host has 8 threads/core and the guest is started with: > > > > -smp cores=1,threads=4,maxcpus=12 > > > > It is possible to crash QEMU by doing: > > >

Re: [Qemu-devel] [PATCH 6/9] Convert cpu_memory_rw_debug to use MMUAccessType

2016-07-10 Thread David Gibson
On Sun, Jul 10, 2016 at 08:32:32PM +0100, Peter Maydell wrote: > On 8 July 2016 at 04:42, David Gibson wrote: > > My only concern here is that the constants are named > > *MMU*_DATA_... whereas these are physical memory accesses not > > involving the MMU. I can't

Re: [Qemu-devel] [Qemu-ppc] [PULL 05/23] ppc: Enforce setting MSR:EE, IR and DR when MSR:PR is set

2016-07-10 Thread Alfonso Gamboa
I removed OpenTransport and other extensions and control panels as well as patched the System Suitcase on some of those iso's on the emaculation.com forum. They are not stock images. Perhaps we still need further work. As far as 9.0.4 booting, I have never succeeded in booting that, awesome!

[Qemu-devel] [PATCH RFC v4 1/4] docker: More sensible run script

2016-07-10 Thread Fam Zheng
It is very easy to figure out current directory and bash option from the execution, so do less in the Makefile invocation command line, and figure both options in the script. This makes the next patch easier. Signed-off-by: Fam Zheng --- tests/docker/Makefile.include | 4 +---

[Qemu-devel] [PATCH RFC v4 4/4] docker: Add debootstrap-arm image

2016-07-10 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/docker/dockerfiles/debootstrap-arm.docker | 35 + 1 file changed, 35 insertions(+) create mode 100644 tests/docker/dockerfiles/debootstrap-arm.docker diff --git a/tests/docker/dockerfiles/debootstrap-arm.docker

[Qemu-devel] [PATCH 1/6] dbdma: always define DBDMA_DPRINTF and enable debug with DEBUG_DBDMA

2016-07-10 Thread Mark Cave-Ayland
Enabling DBDMA_DPRINTF unconditionally ensures that any errors in debug statements are picked up immediately. Signed-off-by: Mark Cave-Ayland Acked-by: Benjamin Herrenschmidt --- hw/misc/macio/mac_dbdma.c | 15 +++ 1 file

[Qemu-devel] [PATCH 3/6] dbdma: fix endian of DBDMA_CMDPTR_LO during branch

2016-07-10 Thread Mark Cave-Ayland
The current DBDMA command is stored in little-endian format, so make sure we convert it to match our CPU when updating the DBDMA_CMDPTR_LO register. Signed-off-by: Mark Cave-Ayland Acked-by: Benjamin Herrenschmidt ---

Re: [Qemu-devel] [RFC v4 2/6] target-arm: move gicv3_class_name from machine to kvm_arm.h

2016-07-10 Thread Auger Eric
Hi On 06/07/2016 11:46, Eric Auger wrote: > Machine.c contains code related to migration. Let's move > gicv3_class_name to kvm_arm.h instead. > > Signed-off-by: Eric Auger > Suggested-by: Peter Maydell > > --- > > v4: creation > --- >

Re: [Qemu-devel] [RFC PATCH v2 3/5] spapr: Set stable_cpu_id for threads of CPU cores

2016-07-10 Thread Bharata B Rao
On Fri, Jul 08, 2016 at 12:59:59PM +0200, Igor Mammedov wrote: > On Fri, 8 Jul 2016 17:39:52 +1000 > David Gibson wrote: > > > On Fri, Jul 08, 2016 at 12:11:12PM +0530, Bharata B Rao wrote: > > > On Fri, Jul 08, 2016 at 03:24:13PM +1000, David Gibson wrote: > > > >

[Qemu-devel] [PATCH RFC v4 0/4] docker: Support building qemu-user powered docker test images

2016-07-10 Thread Fam Zheng
Alex, This is the result of my fiddling around docker + qemu-user in the weekend. It can do most of the work except the injection of qemu-user binary from host build. We can try to integrate your "docker.py update" into Makefile to do that, but an open question is how to handle the dependency

Re: [Qemu-devel] [RFC PATCH v2 2/5] cpu: Introduce CPUState::stable_cpu_id

2016-07-10 Thread David Gibson
On Fri, Jul 08, 2016 at 01:11:02PM +0200, Igor Mammedov wrote: > On Fri, 8 Jul 2016 15:19:58 +1000 > David Gibson wrote: > > > On Thu, Jul 07, 2016 at 08:20:22PM +0530, Bharata B Rao wrote: > > > Add CPUState::stable_cpu_id and use that as instance_id in > > >

Re: [Qemu-devel] ext4 error when testing virtio-scsi & vhost-scsi

2016-07-10 Thread Zhangfei Gao
Hi Does qemu process need flush data before closing? In the test of virtio_scsi & vhost_scsi, the first time read & write to the mounted disk have no problem. But after reboot, remount the disk, error happen immediately when remove the files created in the first time. For example: # targetcli

Re: [Qemu-devel] [RFC PATCH v2 3/5] spapr: Set stable_cpu_id for threads of CPU cores

2016-07-10 Thread David Gibson
On Fri, Jul 08, 2016 at 12:59:59PM +0200, Igor Mammedov wrote: > On Fri, 8 Jul 2016 17:39:52 +1000 > David Gibson wrote: > > > On Fri, Jul 08, 2016 at 12:11:12PM +0530, Bharata B Rao wrote: > > > On Fri, Jul 08, 2016 at 03:24:13PM +1000, David Gibson wrote: > > > >

Re: [Qemu-devel] [RFC PATCH V5 2/4] colo-compare: track connection and enqueue packet

2016-07-10 Thread Jason Wang
On 2016年07月08日 17:56, Zhang Chen wrote: On 07/08/2016 12:07 PM, Jason Wang wrote: On 2016年06月23日 19:34, Zhang Chen wrote: In this patch we use kernel jhash table to track connection, and then enqueue net packet like this: + CompareState ++ | | +---+

Re: [Qemu-devel] [RFC PATCH v2 2/5] cpu: Introduce CPUState::stable_cpu_id

2016-07-10 Thread Bharata B Rao
On Mon, Jul 11, 2016 at 01:22:37PM +1000, David Gibson wrote: > On Fri, Jul 08, 2016 at 01:11:02PM +0200, Igor Mammedov wrote: > > On Fri, 8 Jul 2016 15:19:58 +1000 > > David Gibson wrote: > > > > > On Thu, Jul 07, 2016 at 08:20:22PM +0530, Bharata B Rao wrote: > > >

Re: [Qemu-devel] [RFC PATCH V5 1/4] colo-compare: introduce colo compare initialization

2016-07-10 Thread Zhang Chen
On 07/08/2016 05:12 PM, Jason Wang wrote: On 2016年07月08日 16:21, Zhang Chen wrote: On 07/08/2016 11:40 AM, Jason Wang wrote: On 2016年06月23日 19:34, Zhang Chen wrote: Packets coming from the primary char indev will be sent to outdev Packets coming from the secondary char dev will be

Re: [Qemu-devel] [PATCH v11 04/28] x86-iommu: q35: generalize find_add_as()

2016-07-10 Thread Peter Xu
On Sat, Jul 09, 2016 at 10:14:48AM +0200, Jan Kiszka wrote: > On 2016-07-05 10:19, Peter Xu wrote: > > Remove VT-d calls in common q35 codes. Instead, we provide a general > > find_add_as() for x86-iommu type. > > > > Signed-off-by: Peter Xu > > --- > > hw/i386/intel_iommu.c

Re: [Qemu-devel] [PATCH v11 04/28] x86-iommu: q35: generalize find_add_as()

2016-07-10 Thread David Kiarie
On Mon, Jul 11, 2016 at 8:32 AM, Peter Xu wrote: > On Sat, Jul 09, 2016 at 10:14:48AM +0200, Jan Kiszka wrote: >> On 2016-07-05 10:19, Peter Xu wrote: >> > Remove VT-d calls in common q35 codes. Instead, we provide a general >> > find_add_as() for x86-iommu type. >> > >> >

Re: [Qemu-devel] [RFC PATCH 1/2] qapi: Add vcpu id to query-hotpluggable-cpus output

2016-07-10 Thread David Gibson
On Fri, 8 Jul 2016 13:40:38 +0200 Igor Mammedov wrote: > On Fri, 8 Jul 2016 12:18:55 +1000 > David Gibson wrote: > > > On Thu, 7 Jul 2016 17:17:13 +0200 > > Peter Krempa wrote: > > > > > Add 'vcpu index' to the output of query

Re: [Qemu-devel] [RFC PATCH v2 3/5] spapr: Set stable_cpu_id for threads of CPU cores

2016-07-10 Thread David Gibson
On Fri, Jul 08, 2016 at 05:24:24PM +0200, Greg Kurz wrote: > On Fri, 8 Jul 2016 17:59:07 +1000 > David Gibson wrote: > > > On Fri, Jul 08, 2016 at 09:46:47AM +0200, Greg Kurz wrote: > > > On Fri, 8 Jul 2016 15:25:33 +1000 > > > David Gibson

[Qemu-devel] [PATCH 0/6] dbdma: improve logging and various fixes

2016-07-10 Thread Mark Cave-Ayland
This patchset is based upon some work Ben H did to fix various DBDMA issues found whilst trying to boot MacOS 9 (effectively a minimal rework of a WIP diff). With this patch, along with the patch for odd MSR combinations, it becomes possible to boot MacOS 9 relibably in QEMU. It has been part of

[Qemu-devel] [PULL 0/2] build fix for clang 3.4

2016-07-10 Thread Richard Henderson
14:49:38 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git pull-rth-20160710 for you to fetch changes up to cdbd727c20ad7aac7797dc8c95e485e1a4c6901b: build: Use $(AS) for optionrom explicitly (2016-07-10 10:05:46 -0700

Re: [Qemu-devel] [PATCH 6/9] Convert cpu_memory_rw_debug to use MMUAccessType

2016-07-10 Thread Peter Maydell
On 8 July 2016 at 04:42, David Gibson wrote: > My only concern here is that the constants are named > *MMU*_DATA_... whereas these are physical memory accesses not > involving the MMU. I can't actually see any current users of > MMUAccessType which makes me a bit

[Qemu-devel] [PULL 1/2] linux-user: Fix i386 safe-syscall.S

2016-07-10 Thread Richard Henderson
Clang insists that "cmp" is ambiguous with a memory destination, requiring an explicit size suffix. There was a true error in the use of .cfi_def_cfa_offset in the epilogue, but changing to use the proper .cfi_adjust_cfa_offset runs afoul of a clang bug wrt .cfi_restore_state. Better to fold the

Re: [Qemu-devel] [gdbstub] qemu is killed by gdb

2016-07-10 Thread Alon Bar-Lev
Hi, Is someone interested in making gdb work when debugging qemu using -s -S? Currently qemu just quits, see below. Thanks! Alon On 5 July 2016 at 22:50, Alon Bar-Lev wrote: > Hello, > > I am aware that this was discussed many times, however, problem remains. > > Use case

[Qemu-devel] [PULL 2/2] build: Use $(AS) for optionrom explicitly

2016-07-10 Thread Richard Henderson
For clang before 3.5, -fno-integrated-as does not exist, so the workaround in 5f6f0e27fb24 fails to build. Use clang's default assembler for linux-user/safe-syscall.S, and explicitly change to use the system assembler for the option roms. Tested-by: Alex Bennée

[Qemu-devel] [PATCH 4/6] dbdma: fix load_word/store_word value endianness

2016-07-10 Thread Mark Cave-Ayland
The values to read/write to/from physical memory are copied directly to the physical address with no endian swapping required. Also add some extra information to debugging output while we are here. Signed-off-by: Mark Cave-Ayland Acked-by: Benjamin Herrenschmidt

[Qemu-devel] [PATCH 5/6] dbdma: set FLUSH bit upon reception of flush command for unassigned DBDMA channels

2016-07-10 Thread Mark Cave-Ayland
This fixes MacOS 9 whereby it continually flushes and polls the status bits until they are set to indicate a successful flush. Signed-off-by: Mark Cave-Ayland Acked-by: Benjamin Herrenschmidt --- hw/misc/macio/mac_dbdma.c | 10