Re: [Qemu-devel] [PATCH 00/18] target-arm cleanup

2009-10-20 Thread Juha.Riihimaki
On Oct 19, 2009, at 16:23, ext Aurelien Jarno wrote: I think I have a couple of other fixes and patches on top of that as well, but I'd rather wait until you get this bunch committed and then format the patches against the new mainline so that they apply. Thanks I have seen your patch, I'll

[Qemu-devel] QEMU Target CPU support for PowerPC MPC8270

2009-10-20 Thread Johnny Giacomoni
Hi everybody ! I currently work on Linux (Open SUSE) to emulate a CPU (MC8270, FreeScale). I know that QEMU is designed to simulate Operating Systems, but I just want to emulate a CPU. It seem to be possible with QEMU. So, by seeing on http://www.qemu.org/status.html that PowerPC target is

[Qemu-devel] [PATCH 0/4] Resend: Fixes for the qemu char layer

2009-10-20 Thread Amit Shah
Hello, These are fixes for qemu's char layer. All of the patches have been sent earlier, this is just a resend with the fix for console char devs included in the series that was sent separately earlier. Amit Shah (4): char: check for initial_reset_issued unnecessary char: rename

[Qemu-devel] [PATCH 1/4] char: check for initial_reset_issued unnecessary

2009-10-20 Thread Amit Shah
At init, qemu_chr_reset is always called with initial_reset_issued set to 1. So checking for it to be set is not necessary. Signed-off-by: Amit Shah amit.s...@redhat.com --- qemu-char.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 2/4] char: rename CHR_EVENT_RESET to CHR_EVENT_OPENED

2009-10-20 Thread Amit Shah
The char event RESET is emitted when a char device is opened. Give it a better name. Signed-off-by: Amit Shah amit.s...@redhat.com --- gdbstub.c |2 +- hw/baum.c |2 +- hw/usb-serial.c |2 +- monitor.c |2 +- qemu-char.c |2 +- qemu-char.h |2 +-

[Qemu-devel] [PATCH 3/4] console: call qemu_chr_reset() in text_console_init

2009-10-20 Thread Amit Shah
text_console_init is called as the initialiser function for the 'vc' char backend. This function doesn't call qemu_chr_reset(), that emits the OPENED event. This fixes the help text and initial prompt display when the monitor is started in its default options -- as a vc backend to sdl or vnc.

[Qemu-devel] [PATCH 4/4] char: emit the OPENED event only when a new char connection is opened

2009-10-20 Thread Amit Shah
The OPENED event gets sent also when qemu resets its state initially. The consumers of the event aren't interested in receiving this event on reset. Signed-off-by: Amit Shah amit.s...@redhat.com --- qemu-char.c |7 ++- qemu-char.h |2 ++ 2 files changed, 8 insertions(+), 1

[Qemu-devel] [PATCH v9 0/3] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-20 Thread Amit Shah
Hello, This patch series fixes a few problems since the last send, mainly in the save/restore code and a few bugs shown by the automated test suite (located in a separate git repo, link below). The automated test suite and a standalone interactive test program are located at

[Qemu-devel] [PATCH v9 1/3] qdev: add string property.

2009-10-20 Thread Amit Shah
From: Gerd Hoffmann kra...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com Signed-off-by: Amit Shah amit.s...@redhat.com --- hw/qdev-properties.c | 28 hw/qdev.h|4 2 files changed, 32 insertions(+), 0 deletions(-) diff --git

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

2009-10-20 Thread Amit Shah
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 being just a simple qdev device. This interface enables spawning of multiple

[Qemu-devel] [PATCH v9 3/3] virtio-console: Add a new virtserialport device for generic serial port support

2009-10-20 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

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Gerd Hoffmann
On 10/20/09 05:16, Mulyadi Santosa wrote: As these message scrolls fast, I find it more intuitive if we could just press a key to pause the guest, giving us enough time to capture the display and resume the execution. If we switch to qemu monitor first, most of the time we already lost the

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Daniel P. Berrange
On Tue, Oct 20, 2009 at 10:16:09AM +0700, Mulyadi Santosa wrote: Hi Anthony... On Tue, Oct 20, 2009 at 5:20 AM, Anthony Liguori anth...@codemonkey.ws wrote: Mulyadi Santosa wrote: IMO, it would be faster if we provide keyboard shortcuts that will stop and resume VM execution right

[Qemu-devel] Re: [PATCH 2/9] Add KVM support for S390x

2009-10-20 Thread Alexander Graf
On 20.10.2009, at 10:36, Carsten Otte wrote: Alexander Graf wrote: ++static int s390_cpu_initial_reset(CPUState *env) +{ +/* XXX */ +fprintf(stderr, XXX SIGP init\n); +return -1; +} That one will really break SMP. Most of the initial reset is handled in-kernel for your

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

2009-10-20 Thread Gerd Hoffmann
+static VirtIOSerialPortInfo virtcon_info = { +.qdev.name = virtconsole, +.qdev.size = sizeof(VirtConsole), +.init = vcon_initfn, +.have_data = flush_buf, +.qdev.props = (Property[]) { +DEFINE_PROP_CHR(chardev, VirtConsole, chr), +

Re: [Qemu-devel] [PATCH v9 0/3] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-20 Thread Gerd Hoffmann
Hi, This patch series fixes a few problems since the last send, mainly in the save/restore code and a few bugs shown by the automated test suite (located in a separate git repo, link below). A bit hard to review in this form, especially the virtio-console.c changes, because you put

[Qemu-devel] [PATCH] raw/linux-aio: Also initialize POSIX AIO

2009-10-20 Thread Kevin Wolf
When using Linux AIO raw still falls back to POSIX AIO sometimes, so we should initialize it. Not initializing it happens to work if POSIX AIO is used by another drive, or if the format is not specified (probing the format uses POSIX AIO) or by pure luck (e.g. it doesn't seem to happen any more

Re: [Qemu-devel] [PATCH v9 3/3] virtio-console: Add a new virtserialport device for generic serial port support

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [10:51:30], Gerd Hoffmann wrote: @@ -107,3 +107,41 @@ static void virtcon_register(void) virtio_serial_port_qdev_register(virtcon_info); } device_init(virtcon_register) +static VirtIOSerialPortInfo virtserial_port_info = { +.qdev.name = virtserialport,

Re: [Qemu-devel] [PATCH v9 0/3] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [10:56:40], Gerd Hoffmann wrote: Hi, This patch series fixes a few problems since the last send, mainly in the save/restore code and a few bugs shown by the automated test suite (located in a separate git repo, link below). A bit hard to review in this form,

Re: [Qemu-devel] Starting QEMU by PHP/Apache

2009-10-20 Thread Richard W.M. Jones
On Tue, Oct 13, 2009 at 01:26:25PM +0200, Bolle wrote: Did anybody had success to start a QEMU instance by a PHP script under the Apache web server ? I allow the Apache user with the help of sudoers to start the QEMU binary as root. I've hacked the qemu-socket.c to set the access mode to

[Qemu-devel] Re: [PATCH] raw/linux-aio: Also initialize POSIX AIO

2009-10-20 Thread Kevin Wolf
Am 20.10.2009 11:33, schrieb Kevin Wolf: When using Linux AIO raw still falls back to POSIX AIO sometimes, so we should initialize it. Not initializing it happens to work if POSIX AIO is used by another drive, or if the format is not specified (probing the format uses POSIX AIO) or by pure

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Kevin Wolf
Am 20.10.2009 00:20, schrieb Anthony Liguori: Mulyadi Santosa wrote: IMO, it would be faster if we provide keyboard shortcuts that will stop and resume VM execution right from SDL guest interface, rather than switching to console monitor first and type s or c respectively. Is this

[Qemu-devel] Add iterative phase to qemu_savevm_state to allow live storage migration

2009-10-20 Thread Liran Schour
qemu_savevm_state will call all registered components with 3 phases: START, PART, END. Only the PART phase is iterative. In case of storage live migration we have lot more data to copy then memory and usually the dirty rate is much less then memory dirty rate. I thought about adding an iterative

Re: [Qemu-devel] [PATCH v9 0/3] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-20 Thread Dor Laor
On 10/20/2009 09:13 AM, Amit Shah wrote: Hello, This patch series fixes a few problems since the last send, mainly in the save/restore code and a few bugs shown by the automated test suite (located in a separate git repo, link below). The automated test suite and a standalone interactive test

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

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [12:08:06], Richard W.M. Jones wrote: On Tue, Oct 20, 2009 at 12:43:44PM +0530, Amit Shah wrote: DEF(virtioconsole, HAS_ARG, QEMU_OPTION_virtiocon, \ -virtioconsole c\n \ -set virtio console\n) +define virtio console\n)

Re: [Qemu-devel] [PATCH v9 0/3] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [13:54:33], Dor Laor wrote: On 10/20/2009 09:13 AM, Amit Shah wrote: Hello, This patch series fixes a few problems since the last send, mainly in the save/restore code and a few bugs shown by the automated test suite (located in a separate git repo, link below). The

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

2009-10-20 Thread Richard W.M. Jones
On Tue, Oct 20, 2009 at 05:31:23PM +0530, Amit Shah wrote: How about (deprecated)? (We need to have this in some general policy of deprecating command-line options.) No, the important thing is that we can detect somehow that multiport virtio console is possible for some random version of qemu

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

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [13:05:59], Richard W.M. Jones wrote: On Tue, Oct 20, 2009 at 05:31:23PM +0530, Amit Shah wrote: How about (deprecated)? (We need to have this in some general policy of deprecating command-line options.) No, the important thing is that we can detect somehow that

Re: [Qemu-devel] [RFC] in-kernel irqchip : split devices

2009-10-20 Thread Glauber Costa
Specially Avi, comments on this one? 2009/10/14 Glauber Costa glom...@redhat.com: Hello people, As I promised, I am sending a very brief PoC wrt split devices and in-kernel irqchip. In this mail, I am including only the ioapic version for apreciation. I also have i8259, and apic will

Re: [Qemu-devel] [PATCH v9 3/3] virtio-console: Add a new virtserialport device for generic serial port support

2009-10-20 Thread Gerd Hoffmann
On 10/20/09 11:48, Amit Shah wrote: On (Tue) Oct 20 2009 [10:51:30], Gerd Hoffmann wrote: @@ -107,3 +107,41 @@ static void virtcon_register(void) virtio_serial_port_qdev_register(virtcon_info); } device_init(virtcon_register) +static VirtIOSerialPortInfo virtserial_port_info = {

[Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-20 Thread Glauber Costa
Currently, the msrs involved in setting up pvclock are not saved over migration and/or save/restore. This patch puts their value in special fields in our CPUState, and deal with them using vmstate. kvm also has to account for it, by including them in the msr list for the ioctls. This is a

Re: [Qemu-devel] QEMU Target CPU support for PowerPC MPC8270

2009-10-20 Thread Lennart Sorensen
On Tue, Oct 20, 2009 at 08:25:27AM +0200, Johnny Giacomoni wrote: Hi everybody ! I currently work on Linux (Open SUSE) to emulate a CPU (MC8270, FreeScale). I know that QEMU is designed to simulate Operating Systems, but I just want to emulate a CPU. It seem to be possible with QEMU.

[Qemu-devel] Re: [PATCH 00/25] VMState cleanups and conversion of network drivers

2009-10-20 Thread Paolo Bonzini
On 10/19/2009 09:15 PM, Jamie Lokier wrote: __builtin_types_compatible_p(), __builtin_choose_exper and __attribute__((__error__)) are good for informative error messages. Unfortunately __attribute__((__error__)) cannot be applied in this case for several reasons: 1) it cannot apply to types

[Qemu-devel] [PATCH 0/2] Port LSI SCSI to vmstate

2009-10-20 Thread Juan Quintela
It just needs to be able to transmit uint32_t as buffers. I tried to change code to UINT32_ARRAY, but then we broke backwards compatibilty. Later, Juan. Juan Quintela (2): vmstate: Add VMSTATE_BUFFER_UNSAFE lsi_scsi: port to vmstate hw/hw.h |9 ++ hw/lsi53c895a.c | 242

[Qemu-devel] [PATCH 2/2] lsi_scsi: port to vmstate

2009-10-20 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- hw/lsi53c895a.c | 242 +++ 1 files changed, 83 insertions(+), 159 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index a4d3a57..156727f 100644 --- a/hw/lsi53c895a.c +++

[Qemu-devel] [PATCH] Makefile: Change make to be quiet again when doing nothing

2009-10-20 Thread Stefan Weil
This patch makes make quiet again. There is already a similar patch from Juan Quintela, but maybe this shorter form is preferred. Signed-off-by: Stefan Weil w...@mail.berlios.de --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Anthony Liguori
Kevin Wolf wrote: Am 20.10.2009 00:20, schrieb Anthony Liguori: Mulyadi Santosa wrote: IMO, it would be faster if we provide keyboard shortcuts that will stop and resume VM execution right from SDL guest interface, rather than switching to console monitor first and type s or c

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Daniel P. Berrange
On Tue, Oct 20, 2009 at 12:40:08PM +0200, Kevin Wolf wrote: Am 20.10.2009 00:20, schrieb Anthony Liguori: Mulyadi Santosa wrote: IMO, it would be faster if we provide keyboard shortcuts that will stop and resume VM execution right from SDL guest interface, rather than switching to console

[Qemu-devel] Re: [PATCH] Makefile: Change make to be quiet again when doing nothing

2009-10-20 Thread Paolo Bonzini
On 10/20/2009 06:17 PM, Stefan Weil wrote: This patch makes make quiet again. There is already a similar patch from Juan Quintela, but maybe this shorter form is preferred. This patch would reintroduce an ordering problem between building config*.h and building the tools, whose fix is what

Re: [Qemu-devel] [PATCH 2/2] multiboot: Limit number of multiboot modules

2009-10-20 Thread Adam Lackorzynski
Hi, On Mon Oct 19, 2009 at 10:30:12 +0200, Kevin Wolf wrote: Am 14.10.2009 18:11, schrieb Adam Lackorzynski: Subject: [PATCH 3/3] multiboot: Support arbitrary number of modules Signed-off-by: Adam Lackorzynski a...@os.inf.tu-dresden.de Looks good in general. I'm adding some minor

Re: [Qemu-devel] [PATCH] qemu: work around for posix-aio-compat

2009-10-20 Thread Mark McLoughlin
On Thu, 2009-10-08 at 22:37 +0200, Michael S. Tsirkin wrote: With commit ee3993069ff55fa6f1c64daf1e09963e340db8e4, posix-aio-compat: avoid signal race when spawning a thread winxp installation on a raw format file fails during disk format, with a message your disk may be damaged. This

[Qemu-devel] Re: [PATCH] qemu: work around for posix-aio-compat

2009-10-20 Thread Paolo Bonzini
On 10/20/2009 08:39 PM, Mark McLoughlin wrote: On Thu, 2009-10-08 at 22:37 +0200, Michael S. Tsirkin wrote: With commit ee3993069ff55fa6f1c64daf1e09963e340db8e4, posix-aio-compat: avoid signal race when spawning a thread winxp installation on a raw format file fails during disk format, with a

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-20 Thread Mulyadi Santosa
Hi... On Wed, Oct 21, 2009 at 12:08 AM, Daniel P. Berrange berra...@redhat.com wrote: The problem with adding lots of magic key-sequences, is that the more you add, the more likely they are to clash with something that the guest OS wants to use. You may make this use case work, but break

[Qemu-devel] [PATCH] vmstate: fix breakage by 7e72abc382b700a72549e8147bdea413534eeedc

2009-10-20 Thread TeLeMan
cirrus_post_load() will be executed twice when loading vm states and then the wrong physical memory will be registered. This issue may lead to crash qemu. --- hw/cirrus_vga.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index

[Qemu-devel] Should MSR EFER and MSR STAR be saved to vmstate on target-i386?

2009-10-20 Thread TeLeMan
I saw MSR EFER and MSR STAR were saved to vmstate on target-x86_64 only.But MSR EFER and MSR STAR can be accessed on target-i386,so should MSR EFER and MSR STAR be saved to vmstate on target-i386 too? -- View this message in context:

Re: [Qemu-devel] [PATCH v9 3/3] virtio-console: Add a new virtserialport device for generic serial port support

2009-10-20 Thread Amit Shah
On (Tue) Oct 20 2009 [16:02:16], Gerd Hoffmann wrote: On 10/20/09 11:48, Amit Shah wrote: On (Tue) Oct 20 2009 [10:51:30], Gerd Hoffmann wrote: @@ -107,3 +107,41 @@ static void virtcon_register(void) virtio_serial_port_qdev_register(virtcon_info); } device_init(virtcon_register)

[Qemu-devel] Re: Release plan for 0.12.0

2009-10-20 Thread Takahiro Hirofuchi
Hello, 2009/9/30 Anthony Liguori aligu...@us.ibm.com: Hi, Now that 0.11.0 is behind us, it's time to start thinking about 0.12.0. o storage live migration Sorry for a bit off topic. But, my special NBD server can do this independently of VMM implementations. See

[Qemu-devel] Re: [PATCH 1/9] Export function for VA defined ram allocation

2009-10-20 Thread Carsten Otte
Alexander Graf wrote: S390 requires vmas for guests to be 256 GB. So we need to directly export mmaps try to use this vma as start address feature to not accidently get over that limit. Hmmh, now that x86 has solved all the problems we should probably move away from using the same page table

[Qemu-devel] Re: [PATCH 2/9] Add KVM support for S390x

2009-10-20 Thread Carsten Otte
Alexander Graf wrote: ++static int s390_cpu_initial_reset(CPUState *env) +{ +/* XXX */ +fprintf(stderr, XXX SIGP init\n); +return -1; +} That one will really break SMP. Most of the initial reset is handled in-kernel for your convenience, therefore please think about using Kuli as

[Qemu-devel] Re: [PATCH 0/9] S390x KVM support

2009-10-20 Thread Carsten Otte
Alexander Graf wrote: This is the resulting code. Please comment on things you like and also on the ones you don't :-). I've reviewed and tested it, great work Alex :-) Also to actually run this code you need a patch for an ugly bug in the kernel module: http://alex.csgraf.de/psw.patch Well,

[Qemu-devel] [ANNOUNCE] Sheepdog: Distributed Storage System for KVM

2009-10-20 Thread MORITA Kazutaka
Hi everyone, Sheepdog is a distributed storage system for KVM/QEMU. It provides highly available block level storage volumes to VMs like Amazon EBS. Sheepdog supports advanced volume management features such as snapshot, cloning, and thin provisioning. Sheepdog runs on several tens or hundreds