[Qemu-devel] Writing into guest memory from qemu

2014-06-24 Thread Shubham Gupta
Hello I am attempting to write into the guest memory state (before the guest is launched) using the cpu_physical_memory_write function. While some values are being correctly written into the guest memory (confirmed by a cpu_physical_memory_read just after the write), some are not. Is there an expl

Re: [Qemu-devel] [RFC PATCH] numa: enable sparse node numbering

2014-06-24 Thread Igor Mammedov
On Mon, 23 Jun 2014 12:33:10 -0700 Nishanth Aravamudan wrote: > Add a present field to NodeInfo which indicates if a given nodeid was > present on the command-line or not. Current code relies on a memory > value being passed for a node to indicate presence, which is > insufficient in the presence

Re: [Qemu-devel] [RFC PATCH v2] numa: enable sparse node numbering

2014-06-24 Thread Hu Tao
On Mon, Jun 23, 2014 at 05:48:25PM -0700, Nishanth Aravamudan wrote: > On 23.06.2014 [12:33:10 -0700], Nishanth Aravamudan wrote: > > Add a present field to NodeInfo which indicates if a given nodeid was > > present on the command-line or not. Current code relies on a memory > > value being passed

Re: [Qemu-devel] [RFC] Functions bus_foreach and device_find from libqos virtio API

2014-06-24 Thread Marc Marí
Hello > > +for (slot = 0; slot < 32; slot++) { > > +for (fn = 0; fn < 8; fn++) { > > +dev = g_malloc0(sizeof(*dev)); > > +dev->bus = bus; > > +dev->devfn = QPCI_DEVFN(slot, fn); > > + > > +if (qpci_config_readw(dev, PCI_VENDOR_ID) == 0xFF

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest (14.04 regression)

2014-06-24 Thread Hein Gustavsen
Re-installing 14.04 fixed my problem. Running with the same virtual machine configurations on the same hardware without any problems. No hyperv feature needed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-06-24 Thread urusha
Also, seems that these bugs are DUPs: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1308341 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1332409 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-06-24 Thread urusha
I have the same symptoms with two trusty-amd64 virtual hosts: * win2003, linux guests hang for a period of time (~5 seconds, half of a minute and more) * win2008 blue screen with the same message This happens with kernels (host): Linux vsrv7 3.13.0-27-generic #50-Ubuntu SMP Thu May 15 18:06:16

[Qemu-devel] Clock Emulation

2014-06-24 Thread Ayaz Akram
Can anyone help me out in finding how does QEMU provide emulated clock to guest operating system.. For instance, how does it increment x86's time stamp counter register??

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-06-24 Thread urusha
** Attachment added: "dmesg of precise guest while hanging" https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1307473/+attachment/4137970/+files/dmesg.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.ne

Re: [Qemu-devel] Writing into guest memory from qemu

2014-06-24 Thread Sergey Fedorov
Hi, Maybe you are trying to write into read-only, device MMIO or unassigned address? You can launch qemu with '-S' and then try 'info mtree' qemu monitor command to see the memory mapping. // Sergey On 24.06.2014 11:20, Shubham Gupta wrote: > Hello > > I am attempting to write into the guest mem

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest (14.04 regression)

2014-06-24 Thread urusha
Could it be DUP of https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1307473 ? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1308341 Title: Multiple CPUs causes blue screen on Windows guest (14.0

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Markus Armbruster
Alexey Kardashevskiy writes: > On 06/24/2014 03:15 PM, Paolo Bonzini wrote: >> Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto: >>> nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was >>> broken in 1.3? Or nec-usb-xhci? >> >> nec-usb-xhci is not "off". > > Yes, my bad,

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-24 Thread Peter Maydell
On 24 June 2014 00:53, Paul Burton wrote: > Well I disagree with your logic, but perhaps that's primarily because of > your claim that the semctl code is "clearly bogus" and "obviously > broken". Could you back that up? I know there's the one bogus line in > the GETVAL/SETVAL case that was mention

Re: [Qemu-devel] [RFC] Functions bus_foreach and device_find from libqos virtio API

2014-06-24 Thread Marc Marí
Hello > > -/* Tests only initialization so far. TODO: Replace with functional > > tests */ -static void pci_nop(void) > > +#define TEST_IMAGE_SIZE (64 * 1024 * 1024) > > + > > +static char tmp_path[] = "/tmp/qtest.XX"; > > +extern QVirtioBus qvirtio_pci; > > + > > +static void pci_basic(void)

Re: [Qemu-devel] [PATCH 0/3] target-sparc: fixed unused function warnings

2014-06-24 Thread Peter Maydell
On 24 June 2014 05:24, Richard Henderson wrote: > I think I would be happier if you changed the functions to not be marked as > "inline". I think that there's a large body of code that marks things inline > exactly to prevent unused warnings with gcc. If we're going to play with the > ifdeffery,

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest (14.04 regression)

2014-06-24 Thread Hein Gustavsen
I agree. This seems to me like a duplicate of bug 1307473. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1308341 Title: Multiple CPUs causes blue screen on Windows guest (14.04 regression) Status

[Qemu-devel] [PATCHv2] block/nfs: add knob to set readahead

2014-06-24 Thread Peter Lieven
upcoming libnfs will feature internal readahead support. Add a knob to pass the optional readahead value as a URL parameter. This patch fixes also the incorrect usage of strncmp and atoi. Signed-off-by: Peter Lieven --- v1->v2: use strtol instead of atoi [Eric] block/nfs.c | 16 ++---

Re: [Qemu-devel] [PATCH] block/nfs: add knob to set readahead

2014-06-24 Thread Peter Lieven
On 23.06.2014 23:05, Eric Blake wrote: On 06/23/2014 02:47 PM, Peter Lieven wrote: +#ifdef LIBNFS_FEATURE_READAHEAD +} else if (!strcmp(qp->p[i].name, "readahead")) { +nfs_set_readahead(client->context, atoi(qp->p[i].value)); +#endif I'm not a fan of adding even more specia

Re: [Qemu-devel] [RFC PATCH] numa: enable sparse node numbering

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 05:33 PM, Igor Mammedov wrote: > On Mon, 23 Jun 2014 12:33:10 -0700 > Nishanth Aravamudan wrote: > >> Add a present field to NodeInfo which indicates if a given nodeid was >> present on the command-line or not. Current code relies on a memory >> value being passed for a node to indi

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 06:17 PM, Markus Armbruster wrote: > Alexey Kardashevskiy writes: > >> On 06/24/2014 03:15 PM, Paolo Bonzini wrote: >>> Il 23/06/2014 23:35, Alexey Kardashevskiy ha scritto: nec-usb-xhci is off for PC_COMPAT_1_3 because of what? PIIX emulation was broken in 1.3? Or nec-usb

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-24 Thread Paul Burton
On Tue, Jun 24, 2014 at 09:19:45AM +0100, Peter Maydell wrote: > On 24 June 2014 00:53, Paul Burton wrote: > > Well I disagree with your logic, but perhaps that's primarily because of > > your claim that the semctl code is "clearly bogus" and "obviously > > broken". Could you back that up? I know

[Qemu-devel] [PATCH] migration: catch unknown flag combinations in ram_load

2014-06-24 Thread Peter Lieven
this patch extends commit db80fac by not only checking for unknown flags, but also filtering out unknown flag combinations. Suggested-by: Eric Blake Signed-off-by: Peter Lieven --- arch_init.c | 62 ++- 1 file changed, 32 insertions(+),

Re: [Qemu-devel] [PATCH v2 14/22] target-mips: add Addressing and PC-relative instructions

2014-06-24 Thread Leon Alrae
On 20/06/2014 21:50, Aurelien Jarno wrote: > The patch subject is a bit misleading, as it also includes the AUI family. Thanks for pointing this out. >> +#if defined(TARGET_MIPS64) >> +case R6_OPC_LDPC: /* bits 18 and 19 are part of immediate */ >> +case R6_OPC_LDPC + (1 << 16): >

Re: [Qemu-devel] [PATCH v2 14/22] target-mips: add Addressing and PC-relative instructions

2014-06-24 Thread Peter Maydell
On 24 June 2014 10:50, Leon Alrae wrote: > On 20/06/2014 21:50, Aurelien Jarno wrote: >> I do wonder if we shouldn't use sextract32() instead of open coding that >> now that it is available: >> >>offset = sextract32(ctx->opcode, 0, 19) << 3; > > This looks better, thanks for the su

Re: [Qemu-devel] [PULL] Merge ppc32/ppc64 tcg backends

2014-06-24 Thread Peter Maydell
On 23 June 2014 15:36, Richard Henderson wrote: > No change since v3, so eliding the patches. > Thanks for the testing, Tom. > > > r~ > > > The following changes since commit d9c1647d896d3192cba9dbf98fb7efab876edde5: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' >

Re: [Qemu-devel] extremely low IOPS performance of QCOW2 image format on an SSD RAID1

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 09:25 hat lihuiba geschrieben: > >Can you confirm that making L2_CACHE_SIZE much bigger solves the > >problem? > Yes, it is confirmed. > When I run fio randread with a 7GB or 8GB size, result is close to that of > raw image. > But when the size is increased to 9GB, the result drop

[Qemu-devel] [PATCH v2] mac99: Add motherboard devices before PCI cards

2014-06-24 Thread BALATON Zoltan
Change the order of creating devices for New World Mac emulation so that devices on the motherboard are added first and PCI cards (VGA and NIC) come later. As a side effect, this also causes OpenBIOS to map the motherboard devices into the MMIO space to the same addresses as on real hardware and al

Re: [Qemu-devel] [Qemu-ppc] [PATCH] mac99: Add motherboard devices before PCI cards

2014-06-24 Thread BALATON Zoltan
On Mon, 23 Jun 2014, Mark Cave-Ayland wrote: On 23/06/14 23:03, BALATON Zoltan wrote: Change the order of creating devices for New World Mac emulation so that devices on the motherboard are added first and PCI cards (VGA and NIC) come later. As a side effect, this also causes OpenBIOS to map the

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 00:41 hat Mark Cave-Ayland geschrieben: > On 23/06/14 20:26, BALATON Zoltan wrote: > > (add Kevin to CC) > > >>>I'm afraid as you're the only person that can boot MorphOS this far > >>>then we need you to diagnose and suggest a suitable alternative by > >>>comparing the before an

Re: [Qemu-devel] [PATCH trivial v2] block.c: Add return value for bdrv_append_temp_snapshot() to avoid incorrect failure processing issue

2014-06-24 Thread Kevin Wolf
Am 23.06.2014 um 17:28 hat Chen Gang geschrieben: > When failure occurs, 'ret' need be set, or may return 0 to indicate success. > And error_propagate() also need be called only one time within a function. > > It is abnormal to prevent bdrv_append_temp_snapshot() return value but still > set errp

Re: [Qemu-devel] [PATCH 0/2] target-ppc: fix unused-function warnings

2014-06-24 Thread Alexander Graf
On 24.06.14 01:05, Peter Maydell wrote: These patches for target-ppc fix clang 3.4 warnings about 'static inline' functions which are defined but never used. (Incidentally, "d" is a terrible name for a function, so we're well rid of that one :-)) Thanks, applied to ppc-next :). As for "d" -

Re: [Qemu-devel] [PATCH] uninorth: Fix PCI hole size

2014-06-24 Thread Alexander Graf
On 23.06.14 21:10, BALATON Zoltan wrote: Fix PCI hole size to match that what is found on real hardware. (OpenBIOS already uses the correct length.) Signed-off-by: BALATON Zoltan Thanks, applied to ppc-next. Alex

Re: [Qemu-devel] [PATCH v2] mac99: Add motherboard devices before PCI cards

2014-06-24 Thread Alexander Graf
On 24.06.14 00:03, BALATON Zoltan wrote: Change the order of creating devices for New World Mac emulation so that devices on the motherboard are added first and PCI cards (VGA and NIC) come later. As a side effect, this also causes OpenBIOS to map the motherboard devices into the MMIO space to t

[Qemu-devel] Winter^W Hardfreeze is coming...

2014-06-24 Thread Peter Maydell
Reminder: hardfreeze for 2.1 is the 1st July, which is a week from now. After that we will be committing bugfixes only. If people maintaining submaintainer trees could make sure they get their last pullrequests for any remaining non-bugfix changes onto the list in good time I'd appreciate it. than

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread BALATON Zoltan
On Mon, 23 Jun 2014, Mark Cave-Ayland wrote: On 23/06/14 20:26, BALATON Zoltan wrote: (add Kevin to CC) I'm afraid as you're the only person that can boot MorphOS this far then we need you to diagnose and suggest a suitable alternative by comparing the before and after output. Since MacOS is a

Re: [Qemu-devel] [PATCH trivial v2] block.c: Add return value for bdrv_append_temp_snapshot() to avoid incorrect failure processing issue

2014-06-24 Thread Markus Armbruster
Kevin Wolf writes: > Am 23.06.2014 um 17:28 hat Chen Gang geschrieben: >> When failure occurs, 'ret' need be set, or may return 0 to indicate success. >> And error_propagate() also need be called only one time within a function. >> >> It is abnormal to prevent bdrv_append_temp_snapshot() return

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 12:53, BALATON Zoltan wrote: On Mon, 23 Jun 2014, Mark Cave-Ayland wrote: On 23/06/14 20:26, BALATON Zoltan wrote: (add Kevin to CC) I'm afraid as you're the only person that can boot MorphOS this far then we need you to diagnose and suggest a suitable alternative by comparing th

Re: [Qemu-devel] [PATCH v3 28/32] target-arm: make DFSR banked

2014-06-24 Thread Aggeler Fabian
On 17 Jun 2014, at 08:12, Edgar E. Iglesias wrote: > On Fri, Jun 13, 2014 at 05:06:15PM -0500, Greg Bellows wrote: >> I just wanted to point out that the change from array-notation to hard-code >> numbers in the names undoes Edgar's EL2/EL3 changes. I prefer this way >> over the array notation.

Re: [Qemu-devel] [PATCH v3 32/32] target-arm: make c13 cp regs banked (FCSEIDR, ...)

2014-06-24 Thread Aggeler Fabian
On 23 Jun 2014, at 23:40, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:55, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) FCSEIDR, CONTEXTIDR, TPIDRURW, TPIDRURO and TPIDRPRW have a secure and a no

Re: [Qemu-devel] Xen 4.4 with qemu 1.6.2 VGA passthru NVIDIA

2014-06-24 Thread Stefano Stabellini
CC'ing xen-devel. Could you please post your QEMU logs? On Mon, 23 Jun 2014, Maxim Gordeev wrote: > Hi! > > Please, give me an advice. > > I try use VGA passthough NVidia k40 on SuperMicro Server, but server is > having error. > My Xen is using qemu (a9e8aeb3755bccb7b51174adcf4a3fc427e0d147)2.

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Andreas Färber
Am 24.06.2014 07:21, schrieb Paolo Bonzini: > Il 24/06/2014 00:33, Alexey Kardashevskiy ha scritto: >> >> I actually wonder if it is not going to be "-machine pseries-2.0" then >> what >> will it look like? "-machine pseries,qemucompat=2.0"? > > I would keep using pseries-2.0. > > There might be

Re: [Qemu-devel] [PULL 00/23] pc,pci,vhost,net fixes, enhancements

2014-06-24 Thread Peter Maydell
On 23 June 2014 16:53, Michael S. Tsirkin wrote: > The following changes since commit d9c1647d896d3192cba9dbf98fb7efab876edde5: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2014-06-23 12:55:22 +0100) > > are available in the git repository at: > >

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Andreas Färber
Am 24.06.2014 10:17, schrieb Markus Armbruster: > Back then gerd created a way to do the compatibility stuff without > getting into the other target's hair: compat_props. They've served us > well enough, but now that more targets get interested in migration, > their shortcomings start to hurt. Ha

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: > The way DBDMA works is that you put in something similar to a > scatter-gather list: A list of chunks to read / write and where in > memory those chunks live. DBDMA then goes over its list and does the > pokes. So for example if the list is >

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 13:22, Kevin Wolf wrote: Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: The way DBDMA works is that you put in something similar to a scatter-gather list: A list of chunks to read / write and where in memory those chunks live. DBDMA then goes over its list and does the pokes

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-24 Thread Alexander Graf
On 18.06.14 06:39, bharat.bhus...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 17, 2014 4:14 PM To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support

Re: [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 06:25 hat Fam Zheng geschrieben: > On Mon, 06/09 10:56, Fam Zheng wrote: > > The current behavior of mirroring zero byte image is slightly different from > > non-zero image: the BLOCK_JOB_READY event is skipped and job is completed > > immediately. This is not a big problem for hum

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-24 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Tuesday, June 24, 2014 5:02 PM > To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org > Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support > > > On 18.06.14 06:39, bharat.bhus...@frees

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-24 Thread Alexander Graf
On 24.06.14 13:32, bharat.bhus...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 24, 2014 5:02 PM To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/4] spapr: Add rtas_st_buffer utility function

2014-06-24 Thread Alexander Graf
On 24.06.14 02:22, Sam Bobroff wrote: Add a function to write lengh + data into a buffer as required for the emulation of the RTAS ibm,get-system-parameter call. If the destination is smaller than the source, the write is truncated and success is returned. This matches the behaviour of pHyp. T

Re: [Qemu-devel] [PATCH v2 22/22] target-mips: define a new generic CPU supporting MIPS64R6

2014-06-24 Thread Leon Alrae
On 19/06/2014 23:16, Aurelien Jarno wrote: > On Wed, Jun 11, 2014 at 04:19:52PM +0100, Leon Alrae wrote: >> Signed-off-by: Leon Alrae >> --- >> target-mips/translate_init.c | 29 + >> 1 files changed, 29 insertions(+), 0 deletions(-) >> >> diff --git a/target-mips/tr

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/4] spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE

2014-06-24 Thread Alexander Graf
On 24.06.14 02:22, Sam Bobroff wrote: This allows the ibm,get-system-parameter RTAS call to succeed for the DIAGNOSTICS_RUN_MODE system parameter. The problem can be seen with "ppc64_cpu --run-mode" from the powerpc-utils package which fails before this patch with "Machine does not support diag

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/4] spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE

2014-06-24 Thread Alexander Graf
On 24.06.14 13:58, Alexander Graf wrote: On 24.06.14 02:22, Sam Bobroff wrote: This allows the ibm,get-system-parameter RTAS call to succeed for the DIAGNOSTICS_RUN_MODE system parameter. The problem can be seen with "ppc64_cpu --run-mode" from the powerpc-utils package which fails before thi

Re: [Qemu-devel] [Qemu-ppc] [PATCH 4/4] spapr: Add RTAS sysparm SPLPAR Characteristics

2014-06-24 Thread Alexander Graf
On 24.06.14 02:22, Sam Bobroff wrote: Add support for the SPLPAR Characteristics parameter to the emulated RTAS call ibm,get-system-parameter. The support provides just enough information to allow "cat /proc/powerpc/lparcfg" to succeed without generating a kernel error message. Without this pa

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/4] spapr: improve RTAS get_system_parameter

2014-06-24 Thread Alexander Graf
On 24.06.14 02:22, Sam Bobroff wrote: This series of patches improves QEMU's emulation of the RTAS call "ibm,get-system-parameter" by adding support for the "UUID" and "SPLPAR Characteristics" parameters as well as fixing a problem in the the implementation of the "Platform Processor Diagnostics

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Kevin Wolf
Am 24.06.2014 um 13:27 hat Alexander Graf geschrieben: > > On 24.06.14 13:22, Kevin Wolf wrote: > >Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: > >>The way DBDMA works is that you put in something similar to a > >>scatter-gather list: A list of chunks to read / write and where in > >>mem

Re: [Qemu-devel] [PATCH v2 16/22] target-mips: add new Floating Point instructions

2014-06-24 Thread Leon Alrae
On 20/06/2014 22:14, Aurelien Jarno wrote: >> In R6 all Floating Point instructions are supposed to be IEEE-2008 compliant >> i.e. FIR.HAS2008 always 1. However, QEMU softfloat for MIPS has not been >> updated yet. > > I don't think we can "update" softfloat. The existing version has to > stay to

[Qemu-devel] [PATCH 0/5 v3][RESEND] ppc: Add debug stub support

2014-06-24 Thread Bharat Bhushan
This patchset add support for - software breakpoint - h/w breakpoint - h/w watchpoint Please find description in individual patch. v2->v3 - Sharing of code for book3s support (which may come in future) - Initializing number of hw breakpoint/watchpoints from KVM world - Other minor cleanup/f

[Qemu-devel] [PATCH 1/5 v3][RESEND] ppc: debug stub: Get trap instruction opcode from KVM

2014-06-24 Thread Bharat Bhushan
Get trap instruction opcode from KVM and this opcode will be used for setting software breakpoint in following patch Signed-off-by: Bharat Bhushan --- target-ppc/kvm.c | 4 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index dfa5a26..1f78cd1 100644 --- a/

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-24 Thread Alexander Graf
On 24.06.14 14:07, Kevin Wolf wrote: Am 24.06.2014 um 13:27 hat Alexander Graf geschrieben: On 24.06.14 13:22, Kevin Wolf wrote: Am 24.06.2014 um 13:02 hat Alexander Graf geschrieben: The way DBDMA works is that you put in something similar to a scatter-gather list: A list of chunks to read /

[Qemu-devel] [PATCH 3/5 v3][RESEND] ppc: Add debug interrupt injection handler

2014-06-24 Thread Bharat Bhushan
With this patch a debug interrupt can be injected to guest. Follow up patch will use this interface to inject debug interrupt to guest if qemu will not be able to handle. Signed-off-by: Bharat Bhushan --- target-ppc/kvm.c | 53 +++-- 1 file changed

[Qemu-devel] [PATCH 5/5 v3][RESEND] ppc: Add hw breakpoint watchpoint support

2014-06-24 Thread Bharat Bhushan
This patch adds hardware breakpoint and hardware watchpoint support for ppc. If the debug interrupt is not handled then this is injected to guest. Signed-off-by: Bharat Bhushan --- v2->v3 - Shared as much code as much possible for futuristic book3s support - Initializing number of hw breakpoint

[Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support

2014-06-24 Thread Bharat Bhushan
This patch allow insert/remove software breakpoint Signed-off-by: Bharat Bhushan --- target-ppc/kvm.c | 71 +--- 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 5238de7..8e2dbb3 100644 -

Re: [Qemu-devel] AArch64 linux-user: SA_ONSTACK usage in get_sigframe

2014-06-24 Thread Riku Voipio
On Mon, Jun 23, 2014 at 06:15:03PM +0200, Laurent Desnogues wrote: > Hello, > > in linux-user/signal.c the code for AArch64 get_sigframe reads like this: > > if ((ka->sa_flags & SA_ONSTACK) && !sas_ss_flags(sp)) { > > Shouldn't that be TARGET_SA_ONSTACK? > The same question applies to Micr

Re: [Qemu-devel] [PATCH v3 05/32] target-arm: reject switching to monitor mode

2014-06-24 Thread Aggeler Fabian
Hm…yes, this case is missing, but it is only missing for ARMv7 as this bit is RES0 in ARMv8. Even in ARMv7 it is IMPDEF whether this bit is supported. And since ARMv7 mentions, that this bit is deprecated from the introduction of Virtualization Extensions I did not care to add this special case.

Re: [Qemu-devel] [PATCH v4 0/9] virtio-blk: use alias properties in transport devices

2014-06-24 Thread Paolo Bonzini
Il 18/06/2014 11:58, Stefan Hajnoczi ha scritto: v4: * Coding style: typedef struct { on a single line [Andreas] * Add "dataplane: bail out on unsupported transport" for s390-virtio [Cornelia] v3: * Split qdev_alias_all_properties() into its own patch [Peter Crosthwaite] * Do not dereference

[Qemu-devel] [PATCH v3 2/4] mirror: Go through ready -> complete process for 0 len image

2014-06-24 Thread Fam Zheng
When mirroring or active committing a zero length image, BLOCK_JOB_READY is not reported now, instead the job completes because we short circuit the mirror job loop. This is inconsistent with non-zero length images, and only confuses management software. Let's do the same thing when seeing a 0-le

[Qemu-devel] [PATCH v3 0/4] mirror: Fix behavior for zero byte image

2014-06-24 Thread Fam Zheng
The current behavior of mirroring zero byte image is slightly different from non-zero image: the BLOCK_JOB_READY event is skipped and job is completed immediately. This is not a big problem for human user but only makes management software harder to write. Since we are focusing on an good API inste

[Qemu-devel] [PATCH v3 1/4] blockjob: Add block_job_yield()

2014-06-24 Thread Fam Zheng
This will unset busy flag and put coroutine to sleep, can be used to wait for QMP complete/cancel. Signed-off-by: Fam Zheng Reviewed-by: Eric Blake --- blockjob.c | 14 ++ include/block/blockjob.h | 8 2 files changed, 22 insertions(+) diff --git a/blockjob.

[Qemu-devel] [PATCH v3 3/4] qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit

2014-06-24 Thread Fam Zheng
There should be a BLOCK_JOB_READY event with active commit, regardless of image length. Let's test the 0 length image case, and make sure it goes through the ready->complete process. Signed-off-by: Fam Zheng Reviewed-by: Eric Blake --- tests/qemu-iotests/040 | 12 +--- tests/qemu-io

[Qemu-devel] [PATCH v3 4/4] qemu-iotests: Test 0-length image for mirror

2014-06-24 Thread Fam Zheng
All behavior and invariant should hold for images with 0 length, so add a class to repeat all the tests in TestSingleDrive. Hide two unapplicable test methods that would fail with 0 image length because it's also used as cluster size. Signed-off-by: Fam Zheng --- tests/qemu-iotests/041 | 11

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Marcel Apfelbaum
On Mon, 2014-06-23 at 23:41 +0200, Andreas Färber wrote: > Am 23.06.2014 23:35, schrieb Alexey Kardashevskiy: > > Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or > > 1.7 - whichever starts supporting migration well enough on pseries) because > > pretty much of what they

Re: [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image

2014-06-24 Thread Fam Zheng
> Am 24.06.2014 um 06:25 hat Fam Zheng geschrieben: > > On Mon, 06/09 10:56, Fam Zheng wrote: > > > The current behavior of mirroring zero byte image is slightly different > > > from > > > non-zero image: the BLOCK_JOB_READY event is skipped and job is completed > > > immediately. This is not a bi

[Qemu-devel] [PATCH 2/5 v3][RESEND] ppc: Add interface to inject interrupt to guest

2014-06-24 Thread Bharat Bhushan
This patch adds interface to inject interrupt to guest. Currently a void debug exception function added. Follow up patch will use this interface to inject debug interrupt to guest Signed-off-by: Bharat Bhushan --- target-ppc/kvm.c | 22 ++ 1 file changed, 22 insertions(+) di

[Qemu-devel] Regarding guest-file-write

2014-06-24 Thread Puneet Bakshi
Hi, >From host, I wrote 26 alphabets in guest file (/tmp/testqga) using guest-file-write guest agent command (logs pasted below). I faced 2 issues when doing that. 1a. It could wrote only 18bytes! Why could it not write all 26 characters? Are we supposed to track how much data is written and need

Re: [Qemu-devel] [PATCH v6 for 2.1 00/10] Modify block jobs to use node-names

2014-06-24 Thread Kevin Wolf
Am 19.06.2014 um 18:49 hat Eric Blake geschrieben: > On 06/19/2014 10:26 AM, Jeff Cody wrote: > >> b. Is it a good idea to perform op blocker checks on the root node? > >>It's inconsistent with resize, snapshot-sync, etc. Permissions in > >>BDS graphs with multiple root nodes (e.g. guest d

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 09:22 PM, Andreas Färber wrote: > Am 24.06.2014 10:17, schrieb Markus Armbruster: >> Back then gerd created a way to do the compatibility stuff without >> getting into the other target's hair: compat_props. They've served us >> well enough, but now that more targets get interested in

Re: [Qemu-devel] [libvirt] Regarding guest-file-write

2014-06-24 Thread Daniel P. Berrange
On Tue, Jun 24, 2014 at 06:20:16PM +0530, Puneet Bakshi wrote: > Hi, > > >From host, I wrote 26 alphabets in guest file (/tmp/testqga) using > guest-file-write guest agent command (logs pasted below). I faced 2 issues > when doing that. > > 1a. It could wrote only 18bytes! Why could it not write

Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support

2014-06-24 Thread Alexander Graf
On 24.06.14 14:10, Bharat Bhushan wrote: This patch allow insert/remove software breakpoint Signed-off-by: Bharat Bhushan --- target-ppc/kvm.c | 71 +--- 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/target-ppc/kvm.c b/ta

Re: [Qemu-devel] machines and versions - why so many?

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 09:15 PM, Andreas Färber wrote: > Am 24.06.2014 07:21, schrieb Paolo Bonzini: >> Il 24/06/2014 00:33, Alexey Kardashevskiy ha scritto: >>> >>> I actually wonder if it is not going to be "-machine pseries-2.0" then >>> what >>> will it look like? "-machine pseries,qemucompat=2.0"? >> >

Re: [Qemu-devel] [PULL for-2.1 00/40] QMP queue

2014-06-24 Thread Wenchao Xia
于 2014/6/21 4:02, Eric Blake 写道: On 06/20/2014 01:49 PM, Paolo Bonzini wrote: As I explained on IRC, many patches when rebased would have conflicts with Igor's new event. I think this is much more complex than having an "extraordinary" merge commit. I include the conflict resolution: - hw/a

[Qemu-devel] [PULL 00/22] Migration queue

2014-06-24 Thread Juan Quintela
Hi Peter, please pull: - RDMA bugfixes (Michael) - Static checker from Amit (v5) - acked patches from vmstate (thanks Dave) Later, Juan. The following changes since commit d9c1647d896d3192cba9dbf98fb7efab876edde5: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into

[Qemu-devel] [PULL 01/22] rdma: bug fixes

2014-06-24 Thread Juan Quintela
From: "Michael R. Hines" 1. Fix small memory leak in parsing inet address from command line in data_init() 2. Fix ibv_post_send() return value check and pass error code back up correctly. 3. Fix rdma_destroy_qp() segfault after failure to connect to destination. Reported-by: frank.yang...@gmail

[Qemu-devel] [PULL 09/22] tests: vmstate static checker: remove a section

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-da

Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support

2014-06-24 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Tuesday, June 24, 2014 6:35 PM > To: Bhushan Bharat-R65777 > Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org; ma...@linux.vnet.ibm.com > Subject: Re: [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support > >

[Qemu-devel] [PULL 15/22] tests: vmstate static checker: remove Description inside Fields

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 27 +-- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tes

[Qemu-devel] [PULL 10/22] tests: vmstate static checker: remove a field

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 6 -- 1 file changed, 6 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-data/dump2.js

[Qemu-devel] [PULL 14/22] tests: vmstate static checker: remove Description

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 33 +--- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/te

[Qemu-devel] [PULL 19/22] tests: vmstate static checker: add size mismatch inside substructure

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-da

Re: [Qemu-devel] [PATCH v5 00/18] migration: add static analysis tool to check vmstate compat

2014-06-24 Thread Juan Quintela
Amit Shah wrote: > Hello, > > v5: > - Add section / description name checking for matching names for >changed fields. This has the benefit of also getting rid of the >for loop in the lookup. However, for each section, like piix4_pm, >all the changes have to be in one group, as again

[Qemu-devel] [PULL 16/22] tests: vmstate static checker: remove a subsection

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 13 - 1 file changed, 13 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-data

[Qemu-devel] [PULL 11/22] tests: vmstate static checker: remove last field in a struct

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 6 -- 1 file changed, 6 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-data/dump2.js

[Qemu-devel] [PULL 12/22] tests: vmstate static checker: change description name

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-da

[Qemu-devel] [PULL 17/22] tests: vmstate static checker: remove Subsections

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 15 --- 1 file changed, 15 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-da

Re: [Qemu-devel] [PATCH 5/5 v3][RESEND] ppc: Add hw breakpoint watchpoint support

2014-06-24 Thread Alexander Graf
On 24.06.14 14:10, Bharat Bhushan wrote: This patch adds hardware breakpoint and hardware watchpoint support for ppc. If the debug interrupt is not handled then this is injected to guest. Signed-off-by: Bharat Bhushan --- v2->v3 - Shared as much code as much possible for futuristic book3s su

Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support

2014-06-24 Thread Alexander Graf
On 24.06.14 15:11, bharat.bhus...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 24, 2014 6:35 PM To: Bhushan Bharat-R65777 Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org; ma...@linux.vnet.ibm.com Subject: Re: [PATCH 4/5 v3][RESE

[Qemu-devel] [PULL 21/22] vmstate: Return error in case of error

2014-06-24 Thread Juan Quintela
If there is an error while loading a field, we should stop reading and not continue with the rest of fields. And we should also set an error in qemu_file. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- vmstate.c | 4 1 file changed, 4 insertions(+) diff --git a/vmst

[Qemu-devel] [PULL 13/22] tests: vmstate static checker: remove Fields

2014-06-24 Thread Juan Quintela
From: Amit Shah Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 114 +-- 1 file changed, 1 insertion(+), 113 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/t

[Qemu-devel] [PULL 18/22] tests: vmstate static checker: add substructure for usb-kbd for hid section

2014-06-24 Thread Juan Quintela
From: Amit Shah This shows how the script deals with substructures added to vmstate descriptions that don't change the on-wire format. Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- tests/vmstate-static-checker-data/dump2.json | 115 +++--

[Qemu-devel] [Bug 1333688] [NEW] vhost-user: VHOST_USER_SET_MEM_TABLE doesn't contain all regions

2014-06-24 Thread Damjan Marion
Public bug reported: vhost-user implementation doesn't provide information about all memory regions, and in some cases client is not able to map buffer memory as he is missing memory region information for specific address. Same thing is implemented properly for vhost-net. Below gdb outputs ar

  1   2   3   4   >