Re: [Qemu-devel] [PATCH] Added 'access' option to -drive flag

2009-12-23 Thread Simon Horman
On Wed, Dec 23, 2009 at 02:12:23PM +0200, Naphtali Sprei wrote: > Added 'access' option to -drive flag > > The new option is: access=[rw|ro|auto] > rw: open the drive's file with Read and Write permission, don't continue if > failed > ro: open the file only with Read permission > auto: open the f

Re: [Qemu-devel] [PATCH v2 master, stable-0.12] Don't load options roms intended to be loaded by the bios in qemu

2009-12-23 Thread Avi Kivity
On 12/24/2009 02:17 AM, Aurelien Jarno wrote: On Tue, Dec 22, 2009 at 11:57:02AM +0200, Avi Kivity wrote: The first such option rom will load at address 0, which isn't very nice, and the second will report a conflict and abort, which is horrible. Signed-off-by: Avi Kivity --- Changes from

Re: [Qemu-devel] [PATCH 3/8] virtio-serial-bus: Maintain guest and host port open/close state

2009-12-23 Thread Amit Shah
On (Wed) Dec 23 2009 [17:14:28], Anthony Liguori wrote: > >> +/* >> + * Items in struct VirtIOSerialPort. >> + */ >> +QTAILQ_FOREACH(port,&s->ports, next) { >> +/* >> + * We put the port number because we may not have an active >> + * port at id 0 that's rese

Re: [Qemu-devel] [PATCH 2/8] virtio-console: qdev conversion, new virtio-serial-bus

2009-12-23 Thread Amit Shah
On (Wed) Dec 23 2009 [17:12:22], Anthony Liguori wrote: > On 12/23/2009 01:52 PM, Amit Shah wrote: >> This commit converts the virtio-console device to create a new >> virtio-serial bus that can host console and generic serial ports. The >> file hosting this code is now called virtio-serial-bus.c.

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Amit Shah
On (Wed) Dec 23 2009 [23:07:24], Markus Armbruster wrote: > >> > >> Do you expect devices other than "virtconsole" to go on this bus? > > > > Yes; virtserialport, as the next patch in the series introduces. > > > > Also, virtserialvnc, etc. > > Since all devices on this bus need the same device a

[Qemu-devel] Re: [PATCH] Seabios: Fix PkgLength calculation for the SSDT.

2009-12-23 Thread Kevin O'Connor
On Mon, Dec 14, 2009 at 10:25:14AM +0100, Magnus Christensson wrote: >>> --- a/src/acpi.c >>> +++ b/src/acpi.c >>> @@ -464,10 +464,12 @@ build_ssdt(void) >>> // build processor scope header >>> *(ssdt_ptr++) = 0x10; // ScopeOp >>> if (cpu_length<= 0x3e) { >>> +/* Handle 1-

[Qemu-devel] Re: Seabios: PCI interrupt routing question

2009-12-23 Thread Kevin O'Connor
On Mon, Dec 14, 2009 at 10:23:39AM +0100, Magnus Christensson wrote: >> This function implement the same logic as pci_swizzle_interrupt_pin() in >> Linux kernel. This logic defines how PCI bridge connects INTx of each >> devices behind it to system board interrupt line and it is part of PCI >> spec

Re: [Qemu-devel] [PATCH v2 master, stable-0.12] Don't load options roms intended to be loaded by the bios in qemu

2009-12-23 Thread Aurelien Jarno
On Tue, Dec 22, 2009 at 11:57:02AM +0200, Avi Kivity wrote: > The first such option rom will load at address 0, which isn't very nice, > and the second will report a conflict and abort, which is horrible. > > Signed-off-by: Avi Kivity > --- > > Changes from v1: > - use ->fw_file instead of ->add

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Aurelien Jarno
On Thu, Dec 24, 2009 at 12:39:36AM +0100, Laurent Vivier wrote: > Le mercredi 23 décembre 2009 à 10:55 +, Paul Brook a écrit : > > > The problem is that the whole define is just plain wrong which tells me > > > that the code is using the bswap functions incorrectly. This really > > > needs to b

[Qemu-devel] [PATCH] MAC DBDMA: store register values in native endianness

2009-12-23 Thread Aurelien Jarno
Store the register values in native endianness, by dropping all the endianness conversion functions, and converting the endianness in dbdma_readl/dbdma_writel instead. Also guard the endianness conversion with TARGET_WORDS_BIGENDIAN to simulate the backward connection of the bus. Signed-off-by: A

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Laurent Vivier
Le mercredi 23 décembre 2009 à 10:55 +, Paul Brook a écrit : > [2] My guess is that the code is cribbed from elsewhere, and the original > source gave the CPU direct access to the ch->regs[] array. In fact it comes from Mac-On-Linux, src/drivers/dbdma.c Laurent -- - laur

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Laurent Vivier
Le mercredi 23 décembre 2009 à 10:55 +, Paul Brook a écrit : > > The problem is that the whole define is just plain wrong which tells me > > that the code is using the bswap functions incorrectly. This really > > needs to be fixed by someone who knows the dbdma device. I don't see how > > calli

Re: [Qemu-devel] [PATCH, RESEND] usb-ohci: Fix endianness issue

2009-12-23 Thread Aurelien Jarno
On Thu, Dec 24, 2009 at 12:22:00AM +0100, Michael Buesch wrote: > On Wednesday 23 December 2009 23:43:44 Aurelien Jarno wrote: > > It has already been applied long time ago: > > Is svn://svn.savannah.nongnu.org/qemu/trunk not used anymore? > No, you should use instead: git://git.savannah.nongnu

Re: [Qemu-devel] [PATCH, RESEND] usb-ohci: Fix endianness issue

2009-12-23 Thread Michael Buesch
On Wednesday 23 December 2009 23:43:44 Aurelien Jarno wrote: > It has already been applied long time ago: Is svn://svn.savannah.nongnu.org/qemu/trunk not used anymore? -- Greetings, Michael.

Re: [Qemu-devel] [PATCH 5/8] virtio-serial-bus: Add support for buffering guest output, throttling guests

2009-12-23 Thread Anthony Liguori
On 12/23/2009 01:52 PM, Amit Shah wrote: Guests send us one buffer at a time. Current guests send buffers sized 4K bytes. If guest userspace applications sent out> 4K bytes in one write() syscall, the write request actually sends out multiple buffers, each of 4K in size. This usually isn't a pr

Re: [Qemu-devel] [PATCH 4/8] virtio-serial-bus: Add a port 'name' property for port discovery in guests

2009-12-23 Thread Anthony Liguori
On 12/23/2009 01:52 PM, Amit Shah wrote: The port 'id' or number is internal state between the guest kernel and our bus implementation. This is invocation-dependent and isn't part of the guest-host ABI. To correcly enumerate and map ports between the host and the guest, the 'name' property is us

Re: [Qemu-devel] [PATCH 3/8] virtio-serial-bus: Maintain guest and host port open/close state

2009-12-23 Thread Anthony Liguori
On 12/23/2009 01:52 PM, Amit Shah wrote: Via control channel messages, the guest can tell us whether a port got opened or closed. Similarly, we can also indicate to the guest of host port open/close events. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 73

Re: [Qemu-devel] [PATCH 2/8] virtio-console: qdev conversion, new virtio-serial-bus

2009-12-23 Thread Anthony Liguori
On 12/23/2009 01:52 PM, Amit Shah wrote: This commit converts the virtio-console device to create a new virtio-serial bus that can host console and generic serial ports. The file hosting this code is now called virtio-serial-bus.c. The virtio console is now a very simple qdev device that sits on

Re: [Qemu-devel] [RFC PATCH 0/8] virtio-console: Move to qdev, multiple devices, generic ports

2009-12-23 Thread Anthony Liguori
On 12/23/2009 01:52 PM, Amit Shah wrote: Hello, This series splits up the patches by functionality. Note, however, that patches 2-6 introduce some functionality that's advertised to the guest as having to work all at once or not at all. Also, the savevm version is bumped only once but save/resto

Re: [Qemu-devel] [PATCH, RESEND] usb-ohci: Fix endianness issue

2009-12-23 Thread Aurelien Jarno
On Wed, Dec 23, 2009 at 04:52:34PM +0100, Michael Buesch wrote: > This fixes a possible endianness issue in the usb-ohci hw module. > hcca.frame and ohci->frame_number are 16bit, so use cpu_to_le16(). > > Signed-off-by: Michael Buesch > > --- > > Resend. This patch was already sent on 2009/07/0

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Markus Armbruster
Amit Shah writes: > On (Wed) Dec 23 2009 [20:02:19], Markus Armbruster wrote: >> Amit Shah writes: >> >> > On (Wed) Dec 23 2009 [14:54:55], Markus Armbruster wrote: >> >> Amit Shah writes: >> >> >> >> > This patch migrates virtio-console to the qdev infrastructure and >> >> > creates a new vi

[Qemu-devel] [PATCH 8/8] Move virtio-serial and virtio-serial-bus to Makefile.hw

2009-12-23 Thread Amit Shah
There's nothing target-dependent in the virtio-serial code so allow it to be compiled just once for all the targets. Signed-off-by: Amit Shah --- Makefile.hw |2 +- Makefile.target |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.hw b/Makefile.hw index b

[Qemu-devel] [PATCH 7/8] virtio-serial: Add 'virtserialport' device for generic serial port support

2009-12-23 Thread Amit Shah
This patch adds generic serial ports over the virtio serial bus. These ports have a few more options that are not relevant for virtio console ports: the ability to cache buffers that are received for a port while it's disconnected, setting of limits to the bytes that are cached so as to prevent OOM

[Qemu-devel] [PATCH 6/8] virtio-serial-bus: Add ability to hot-unplug ports

2009-12-23 Thread Amit Shah
Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |2 ++ hw/virtio-serial.h |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 12317ba..0a85f6e 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@

[Qemu-devel] [PATCH 5/8] virtio-serial-bus: Add support for buffering guest output, throttling guests

2009-12-23 Thread Amit Shah
Guests send us one buffer at a time. Current guests send buffers sized 4K bytes. If guest userspace applications sent out > 4K bytes in one write() syscall, the write request actually sends out multiple buffers, each of 4K in size. This usually isn't a problem but for some apps, like VNC, the enti

[Qemu-devel] [PATCH 4/8] virtio-serial-bus: Add a port 'name' property for port discovery in guests

2009-12-23 Thread Amit Shah
The port 'id' or number is internal state between the guest kernel and our bus implementation. This is invocation-dependent and isn't part of the guest-host ABI. To correcly enumerate and map ports between the host and the guest, the 'name' property is used. Example: -device virtserialport,n

[Qemu-devel] [PATCH 3/8] virtio-serial-bus: Maintain guest and host port open/close state

2009-12-23 Thread Amit Shah
Via control channel messages, the guest can tell us whether a port got opened or closed. Similarly, we can also indicate to the guest of host port open/close events. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 73 hw/virtio-serial.c

[Qemu-devel] [PATCH 2/8] virtio-console: qdev conversion, new virtio-serial-bus

2009-12-23 Thread Amit Shah
This commit converts the virtio-console device to create a new virtio-serial bus that can host console and generic serial ports. The file hosting this code is now called virtio-serial-bus.c. The virtio console is now a very simple qdev device that sits on the virtio-serial-bus and communicates bet

[Qemu-devel] [PATCH 1/8] virtio: Remove duplicate macro definition for max. virtqueues, bump up the max

2009-12-23 Thread Amit Shah
VIRTIO_PCI_QUEUE_MAX is redefined in hw/virtio.c. Let's just keep it in hw/virtio.h. Also, bump up the value of the maximum allowed virtqueues to 32. This is in preparation to allow multiple ports per virtio-console device. Signed-off-by: Amit Shah --- hw/virtio.c |2 -- hw/virtio.h |2

[Qemu-devel] [RFC PATCH 0/8] virtio-console: Move to qdev, multiple devices, generic ports

2009-12-23 Thread Amit Shah
Hello, This series splits up the patches by functionality. Note, however, that patches 2-6 introduce some functionality that's advertised to the guest as having to work all at once or not at all. Also, the savevm version is bumped only once but save/restore state is added in each of the patches. T

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Amit Shah
On (Wed) Dec 23 2009 [20:02:19], Markus Armbruster wrote: > Amit Shah writes: > > > On (Wed) Dec 23 2009 [14:54:55], Markus Armbruster wrote: > >> Amit Shah writes: > >> > >> > This patch migrates virtio-console to the qdev infrastructure and > >> > creates a new virtio-serial bus on which mult

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Markus Armbruster
Amit Shah writes: > On (Wed) Dec 23 2009 [14:54:55], Markus Armbruster wrote: >> Amit Shah writes: >> >> > This patch migrates virtio-console to the qdev infrastructure and >> > creates a new virtio-serial bus on which multiple ports are exposed as >> > devices. The bulk of the code now resides

[Qemu-devel] Re: [PATCH] Use vpath directive

2009-12-23 Thread Juan Quintela
Paolo Bonzini wrote: > The vpath directive has two advantages over the VPATH variable: > 1) it allows to skip searching of .o files; 2) the default semantics > are to append to the vpath, so there is no confusion between "VPATH=xyz" > and "VPATH+=xyz". > > Since "vpath %.c %.h PATH" is not valid,

Re: [Qemu-devel] [PATCH 11/19] use a bottom half to run timers

2009-12-23 Thread Marcelo Tosatti
On Mon, Dec 21, 2009 at 09:09:22AM +0100, Paolo Bonzini wrote: > Make the timer subsystem register its own bottom half instead of > placing the bottom half code in the heart of the main loop. To > test if an alarm timer is pending, just check if the bottom half is > scheduled. > > Signed-off-by:

[Qemu-devel] [PATCH] linuxboot.bin is a generated file

2009-12-23 Thread Juan Quintela
Signed-off-by: Juan Quintela --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index cdd6aad..d7d2146 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ qemu-monitor.texi patches pc-bios/bios-pq/status pc-bios/vgabios-pq/st

Re: [Qemu-devel] CELF Project Proposal - Device tree support for QEMU system emulation.

2009-12-23 Thread Rob Landley
On Thursday 17 December 2009 14:29:47 Anthony Liguori wrote: > Rob Landley wrote: > > For background of CELF project proposals, see: > > > > http://elinux.org/CELF_Open_Project_Proposal_2010 > > > > Summary: > > > > Integrate a flattened device tree parser into the emulator QEMU, so QEMU > > can

Re: [Qemu-devel] [PATCH 13/19] move tcg_has_work to cpu-exec.c and rename it

2009-12-23 Thread Paolo Bonzini
On 12/23/2009 06:59 PM, Marcelo Tosatti wrote: On Mon, Dec 21, 2009 at 09:09:24AM +0100, Paolo Bonzini wrote: tcg_has_work is the only user of cpu-exec.c's qemu_cpu_has_work export. Just move everything into cpu-exec.c. cpu_has_work is going to be used by Glauber's KVM SMP patchset soon. Is

Re: [Qemu-devel] [PATCH 13/19] move tcg_has_work to cpu-exec.c and rename it

2009-12-23 Thread Marcelo Tosatti
On Mon, Dec 21, 2009 at 09:09:24AM +0100, Paolo Bonzini wrote: > tcg_has_work is the only user of cpu-exec.c's qemu_cpu_has_work export. > Just move everything into cpu-exec.c. cpu_has_work is going to be used by Glauber's KVM SMP patchset soon.

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 05:04:19PM +1030, Rusty Russell wrote: > On Wed, 23 Dec 2009 01:21:43 am Anthony Liguori wrote: > > On 12/22/2009 05:26 AM, Michael S. Tsirkin wrote: > > > On Tue, Dec 08, 2009 at 06:18:18PM +0200, Michael S. Tsirkin wrote: > > > > > >> The following fixes a class of lon

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 03:13:05PM +, Paul Brook wrote: > > > > > Given we need both, why not actually defined an API that gives you > > > > > this? > > > > > > > > Because, I do not want to define APIs, I want to reuse an existing one. > > > > > > Except that, say you said later in your email,

[Qemu-devel] [PATCH, RESEND] usb-ohci: Fix endianness issue

2009-12-23 Thread Michael Buesch
This fixes a possible endianness issue in the usb-ohci hw module. hcca.frame and ohci->frame_number are 16bit, so use cpu_to_le16(). Signed-off-by: Michael Buesch --- Resend. This patch was already sent on 2009/07/08, but the problem is still present in trunk. --- hw/usb-ohci.c |4 ++--

[Qemu-devel] [PATCH 1/2] virtio-blk: add max sectors feature (qemu)

2009-12-23 Thread Avishay Traeger1
This is the accompanying qemu patch for the maximum number of total sectors in an I/O feature. Please CC me on replies, as I am not subscribed. Thanks, Avishay Signed-off-by: Avishay Traeger --- diff --git a/block.c b/block.c index 3f3496e..9fa97b8 100644 --- a/block.c +++ b/block.c @@ -807,6

[Qemu-devel] [PATCH 1/2] virtio-blk: add max sectors feature (virtio_blk driver)

2009-12-23 Thread Avishay Traeger1
This is a revised patch that allows the guest and host to negotiate the maximum number of total sectors in an I/O. This feature has already been added by Rusty to the virtio spec. Please CC me on replies, as I am not subscribed. Thanks, Avishay Signed-off-by: Avishay Traeger --- diff --git a

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Paul Brook
> > > > Given we need both, why not actually defined an API that gives you > > > > this? > > > > > > Because, I do not want to define APIs, I want to reuse an existing one. > > > > Except that, say you said later in your email, no API exists for doing > > atomic accesses, so you need different code

[Qemu-devel] [PULL] qemu/master: pci cleanups and a bugfix

2009-12-23 Thread Michael S. Tsirkin
This includes pci cleanups, which I think are very safe. They have been out for quite a while. It also puts back interrupt disable bit support, which was mistakenly reverted on master. The following changes since commit 59d1c1c2d774cccb0a88ff73501f97bea190c154: Scott Tsai (1): USB: Imp

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Amit Shah
On (Wed) Dec 23 2009 [14:54:55], Markus Armbruster wrote: > Amit Shah writes: > > > This patch migrates virtio-console to the qdev infrastructure and > > creates a new virtio-serial bus on which multiple ports are exposed as > > devices. The bulk of the code now resides in a new file with > > vir

[Qemu-devel] [PATCH] e1000: add link to data sheet

2009-12-23 Thread Michael S. Tsirkin
Link to data sheet at intel.com so people can find it. Signed-off-by: Michael S. Tsirkin --- hw/e1000.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 51c9d7d..fd3059a 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1,6 +1,9 @@ /* * QEMU

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 01:32:53PM +, Paul Brook wrote: > On Wednesday 23 December 2009, Michael S. Tsirkin wrote: > > On Wed, Dec 23, 2009 at 12:25:46PM +, Paul Brook wrote: > > > > > > So possibly this means that we > > > > > > could optimize the barrier away, but I don't think this amoun

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Paul Brook
On Wednesday 23 December 2009, Michael S. Tsirkin wrote: > On Wed, Dec 23, 2009 at 12:25:46PM +, Paul Brook wrote: > > > > > So possibly this means that we > > > > > could optimize the barrier away, but I don't think this amounts to > > > > > a serious issue, I guess portability/readability is

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 12:25:46PM +, Paul Brook wrote: > > > > So possibly this means that we > > > > could optimize the barrier away, but I don't think this amounts to a > > > > serious issue, I guess portability/readability is more important. > > > > > > The more important issue is that regu

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Paul Brook
> > > So possibly this means that we > > > could optimize the barrier away, but I don't think this amounts to a > > > serious issue, I guess portability/readability is more important. > > > > The more important issue is that regular devices which to not require > > coherency or ordering can omit th

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 01:58:04PM +0200, Michael S. Tsirkin wrote: > > Where does it say that stw_phys is atomic? > > > > By my reading stw_phys is implemented using memcpy. This means that it is > > almost certainly not atomic. My guess is that this works entirely by > > chance, > > because

[Qemu-devel] [PATCH] Added 'access' option to -drive flag

2009-12-23 Thread Naphtali Sprei
Added 'access' option to -drive flag The new option is: access=[rw|ro|auto] rw: open the drive's file with Read and Write permission, don't continue if failed ro: open the file only with Read permission auto: open the file with Read and Write permission, if failed, try only Read permision For c

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Wed, Dec 23, 2009 at 11:36:34AM +, Paul Brook wrote: > > > I mean have a single function that does both the atomic load/store and > > > the memory barrier. Instead of: > > > > > > stw_phys(addr, val) > > > barrier(); > > > > > > We do: > > > > > > stw_phys_barrier(addr, val). > > > >

[Qemu-devel] Re: Latest git version fails to compile

2009-12-23 Thread Nigel Horne
Is your OS 32- or 64-bit? How do you configure? 64-bit. By running the configure command (is there another way?) with no arguments. Make sure to make distclean before building anything. Naturally I did that before posting here. Laurent -Nigel

[Qemu-devel] Re: [ANNOUNCE] qemu-kvm-0.12.1.1

2009-12-23 Thread Avi Kivity
On 12/23/2009 12:58 PM, Thomas Treutner wrote: On Wednesday 23 December 2009 11:24:04 Avi Kivity wrote: Please post a full log, after 'make clean'. http://pastebin.com/f404c8648 Oh, I missed it at first - looks like libxenguest and libxenctrl conflict. Copying Gerd for an opin

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Paul Brook
> > I mean have a single function that does both the atomic load/store and > > the memory barrier. Instead of: > > > > stw_phys(addr, val) > > barrier(); > > > > We do: > > > > stw_phys_barrier(addr, val). > > Well, I think it's a good idea to use Linux APIs instead of > inventing our own. A

Re: [Qemu-devel] Re: cpuid problem in upstream qemu with kvm

2009-12-23 Thread Paolo Bonzini
On 12/22/2009 11:56 PM, Jamie Lokier wrote: Are you joking? Even as a casual users, when would you ever run Windows without networking these days???! I don't think you can even buy a computer without networking any more:-) Probably not. :) Or do you mean something else by "networked images"

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Paul Brook
> The problem is that the whole define is just plain wrong which tells me > that the code is using the bswap functions incorrectly. This really > needs to be fixed by someone who knows the dbdma device. I don't see how > calling incorrect calls even more incorrect makes any difference. The real pr

Re: [Qemu-devel] Latest git version fails to compile

2009-12-23 Thread Laurent Desnogues
On Wed, Dec 23, 2009 at 11:44 AM, Nigel Horne wrote: > Laurent Desnogues wrote: >> >> On Wed, Dec 23, 2009 at 11:04 AM, Nigel Horne wrote: >> >>> >>> I get this error on my Debian box: >>> >>> ... >>> CC alpha-linux-user/fpu/softfloat.o >>> In file included from /home/njh/src/qemu/fpu/softfloat.h

Re: [Qemu-devel] Latest git version fails to compile

2009-12-23 Thread Nigel Horne
Laurent Desnogues wrote: On Wed, Dec 23, 2009 at 11:04 AM, Nigel Horne wrote: I get this error on my Debian box: ... CC alpha-linux-user/fpu/softfloat.o In file included from /home/njh/src/qemu/fpu/softfloat.h:523, from /home/njh/src/qemu/fpu/softfloat.c:35: ... /home/njh/src/qemu/fpu/softf

Re: [Qemu-devel] cpuid problem in upstream qemu with kvm

2009-12-23 Thread Avi Kivity
On 12/22/2009 06:12 PM, Anthony Liguori wrote: I think the only two Fully Correct approachs are to support a very specific CPU (e.g. Xeon-X5270) or provide the ability to individually tweak cpu flags. Yes. By a curious coincidence these are what the hardware vendors define (unlike compat c

Re: [Qemu-devel] Latest git version fails to compile

2009-12-23 Thread Laurent Desnogues
On Wed, Dec 23, 2009 at 11:04 AM, Nigel Horne wrote: > I get this error on my Debian box: > > ... > CC alpha-linux-user/fpu/softfloat.o > In file included from /home/njh/src/qemu/fpu/softfloat.h:523, > from /home/njh/src/qemu/fpu/softfloat.c:35: > ... > /home/njh/src/qemu/fpu/softfloat-specialize.

Re: [Qemu-devel] [PATCH 0/5] tcg conditional set, round 4

2009-12-23 Thread Laurent Desnogues
On Tue, Dec 22, 2009 at 3:46 PM, Laurent Desnogues wrote: > On Tue, Dec 22, 2009 at 1:02 AM, Richard Henderson wrote: >> On 12/21/2009 03:08 PM, Laurent Desnogues wrote: >>> >>> If you wanted to use movcond, you'd have to make >>> cond + move a special case... >> >> You'd certainly want the ARM f

[Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Alexander Graf
On 23.12.2009, at 11:06, Aurelien Jarno wrote: > On Wed, Dec 23, 2009 at 10:29:53AM +0100, Alexander Graf wrote: >> >> On 23.12.2009, at 07:12, Aurelien Jarno wrote: >> >>> On Tue, Dec 22, 2009 at 02:45:17PM +0100, Alexander Graf wrote: When we get an MMIO request, we always get variables

[Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Aurelien Jarno
On Wed, Dec 23, 2009 at 10:29:53AM +0100, Alexander Graf wrote: > > On 23.12.2009, at 07:12, Aurelien Jarno wrote: > > > On Tue, Dec 22, 2009 at 02:45:17PM +0100, Alexander Graf wrote: > >> When we get an MMIO request, we always get variables in host endianness. > >> The > >> only time we need t

[Qemu-devel] Latest git version fails to compile

2009-12-23 Thread Nigel Horne
I get this error on my Debian box: ... CC alpha-linux-user/fpu/softfloat.o In file included from /home/njh/src/qemu/fpu/softfloat.h:523, from /home/njh/src/qemu/fpu/softfloat.c:35: ... /home/njh/src/qemu/fpu/softfloat-specialize.h: In function ‘float_raise’: /home/njh/src/qemu/fpu/softfloat-speci

[Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Alexander Graf
On 23.12.2009, at 07:12, Aurelien Jarno wrote: > On Tue, Dec 22, 2009 at 02:45:17PM +0100, Alexander Graf wrote: >> When we get an MMIO request, we always get variables in host endianness. The >> only time we need to actually reverse byte order is when we read bytes from >> guest memory. >> >> A

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Markus Armbruster
Amit Shah writes: > On (Tue) Dec 22 2009 [18:55:16], Alexander Graf wrote: >> Amit Shah wrote: >> > This patch migrates virtio-console to the qdev infrastructure and >> > creates a new virtio-serial bus on which multiple ports are exposed as >> > devices. The bulk of the code now resides in a new

Re: [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple devices and ports

2009-12-23 Thread Markus Armbruster
Anthony Liguori writes: > On 12/22/2009 11:49 AM, Amit Shah wrote: >> This patch migrates virtio-console to the qdev infrastructure and >> creates a new virtio-serial bus on which multiple ports are exposed as >> devices. The bulk of the code now resides in a new file with >> virtio-console.c bei

[Qemu-devel] Re: [PATCH-RFC 0/3] qemu: memory barriers in virtio

2009-12-23 Thread Michael S. Tsirkin
On Tue, Dec 22, 2009 at 10:58:16PM +, Paul Brook wrote: > > > Given this is supposed to be portable code, I wonder if we should have > > > atomic ordered memory accessors instead. > > > > > > Paul > > > > Could you clarify please? > > > > The infiniband bits I used as base are very portable,