[Qemu-devel] Question about a particular trap generation scenario

2007-07-16 Thread John
exec_loop that Qemu will not handle multiple exceptions - does the situation described above fall into this category? Thanks in advance, John - Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

[Qemu-devel] [Bug 1815252] [NEW] virtio-9p-pci passthrough fsync hang

2019-02-08 Thread john
Public bug reported: Tested against QEMU: e47f81b617684c4546af286d307b69014a83538a and $qemu-system-x86_64 --version QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.9) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers + exec sudo qemu-system-x86_64 -enable-kvm -bio

[Qemu-devel] [Bug 1815252] Re: virtio-9p-pci passthrough fsync hang

2019-02-08 Thread john
I forgot to add that the kernel in that image (/usr/lib/kernel/org.clearlinux.*) does not have 9p support. So to compile the kernel I used the attached config -- 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 1815252] Re: virtio-9p-pci passthrough fsync hang

2019-02-08 Thread john
I forgot to add that the kernel in that image (/usr/lib/kernel/org.clearlinux.*) does not have 9p support. So to compile the kernel I used the attached config ** Attachment added: "Kernel config" https://bugs.launchpad.net/qemu/+bug/1815252/+attachment/5237112/+files/.config -- You received

[Qemu-devel] [Bug 1815252] Re: virtio-9p-pci passthrough fsync hang

2019-04-09 Thread john
Damn, I just ran into this bug again! Then realized I'd already reported it :( -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1815252 Title: virtio-9p-pci passthrough fsync hang Status in QEMU:

Re: [Qemu-devel] [RFC PATCH 1/7] cadence_uart: first revision

2012-01-23 Thread John Linn
alogix.com; Duy Le; John Linn > Subject: [RFC PATCH 1/7] cadence_uart: first revision > > Device model for Cadence UART > > Signed-off-by: Peter A. G. Crosthwaite > Signed-off-by: John Linn *** My apologies, please ignore the legal footer below which I'm working on getting re

Re: [Qemu-devel] [RFC PATCH 2/7] cadence ttc: first revision

2012-01-23 Thread John Linn
alogix.com; Duy Le; John Linn > Subject: [RFC PATCH 2/7] cadence ttc: first revision > > Device model for cadence triple timer counter (TTC) > > Signed-off-by: Peter A. G. Crosthwaite > Signed-off-by: John Linn *** My apologies, please ignore the legal footer below which I&#x

Re: [Qemu-devel] [RFC PATCH 3/7] cadence_wdt: first revision

2012-01-23 Thread John Linn
alogix.com; Duy Le; John Linn > Subject: [RFC PATCH 3/7] cadence_wdt: first revision > > Device model for cadence watchdog timer (WDT) > > Signed-off-by: Peter A. G. Crosthwaite > Signed-off-by: John Linn *** My apologies, please ignore the legal footer below which I'm wor

Re: [Qemu-devel] [RFC PATCH 4/7] cadence_gem: first revision

2012-01-23 Thread John Linn
alogix.com; Duy Le; John Linn > Subject: [RFC PATCH 4/7] cadence_gem: first revision > > Device mode for cadence gem ethernet controller. > > Signed-off-by: Peter A. G. Crosthwaite > Signed-off-by: John Linn *** My apologies, please ignore the legal footer below which I'm w

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread John Williams
onversion and steps towards fully data driven machines which should be the ultimate objective anyway. As Peter C says elsewhere in this thread, through its link syntax foo=<&ref> you can describe any sort of topology you like in a device tree. Regards, John -- John Williams, PhD, B. Eng, B. IT PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-29 Thread John Williams
addresses but can be overriden in the same way: --kernel zImage@0x2000 --initrd fs.img@0x4000 and so on The '@' symbol will need to be escaped by it's a pretty natural syntax. John -- John Williams, PhD, B. Eng, B. IT PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-29 Thread John Williams
On Mon, Jan 30, 2012 at 10:28 AM, John Williams wrote: > On Sun, Jan 29, 2012 at 4:51 PM, Peter Crosthwaite > wrote: >> Hi All, >> >> So on the topic of these command line arguments for initrd, dtb and friends, >> another related issue we have encountered (and hav

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-29 Thread John Williams
On Mon, Jan 30, 2012 at 12:11 PM, Anthony Liguori wrote: > On 01/29/2012 06:28 PM, John Williams wrote: >> >> On Sun, Jan 29, 2012 at 4:51 PM, Peter Crosthwaite >>  wrote: >>> >>> Hi All, >>> >>> So on the topic of these command line argum

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-29 Thread John Williams
e machine model?  How do we pass arguments to >> it? > > > You create a device via qdev (now QOM) that takes whatever properties you > need.  You then do: > > -device elf-loader,base=0xa0,file=my-elf-binary > > No different than adding a network card. A network card

Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option

2012-01-31 Thread John Williams
On Mon, Jan 30, 2012 at 12:48 PM, Anthony Liguori wrote: > > On Jan 29, 2012 8:41 PM, "John Williams" > wrote: >> >> >>>> There's an opportunity here - QEMU needs the cmdline ability to load >> >>>> random

Re: [Qemu-devel] [PATCH v2] arm: add device tree support

2012-01-31 Thread John Williams
do it using a global, but keep in mind that this will need >> refactoring. > > > Globals are even worse! > > Can't you hear the kernel loader begging to be turned into a device?  It's > pleading with us to stop abusing other parts of QEMU and make it a first > class citizen of QEMU. Is there some kind of initialisation phase where such a device can do its thing? Unless I'm missing something a "loader" device will be racing the rest of the VM after reset to populate the memory with the desired contents, no? John -- John Williams, PhD, B. Eng, B. IT PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

Re: [Qemu-devel] [RFC] Memory API and fine grained Memory Regions

2012-10-28 Thread John Williams
> -Original Message- > From: Edgar E. Iglesias [mailto:edgar.igles...@gmail.com] > Sent: Saturday, 27 October 2012 2:12 PM > To: Peter Crosthwaite > Cc: qemu-devel@nongnu.org Developers; Avi Kivity; Peter Maydell; John > Williams > Subject: Re: [Qemu-devel] [RFC

[Qemu-devel] [PATCH 1/4] fix implicit declaration of syscall() in linux-user/mmap.c

2012-12-09 Thread John Spencer
>From f293c406dd2fe751244f2beef4782ccec65fd307 Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 10 Dec 2012 06:49:57 +0100 Subject: [PATCH 1/4] fix implicit declaration of syscall() in linux-user/mmap.c on glibc, this header is getting pulled in automatically via another header, howe

[Qemu-devel] [PATCH 2/4] fix build error on ARM due to wrong glibc check

2012-12-09 Thread John Spencer
>From ae02bfc600bf8c4c8502e70bdf8dfcd332ebef02 Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 10 Dec 2012 06:54:03 +0100 Subject: [PATCH 2/4] fix build error on ARM due to wrong glibc check the test for glibc < 2 "succeeds" wrongly for any non-glibc C library, and bre

[Qemu-devel] [PATCH 3/4] fix implicit declaration of syscall() in linux-user/syscall.c

2012-12-09 Thread John Spencer
>From 5d410e6e92bbd3ab3a4fadec41a3d87cb9b0feea Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 10 Dec 2012 06:58:48 +0100 Subject: [PATCH 3/4] fix implicit declaration of syscall() in linux-user/syscall.c Signed-off-by: John Spencer --- linux-user/syscall.c |1 + 1 files chan

[Qemu-devel] [PATCH 4/4] linux-user/syscall.c: remove wrong forward decl of setgroups()

2012-12-09 Thread John Spencer
>From 3d9bc5e06ae64806003f8999b4b7ead42bd19c5d Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 10 Dec 2012 07:02:49 +0100 Subject: [PATCH 4/4] linux-user/syscall.c: remove wrong forward decl of setgroups() this declaration is wrong: the correct prototype on linux is: int setgroups(siz

[Qemu-devel] [PATCH 2/4] fix build error on ARM due to wrong glibc check

2012-12-09 Thread John Spencer
the test for glibc < 2 "succeeds" wrongly for any non-glibc C library, and breaks the build on musl libc. we must first test if __GLIBC__ is defined at all, before using it unconditionally. Signed-off-by: John Spencer --- user-exec.c |2 +- 1 files changed, 1 insertions(+)

[Qemu-devel] [PATCH 4/4] linux-user/syscall.c: remove wrong forward decl of setgroups()

2012-12-09 Thread John Spencer
. Signed-off-by: John Spencer --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fabbcd7..665316e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -28,6 +28,7 @@ #include #include

[Qemu-devel] [PATCH 1/4] fix implicit declaration of syscall() in linux-user/mmap.c

2012-12-09 Thread John Spencer
on glibc, this header is getting pulled in automatically via another header, however on musl we need to include it explicitly. linux-user/mmap.c:705:9: warning: implicit declaration of function 'syscall' linux-user/mmap.c:705:9: warning: nested extern declaration of 'syscall'

Re: [Qemu-devel] [PATCH 4/4] linux-user/syscall.c: remove wrong forward decl of setgroups()

2012-12-09 Thread John Spencer
On 12/10/2012 07:37 AM, Stefan Weil wrote: Am 10.12.2012 07:16, schrieb John Spencer: Your patch is not shown here because you had attached it to your email. Please use "git send-email" to send patches.See also http://wiki.qemu.org/Contribute/SubmitAPatch. thanks, resent with git

[Qemu-devel] [PATCH 3/4] fix implicit declaration of syscall() in linux-user/syscall.c

2012-12-09 Thread John Spencer
Signed-off-by: John Spencer --- linux-user/syscall.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 31d5276..fabbcd7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -39,6 +39,7 @@ #include #include

[Qemu-devel] [Bug 602336] Re: bad network performance with 10Gbit

2012-12-10 Thread john fisher
Depending on your networking hardware, you may need to use a virtual function to access the 10G from a guest. On mine, failing to set up the xml file correctly resulted in a NAT connection or a bridge connection instead of the full-speed connection. This requires libvirt 1.0x BTW. the xml that wo

Re: [Qemu-devel] [PATCH 3/4] fix implicit declaration of syscall() in linux-user/syscall.c

2012-12-10 Thread John Spencer
On 12/10/2012 06:49 PM, Stefan Weil wrote: Am 10.12.2012 07:59, schrieb John Spencer: +#include This is a workaround for a missing declaration of function syscall in musl's unistd.h. See my comment to patch 1 for more information. thanks for noticing! fixed in musl: http://git

[Qemu-devel] Qemu scrambles eth device order in VM

2012-12-12 Thread john fisher
bug report) thanks. -- John Fisher

[Qemu-devel] [Bug 1089006] [NEW] Qemu scrambles order of eth devices in vm

2012-12-12 Thread john fisher
Public bug reported: HV = 12.04 LTS plus libvirt 1.0x VM = 12.04 LTS On the HV there are 12 eth interfaces which we make available to the VM. We have 4 10G virtual function interfaces, and 8 1G conventionally bridged interfaces. No matter what order we present the interfaces in the xml file, they

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-12 Thread John Spencer
On 12/12/2012 04:18 AM, Scott Wood wrote: QEMU is sometimes used in embedded contexts, where graphical support is unnecessary. The ability to turn off graphics support not only saves some space, but it eliminates the dependency on pixman. Signed-off-by: Scott Wood --- There are undoubtedly some

[Qemu-devel] [Bug 1089006] Re: Qemu scrambles order of eth devices in vm

2012-12-12 Thread john fisher
Thank you Daniel. I understand what you say and agree. However when presented with a mapping and an order by libvirt, shouldn't the order be preserved by default? If the OS scrambles it, then fine, not your problem... Are we on the right track here, is there some way to control the order as pres

Re: [Qemu-devel] [Bug 1089006] Re: Qemu scrambles order of eth devices in vm

2012-12-18 Thread john fisher
On 12/12/2012 11:59 AM, john fisher wrote: > > Are we on the right track here, is there some way to control the order > as presented by Qemu when the VM's OS

[Qemu-devel] [PATCH] linux-user/syscall.c: remove forward declarations

2012-12-25 Thread John Spencer
instead use the correct headers that define these functions. Requested-by: Stefan Weil Signed-off-by: John Spencer --- linux-user/syscall.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e99adab..3167a87 100644

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-02-23 Thread John Rigby
The patch at least allows java to run without segfaulting. I have not tried to build libreoffice yet. Late in 2012 libc started using FUTEX_WAIT_BITSET instead of FUTEX_WAIT so teach qemu about it so it will forward the call to the host kernel rather than returning -TARGET_ENOSYS. The patch also

Re: [Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-02-23 Thread John Rigby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, sorry I attached this quick patch to the bug for Serge to try out with the intent of sending a proper patch upstream later. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmai

[Qemu-devel] [PATCH 1/2] linux-user/syscall.c: handle FUTEX_WAIT_BITSET in do_futex

2013-02-23 Thread John Rigby
Upstream libc has recently changed to start using FUTEX_WAIT_BITSET instead of FUTEX_WAIT and this is causing do_futex to return -TARGET_ENOSYS. Pass bitset in val3 to sys_futex which will be ignored by kernel for the FUTEX_WAIT case. Signed-off-by: John Rigby --- linux-user/syscall.c |3

[Qemu-devel] [PATCH 2/2] linux-user: fix futex strace of FUTEX_CLOCK_REALTIME

2013-02-23 Thread John Rigby
Handle same as existing FUTEX_PRIVATE_FLAG. Signed-off-by: John Rigby --- linux-user/strace.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/strace.c b/linux-user/strace.c index 4e91a6e..f8030e0 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1437,6

[Qemu-devel] [Bug 1061778] [NEW] signal mask not reset on exec

2012-10-04 Thread John Sullivan
Public bug reported: Seen in qemu-1.0 under 12.04, but AFAICT from current git it hasn't changed. ./main-loop.c:qemu_signal_init blocks SIGALRM so it can be handled via signalfd. ./net/tap.c:launch_script does not reset the signal mask before the execv() call, and signal masks are inherited. So

[Qemu-devel] Adding support for Stateless Static NAT for TAP devices

2012-08-30 Thread John Basila
argument to the SSNAT is the Guest OS network IP, the rest will be figured out from the underlying TAP device. Signed-off-by: John Basila --- net/tap.c| 369 +- qapi-schema.json |5 +- qemu-options.hx | 10 ++- 3 files changed, 381

Re: [Qemu-devel] Adding support for Stateless Static NAT for TAP devices

2012-08-30 Thread John Basila
ket should be "RELATED" to a different connection and thus will cause the response packets of machine B to be received via machine A as the NAT rule will de-NAT the return packet to to the relevant connection which is related to machine A. John -Original Message- From: St

Re: [Qemu-devel] Adding support for Stateless Static NAT for TAP devices

2012-08-30 Thread John Basila
iptables. Regarding the vhost=on, I can disallow the use of both which I think is fair. John -Original Message- From: Stefan Hajnoczi [mailto:stefa...@gmail.com] Sent: Thursday, August 30, 2012 12:14 PM To: John Basila Cc: qemu-devel@nongnu.org; Anthony Liguori Subject: Re: Adding support for

Re: [Qemu-devel] Adding support for Stateless Static NAT for TAP devices

2012-08-30 Thread John Basila
...@conversis.de] Sent: Thursday, August 30, 2012 3:38 PM To: John Basila Cc: Stefan Hajnoczi; qemu-devel@nongnu.org; Anthony Liguori; Rusty Russell; netfil...@vger.kernel.org Subject: Re: Adding support for Stateless Static NAT for TAP devices On 08/30/2012 12:58 PM, John Basila wrote: > Please al

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-01 Thread John Rigby
Trying to build on a raring amd64 host in a raring armhf chroot, two failures so far. First time was a hang checking ant, an xlc-ls showed several java threads hung. Second time was a segfault again in java. So I have no problems reproducing this now locally. Hang seems like thread waiting for

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread John Rigby
I see the same thing javac hanging. This is with a raring chroot on raring host with qemu compiled from upstream 1.4.0 plus Peter's patches and my linux-user patches -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launch

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread John Rigby
I noticed for the case where javac --version hangs the process has several threads all waiting on futexes. Details attached. ** Attachment added: "dump.out" https://bugs.launchpad.net/qemu/+bug/1129571/+attachment/3555716/+files/dump.out -- You received this bug notification because you are

Re: [Qemu-devel] [PATCH v4 2/8] ahci: MSI capability should be at 0x80, not 0x50.

2014-09-17 Thread John Snow
On 09/17/2014 12:42 PM, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:54:28PM +0200, Jan Kiszka wrote: On 2014-08-21 19:44, John Snow wrote: In the Intel ICH9 data sheet, the MSI capability offset in the PCI configuration space for ICH9 AHCI devices is specified to be 0x80. Further

[Qemu-devel] [RFC v2 0/3] Q35/AHCI -cdrom/-hda desugaring

2014-09-18 Thread John Snow
meaningful information. John Snow (3): blockdev: Add function to search for orphaned drives Add units-per-idebus property ahci: implement -cdrom and -hd[a-d] blockdev.c| 29 +++-- device-hotplug.c | 2 +- hw/i386/pc_q35.c | 6

[Qemu-devel] [RFC v2 2/3] Add units-per-idebus property

2014-09-18 Thread John Snow
Signed-off-by: John Snow --- blockdev.c| 10 -- device-hotplug.c | 2 +- hw/i386/pc_q35.c | 3 ++- include/hw/boards.h | 3 ++- include/sysemu/blockdev.h | 2 +- vl.c | 19 +++ 6 files changed, 25 insertions

[Qemu-devel] [RFC v2 3/3] ahci: implement -cdrom and -hd[a-d]

2014-09-18 Thread John Snow
Signed-off-by: John Snow --- hw/i386/pc_q35.c | 3 +++ hw/ide/ahci.c| 31 +++ hw/ide/ahci.h| 3 +++ 3 files changed, 37 insertions(+) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index fd26fe1..0f33696 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35

[Qemu-devel] [RFC v2 1/3] blockdev: Add function to search for orphaned drives

2014-09-18 Thread John Snow
Signed-off-by: John Snow --- blockdev.c| 19 +++ include/sysemu/blockdev.h | 1 + vl.c | 5 + 3 files changed, 25 insertions(+) diff --git a/blockdev.c b/blockdev.c index b361fbb..5e7c93a 100644 --- a/blockdev.c +++ b/blockdev.c

[Qemu-devel] [PATCH 02/15] qtest/ahci: Add port_select helper

2014-09-18 Thread John Snow
This helper identifies which port of the AHCI HBA has a device we may run tests on. Signed-off-by: John Snow --- tests/ahci-test.c | 46 +- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index

[Qemu-devel] [PATCH 05/15] qtest/ahci: Add build cmd table helper

2014-09-18 Thread John Snow
build_cmd_table is a helper routine to build the command table, which consists of the Command FIS and the Physical Region Descriptor Table. Signed-off-by: John Snow --- tests/ahci-test.c | 113 +++--- 1 file changed, 74 insertions(+), 39 deletions

[Qemu-devel] [PATCH 04/15] qtest/ahci: Add command header helpers

2014-09-18 Thread John Snow
command slot to allow us to cycle through the available command slots. command_destroy obliterates all information contained within a given slot's command header, and frees its associated command table, but not its DMA buffer! Signed-off-by: John Snow --- tests/ahci-test.c

[Qemu-devel] [PATCH 12/15] qtest/ahci: Enforce zero-leaks for guest mem usage

2014-09-18 Thread John Snow
The purpose of this patch is to aid in debugging the new malloc-pc interface for guest memory, by enabling the enforcing of no guest memory blocks in use at exit time. Signed-off-by: John Snow --- tests/ahci-test.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions

[Qemu-devel] [PATCH 03/15] qtest/ahci: Add port_clear helper

2014-09-18 Thread John Snow
Add a helper that assists in clearing out potentially old error and FIS information from an AHCI port's data structures. This ensures we always start with a blank slate for interrupt and FIS receipt information. Signed-off-by: John Snow --- tests/ahci-test.c | 26 ++--

[Qemu-devel] [PATCH 06/15] qtest/ahci: Add link_cmd_slot helper

2014-09-18 Thread John Snow
link_cmd_slot creates the command header, by setting a pointer to the command table as well as adjusting other metadata, like DMA direction and PRDT length. It effectively links a command, via its table, to the indicated command slot. Signed-off-by: John Snow --- tests/ahci-test.c | 72

[Qemu-devel] [PATCH 10/15] qtest/ahci: Add port_check_nonbusy helper

2014-09-18 Thread John Snow
A simple helper that asserts a given port is not busy processing any commands via the TFD, Command Issue and SACT registers. Signed-off-by: John Snow --- tests/ahci-test.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index

[Qemu-devel] [PATCH 15/15] qtest/ahci: Don't use a magic constant for buffer size

2014-09-18 Thread John Snow
Fix to correct the use of "512" as a magic constant and define it as the buffer size for the operation instead. Signed-off-by: John Snow --- tests/ahci-test.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c ind

[Qemu-devel] [PATCH 07/15] qtest/ahci: Add port_check_error helper

2014-09-18 Thread John Snow
port_check-error checks a given port's error registers and asserts that everything from the port-level view is still OK. Signed-off-by: John Snow --- tests/ahci-test.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/tests/ahci-test.c b/

[Qemu-devel] [PATCH 13/15] qtest/ahci: Add a macro bootup routine

2014-09-18 Thread John Snow
Add a routine that can be used to engage the AHCI device at a not-granular level so that bringing up the functionality of the HBA is easy in future tests that are not concerned with testing the bring-up process. Signed-off-by: John Snow --- tests/ahci-test.c | 19 --- 1 file

[Qemu-devel] [PATCH 09/15] qtest/ahci: Add port_check_interrupts helper

2014-09-18 Thread John Snow
ff-by: John Snow --- tests/ahci-test.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 4615681..315e6e9 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1314,6 +1314,20 @@ static void port_check_

[Qemu-devel] [PATCH 08/15] qtest/ahci: Add issue_command helper

2014-09-18 Thread John Snow
issue_command is a small routine that informs the AHCI device that we have finalized our command and we'd wish for the device to begin processing it. issue_command polls the AHCI device waiting for the device to finish, in order to achieve a synchronous effect. Signed-off-by: John

[Qemu-devel] [PATCH 11/15] qtest/ahci: Add cmd response sanity check helpers

2014-09-18 Thread John Snow
Adds a few helpers to help sanity-check the response of the AHCI device after a command. d2h_check_sanity inspects the D2H Register FIS, pio_check_sanity inspects the PIO Setup FIS, and cmd_check_sanity inspects the command header. Signed-off-by: John Snow --- tests/ahci-test.c | 123

[Qemu-devel] [PATCH 14/15] qtest/ahci: Add human-readable command names

2014-09-18 Thread John Snow
Instead of using direct hex values, use SATA command mnemonics. Signed-off-by: John Snow --- tests/ahci-test.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 63fc309..e3091b9 100644 --- a/tests/ahci-test.c +++ b/tests

[Qemu-devel] [PATCH 00/15] AHCI test helper refactors

2014-09-18 Thread John Snow
he operation of the existing test, or add new tests. It only offers refactorings for future patch submissions which depend on them, but are still under consideration. John Snow (15): qtest/ahci: Add AHCIState structure qtest/ahci: Add port_select helper qtest/ahci: Add port_clear helper

[Qemu-devel] [PATCH 01/15] qtest/ahci: Add AHCIState structure

2014-09-18 Thread John Snow
Introduce a state structure that can be used to conveniently bookmark key values of the AHCI Device instead of re-polling it all the time. This structure also helps ease of cleanup. Signed-off-by: John Snow --- tests/ahci-test.c | 283 ++ 1

Re: [Qemu-devel] [PATCH 00/15] AHCI test helper refactors

2014-09-19 Thread John Snow
On 09/19/2014 06:53 AM, Markus Armbruster wrote: John Snow writes: The original version of the AHCI test base which is now staged for being merged, processes the ahci_identify test in a monolithic fashion. In authoring new tests, it became necessary and obvious as to how the operation of

Re: [Qemu-devel] [RFC v2 1/3] blockdev: Add function to search for orphaned drives

2014-09-19 Thread John Snow
On 09/19/2014 04:28 AM, Markus Armbruster wrote: John Snow writes: Signed-off-by: John Snow --- blockdev.c| 19 +++ include/sysemu/blockdev.h | 1 + vl.c | 5 + 3 files changed, 25 insertions(+) diff --git a/blockdev.c b

[Qemu-devel] [Bug 1329956] Re: multi-core FreeBSD guest hangs after warm reboot

2014-09-22 Thread John Nielsen
For the benefit of the last commenter and anyone else who comes across this ticket: As determined on the mailing list in June, the bug appears to be with KVM's apicv on processors that support the feature. I haven't heard anything about a fix, but the best workaround is to disable apicv when loadi

Re: [Qemu-devel] [RFC v2 0/3] Q35/AHCI -cdrom/-hda desugaring

2014-09-22 Thread John Snow
On 09/19/2014 05:53 AM, Markus Armbruster wrote: John Snow writes: This is an extremely rough/quick sketch of a -cdrom/-hda desugaring fix for Q35/AHCI. Before I spent any time on it, I wanted feedback from Markus or anyone else who had concerns about how this problem would get fixed

[Qemu-devel] [PATCH 2/6] blockdev: Allow overriding if_max_dev property

2014-09-23 Thread John Snow
his information at option parsing time (e.g, within drive_new), we consider the alternative of marking the if_max_devs table mutable so that later configuration and initialization can adjust the mapping at will, but only up until a drive is added, at which point the mapping is finalized. Signed-off-by: J

[Qemu-devel] [PATCH 1/6] blockdev: Orphaned drive search

2014-09-23 Thread John Snow
issue. A warning in these cases is considered appropriate. Signed-off-by: John Snow --- blockdev.c| 21 + include/sysemu/blockdev.h | 2 ++ vl.c | 12 +++- 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/blockdev.c

[Qemu-devel] [PATCH 0/6] Q35: Implement -cdrom/-hda sugar

2014-09-23 Thread John Snow
'units-per-default-bus' And allows override of any one IF type (block_default) John Snow (6): blockdev: Orphaned drive search blockdev: Allow overriding if_max_dev property pc/vl: Add units-per-default-bus property ide: Update ide_drive_get to be HBA agnostic qtest/bios-tables: Corr

[Qemu-devel] [PATCH 5/6] qtest/bios-tables: Correct Q35 command line

2014-09-23 Thread John Snow
-hd,drive=hd Which will create a drive and device due to the lack of specifying if=none. Then, it will attempt to create a second device and fail. This patch corrects this test to always use the full, non-sugared -device/-drive syntax for both PC and Q35. Signed-off-by: John Snow --- tests/bios

[Qemu-devel] [PATCH 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-23 Thread John Snow
Instead of duplicating the logic for the if_ide (bus,unit) mappings, rely on the blockdev layer for managing those mappings for us, and use the drive_get_by_index call instead. This allows ide_drive_get to work for AHCI HBAs as well, and can be used in the Q35 initialization. Signed-off-by: John

[Qemu-devel] [PATCH 3/6] pc/vl: Add units-per-default-bus property

2014-09-23 Thread John Snow
overrides the mapping for drives matching the block_default_type interface. Signed-off-by: John Snow --- hw/i386/pc.c| 1 + hw/i386/pc_q35.c| 3 ++- include/hw/boards.h | 2 ++ vl.c| 8 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/hw/i386/p

[Qemu-devel] [PATCH 6/6] q35/ahci: Pick up -cdrom and -hda options

2014-09-23 Thread John Snow
: John Snow --- hw/i386/pc_q35.c | 3 +++ hw/ide/ahci.c| 15 +++ hw/ide/ahci.h| 2 ++ 3 files changed, 20 insertions(+) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index b28ddbb..1664a2d 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -86,6 +86,7 @@ static void

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-09-23 Thread John Snow
On 08/22/2014 05:05 AM, Stefan Hajnoczi wrote: On Fri, Aug 22, 2014 at 9:20 AM, Daniel P. Berrange wrote: On Thu, Aug 21, 2014 at 08:10:54PM -0400, John Snow wrote: I was running a series of tests on 32 and 64 bit hosts to test for endianness and variable width issues when I noticed that I

Re: [Qemu-devel] [PATCH v3] docs: add blkdebug block driver documentation

2014-09-24 Thread John Snow
On 09/24/2014 12:24 PM, Max Reitz wrote: On 24.09.2014 11:44, Stefan Hajnoczi wrote: The blkdebug block driver is undocumented. Documenting it is worthwhile since it offers powerful error injection features that are used by qemu-iotests test cases. This document will make it easier for peopl

Re: [Qemu-devel] [PATCH 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-24 Thread John Snow
On 09/24/2014 10:35 AM, Markus Armbruster wrote: John Snow writes: Instead of duplicating the logic for the if_ide (bus,unit) mappings, rely on the blockdev layer for managing those mappings for us, and use the drive_get_by_index call instead. This allows ide_drive_get to work for AHCI

Re: [Qemu-devel] [PATCH 1/6] blockdev: Orphaned drive search

2014-09-24 Thread John Snow
On 09/24/2014 10:06 AM, Markus Armbruster wrote: John Snow writes: When users use command line options like -hda, -cdrom, or even -drive if=ide, it is up to the board initialization routines to pick up these drives and create backing devices for them. Some boards, like Q35, have not been

Re: [Qemu-devel] [PATCH 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-26 Thread John Snow
On 09/25/2014 02:13 AM, Markus Armbruster wrote: John Snow writes: On 09/24/2014 10:35 AM, Markus Armbruster wrote: John Snow writes: Instead of duplicating the logic for the if_ide (bus,unit) mappings, rely on the blockdev layer for managing those mappings for us, and use the

[Qemu-devel] [PATCH v2 3/6] pc/vl: Add units-per-default-bus property

2014-09-29 Thread John Snow
cow2,index=5 --> bus=5,unit=0. The mapping is adjusted based on the fact that the default IF for the Q35 machine type is IF_IDE, and units-per-default-bus overrides the IDE mapping from its default of 2 units per bus to just 1 unit per bus. Signed-off-by: John Snow --- hw/i386/pc.c

[Qemu-devel] [PATCH v2 5/6] qtest/bios-tables: Correct Q35 command line

2014-09-29 Thread John Snow
-hd,drive=hd Which will create a drive and device due to the lack of specifying if=none. Then, it will attempt to create a second device and fail. This patch corrects this test to always use the full, non-sugared -device/-drive syntax for both PC and Q35. Signed-off-by: John Snow --- tests/bios

[Qemu-devel] [PATCH v2 1/6] blockdev: Orphaned drive search

2014-09-29 Thread John Snow
is an issue. A warning in these cases is considered appropriate. Signed-off-by: John Snow --- blockdev.c| 21 + include/sysemu/blockdev.h | 2 ++ vl.c | 10 +- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH v2 6/6] q35/ahci: Pick up -cdrom and -hda options

2014-09-29 Thread John Snow
This patch implements the backend for the Q35 board for us to be able to pick up and use drives defined by the -cdrom, -hda, or -drive if=ide shorthand options. Signed-off-by: John Snow --- hw/i386/pc_q35.c | 4 hw/ide/ahci.c| 15 +++ hw/ide/ahci.h| 2 ++ 3 files

[Qemu-devel] [PATCH v2 0/6] Q35: Implement -cdrom/-hda sugar

2014-09-29 Thread John Snow
nits-per-idebus' to 'units-per-default-bus' And allows override of any one IF type (block_default) RFC2: - Rewrote series to avoid the creation of IF_AHCI. John Snow (6): blockdev: Orphaned drive search blockdev: Allow overriding if_max_dev property pc/vl: Add units-per-default-b

[Qemu-devel] [PATCH v2 2/6] blockdev: Allow overriding if_max_dev property

2014-09-29 Thread John Snow
his information at option parsing time (e.g, within drive_new), we consider the alternative of marking the if_max_devs table mutable so that later configuration and initialization can adjust the mapping at will, but only up until a drive is added, at which point the mapping is finalized. Signed-off-by: J

[Qemu-devel] [PATCH v2 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-29 Thread John Snow
nature of the argument to ide_drive_get so that represents the number of total drives we can support, and not the total number of buses. This will prevent array overflows if the units-per-default-bus property ever needs to be adjusted for compatibility reasons. Signed-off-by: John Snow

Re: [Qemu-devel] [PATCH v2 6/6] q35/ahci: Pick up -cdrom and -hda options

2014-09-30 Thread John Snow
On 09/30/2014 03:54 AM, Markus Armbruster wrote: John Snow writes: This patch implements the backend for the Q35 board for us to be able to pick up and use drives defined by the -cdrom, -hda, or -drive if=ide shorthand options. Signed-off-by: John Snow --- hw/i386/pc_q35.c | 4

Re: [Qemu-devel] [PATCH v2 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-30 Thread John Snow
On 09/30/2014 03:38 AM, Markus Armbruster wrote: John Snow writes: Instead of duplicating the logic for the if_ide (bus,unit) mappings, rely on the blockdev layer for managing those mappings for us, and use the drive_get_by_index call instead. This allows ide_drive_get to work for AHCI

[Qemu-devel] [PATCH v3 0/6] Q35: Implement -cdrom/-hda sugar

2014-10-01 Thread John Snow
anning to exclude IF_NONE and automatically added drives - Renames 'units-per-idebus' to 'units-per-default-bus' And allows override of any one IF type (block_default) RFC2: - Rewrote series to avoid the creation of IF_AHCI. John Snow (6): blockdev: Orphaned drive search

[Qemu-devel] [PATCH v3 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-10-01 Thread John Snow
nature of the argument to ide_drive_get so that represents the number of total drives we can support, and not the total number of buses. This will prevent array overflows if the units-per-default-bus property ever needs to be adjusted for compatibility reasons. Signed-off-by: John Snow

[Qemu-devel] [PATCH v3 6/6] q35/ahci: Pick up -cdrom and -hda options

2014-10-01 Thread John Snow
This patch implements the backend for the Q35 board for us to be able to pick up and use drives defined by the -cdrom, -hda, or -drive if=ide shorthand options. Signed-off-by: John Snow --- hw/i386/pc_q35.c | 4 hw/ide/ahci.c| 15 +++ hw/ide/ahci.h| 2 ++ 3 files

[Qemu-devel] [PATCH v3 3/6] pc/vl: Add units-per-default-bus property

2014-10-01 Thread John Snow
cow2,index=5 --> bus=5,unit=0. The mapping is adjusted based on the fact that the default IF for the Q35 machine type is IF_IDE, and units-per-default-bus overrides the IDE mapping from its default of 2 units per bus to just 1 unit per bus. Signed-off-by: John Snow --- hw/i386/pc.c

[Qemu-devel] [PATCH v3 2/6] blockdev: Allow overriding if_max_dev property

2014-10-01 Thread John Snow
his information at option parsing time (e.g, within drive_new), we consider the alternative of marking the if_max_devs table mutable so that later configuration and initialization can adjust the mapping at will, but only up until a drive is added, at which point the mapping is finalized. Signed-off-by: J

[Qemu-devel] [PATCH v3 5/6] qtest/bios-tables: Correct Q35 command line

2014-10-01 Thread John Snow
-hd,drive=hd Which will create a drive and device due to the lack of specifying if=none. Then, it will attempt to create a second device and fail. This patch corrects this test to always use the full, non-sugared -device/-drive syntax for both PC and Q35. Signed-off-by: John Snow --- tests/bios

[Qemu-devel] [PATCH v3 1/6] blockdev: Orphaned drive search

2014-10-01 Thread John Snow
is an issue. A warning in these cases is considered appropriate. Signed-off-by: John Snow --- blockdev.c| 21 + include/sysemu/blockdev.h | 2 ++ vl.c | 10 +- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH 0/6] AHCI Device Fixes

2014-10-01 Thread John Snow
backs. Taken together, these patches should allow non-ncq operation for Windows hosts, as well as enable hibernation for Windows 7. Hibernation for Windows 8 and AHCI remains non-functional. John Snow (6): ahci: Correct PIO/D2H FIS responses ahci: Update byte count after DMA completion ide: r

  1   2   3   4   5   6   7   8   9   10   >