[Qemu-devel] [PATCH v2 02/10] fdc: set busy bit when starting a command

2012-01-15 Thread Hervé Poussineau
This bit must be active while a command is currently executed. Signed-off-by: Hervé Poussineau --- hw/fdc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index c1898a6..1b9f303 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -1446,7 +1446,6 @@ static void

[Qemu-devel] [PATCH v2 10/10] fdc: DIR (Digital Input Register) should return status of current drive...

2012-01-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/fdc.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 61d70eb..e68a1cb 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -215,6 +215,7 @@ static void fdctrl_reset_fifo(FDCtrl *fdctrl); static int fdctrl_tra

[Qemu-devel] [PATCH v2 08/10] fdc: check if media rate is correct before doing any transfer

2012-01-15 Thread Hervé Poussineau
The programmed rate has to be the same as the required rate for the floppy format ; if that's not the case, the transfer should abort. Revalidate floppy after migration, so media_rate field doesn't have to be saved/restored. Signed-off-by: Hervé Poussineau --- hw/fdc.c | 25 ++

[Qemu-devel] [PATCH v2 04/10] fdc: emulate stepping 0

2012-01-15 Thread Hervé Poussineau
Stepping 1 (S82078B) is not fully i82078 compatible, so better stick to initial revision Signed-off-by: Hervé Poussineau --- hw/fdc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index bedaeca..0e167f8 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -138

[Qemu-devel] [PATCH v2 05/10] fdc: handle read-only floppies (abort early on write commands)

2012-01-15 Thread Hervé Poussineau
A real floppy doesn't attempt to write to read-only media either. Signed-off-by: Hervé Poussineau --- hw/fdc.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 0e167f8..078ff0c 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -300,6 +300,7 @@ e

[Qemu-devel] [PATCH v2 03/10] fdc: most control commands do not generate interrupts

2012-01-15 Thread Hervé Poussineau
In fact, only three control commands generate an interrupt: read_id, recalibrate and seek Signed-off-by: Hervé Poussineau --- hw/fdc.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 1b9f303..bedaeca 100644 --- a/hw/fdc.c +++ b/hw/fdc

[Qemu-devel] [PATCH v2 00/10] Misc fixes for floppy emulation

2012-01-15 Thread Hervé Poussineau
Here are misc fixes done by VirtualBox team. With these patches, floppy emulation is now good enough to run Xenix. Changes v1->v2: - updated commit messages - added missing 'break' and braces - moved patch 8 before patch 6 Hervé Poussineau (10): fdc: take side count into account fdc: set busy

[Qemu-devel] [PATCH v2 06/10] fdc: add CCR (Configuration Control Register) write register

2012-01-15 Thread Hervé Poussineau
DIR and CCR registers share the same address ; DIR is read-only while CCR is write-only Signed-off-by: Hervé Poussineau --- hw/fdc.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 078ff0c..6726450 100644 --- a/hw/fdc.c +++

[Qemu-devel] [PATCH v2 09/10] fdc: fix seek command, which shouldn't check tracks

2012-01-15 Thread Hervé Poussineau
The seek command just sends step pulses to the drive and doesn't care if there is a medium inserted of if it is banging the head against the drive. Signed-off-by: Hervé Poussineau --- hw/fdc.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.

Re: [Qemu-devel] [PATCH v3 3/8] prep_pci: Update I/O to MemoryRegion ops

2012-01-15 Thread Avi Kivity
On 01/13/2012 05:09 AM, Andreas Färber wrote: > Convert to new-style read/write callbacks. > > > -static uint32_t PPC_PCIIO_readl (void *opaque, target_phys_addr_t addr) > +static uint64_t ppc_pci_io_read(void *opaque, target_phys_addr_t addr, > +unsigned int size)

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-15 Thread Avi Kivity
On 01/13/2012 06:54 PM, Andreas Färber wrote: > > +static void megasas_unmap_sgl(struct megasas_cmd_t *cmd) > > +{ > > +int i, is_write = megasas_frame_is_write(cmd); > > + > > +for (i = 0; i < cmd->iov_cnt; i++) { > > +cpu_physical_memory_unmap(cmd->iov[i].iov_base, > > cmd->iov[i

[Qemu-devel] [Bug 916720] [NEW] select fails on windows because a non-socket fd is in the rfds set

2012-01-15 Thread Arie
Public bug reported: The select call in file main_loop.c at line 460 fails on windows because a non-socket fd is in the rfds set. As a result, gdb remote connections will never be accepted by qemu. The select function returns with -1. WSAGetLastError returns code 10038 (WSAENOTSOCK). I start qemu

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Paolo Bonzini
On 01/14/2012 01:39 PM, Michael Tokarev wrote: if (pid == 0) { -close(stderr_fd[0]); -ret = qemu_daemon(0, 0); - -/* Temporarily redirect stderr to the parent's pipe... */ -dup2(stderr_fd[1], STDERR_FILENO); -if (ret == -1) {

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Jan Kiszka
On 2011-12-19 15:13, Avi Kivity wrote: > Drop the use of cpu_register_phys_memory_client() in favour of the new > MemoryListener API. The new API simplifies the caller, since there is no > need to deal with splitting and merging slots; however this is not exploited > in this patch. This breaks gr

Re: [Qemu-devel] [PATCH] use different fd variables for device and socket, unbreak qemu-nbd -c

2012-01-15 Thread Paolo Bonzini
On 01/14/2012 12:41 PM, Michael Tokarev wrote: commit a61c67828dea7c64edaf226cadb45b4ffcc1d411 Author: Paolo Bonzini Date: Mon Sep 12 17:28:11 2011 +0200 qemu-nbd: use common main loop Using a single main loop for sockets will help yielding from the socket coroutine back to the

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Jan Kiszka
On 2012-01-15 11:49, Jan Kiszka wrote: > On 2011-12-19 15:13, Avi Kivity wrote: >> Drop the use of cpu_register_phys_memory_client() in favour of the new >> MemoryListener API. The new API simplifies the caller, since there is no >> need to deal with splitting and merging slots; however this is no

Re: [Qemu-devel] qemu-nbd daemonizing?

2012-01-15 Thread Paolo Bonzini
On 01/14/2012 10:26 AM, Michael Tokarev wrote: After looking at the yesterdays issue with non-absolute paths for qemu-nbd arguments and daemon(3), I've a question. Why qemu-nbd daemonizes, and does that only when device argument is given (dropping -v/verbose case for now)? This raises two quest

[Qemu-devel] [Bug 916720] Re: select fails on windows because a non-socket fd is in the rfds set

2012-01-15 Thread Paolo Bonzini
Do you know where the non-socket fd comes from? I have some patches to improve the situation on Win32 for the main loop, I'll send them next week to the mailing list. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launc

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2012-01-15 Thread Stefan Hajnoczi
On Sat, Jan 14, 2012 at 3:40 PM, Zhi Yong Wu wrote: > On Mon, Jan 9, 2012 at 9:00 PM, Stefan Hajnoczi wrote: >> On Mon, Jan 9, 2012 at 11:25 AM, Kevin Wolf wrote: >>> Am 20.12.2011 17:49, schrieb Stefan Hajnoczi: On Tue, Dec 20, 2011 at 3:25 PM, Michael Niehren <902...@bugs.launchpad.n

Re: [Qemu-devel] [PATCH] slirp: Remove unused variable and unused code

2012-01-15 Thread Jan Kiszka
On 2012-01-13 22:16, Stefan Weil wrote: > Am 05.01.2012 14:18, schrieb Stefan Weil: >> 9634d9031c140b24c7ca0d8872632207f6ce7275 disabled unused code. >> This patch removes what was left. >> >> If do_pty is 2, the function returns immediately, so any later checks >> for do_pty == 2 will always fail

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-15 Thread Stefan Hajnoczi
2012/1/14 Charles.Tsai-蔡清海-研究發展部 : >I tested Qemu 0.15 for Windows XP guest OS. But I found that the > Virtual Serial I/O driver failed in driver initialization. >The root cause of this problem is because the hardware resources(I/O > in this device) is not allocated to the virtual

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Avi Kivity
On 01/15/2012 12:52 PM, Jan Kiszka wrote: > On 2012-01-15 11:49, Jan Kiszka wrote: > > On 2011-12-19 15:13, Avi Kivity wrote: > >> Drop the use of cpu_register_phys_memory_client() in favour of the new > >> MemoryListener API. The new API simplifies the caller, since there is no > >> need to deal

Re: [Qemu-devel] [PATCH 2/3] acpi_piix4: Add stub functions for CPU eject callback

2012-01-15 Thread Avi Kivity
On 01/13/2012 01:11 PM, Vasilis Liaskovitis wrote: > Signed-off-by: Vasilis Liaskovitis > --- > hw/acpi_piix4.c | 15 +++ > 1 files changed, 15 insertions(+), 0 deletions(-) > > diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c > index d5743b6..8bf30dd 100644 > --- a/hw/acpi_piix4.c >

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Jan Kiszka
On 2012-01-15 13:35, Avi Kivity wrote: > On 01/15/2012 12:52 PM, Jan Kiszka wrote: >> On 2012-01-15 11:49, Jan Kiszka wrote: >>> On 2011-12-19 15:13, Avi Kivity wrote: Drop the use of cpu_register_phys_memory_client() in favour of the new MemoryListener API. The new API simplifies the ca

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Avi Kivity
On 01/15/2012 02:40 PM, Jan Kiszka wrote: > On 2012-01-15 13:35, Avi Kivity wrote: > > On 01/15/2012 12:52 PM, Jan Kiszka wrote: > >> On 2012-01-15 11:49, Jan Kiszka wrote: > >>> On 2011-12-19 15:13, Avi Kivity wrote: > Drop the use of cpu_register_phys_memory_client() in favour of the new > >

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Avi Kivity
On 01/15/2012 02:49 PM, Avi Kivity wrote: > On 01/15/2012 02:40 PM, Jan Kiszka wrote: > > On 2012-01-15 13:35, Avi Kivity wrote: > > > On 01/15/2012 12:52 PM, Jan Kiszka wrote: > > >> On 2012-01-15 11:49, Jan Kiszka wrote: > > >>> On 2011-12-19 15:13, Avi Kivity wrote: > > Drop the use of cpu_

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Michael Tokarev
On 15.01.2012 14:42, Paolo Bonzini wrote: > On 01/14/2012 01:39 PM, Michael Tokarev wrote: >> if (pid == 0) { >> -close(stderr_fd[0]); >> -ret = qemu_daemon(0, 0); >> - >> -/* Temporarily redirect stderr to the parent's pipe... */ >> -dup2(

Re: [Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2012-01-15 Thread Jan Kiszka
On 2012-01-15 13:50, Avi Kivity wrote: > On 01/15/2012 02:49 PM, Avi Kivity wrote: >> On 01/15/2012 02:40 PM, Jan Kiszka wrote: >>> On 2012-01-15 13:35, Avi Kivity wrote: On 01/15/2012 12:52 PM, Jan Kiszka wrote: > On 2012-01-15 11:49, Jan Kiszka wrote: >> On 2011-12-19 15:13, Avi Kivi

Re: [Qemu-devel] qemu-nbd daemonizing?

2012-01-15 Thread Michael Tokarev
On 15.01.2012 14:51, Paolo Bonzini wrote: > On 01/14/2012 10:26 AM, Michael Tokarev wrote: >> After looking at the yesterdays issue with non-absolute >> paths for qemu-nbd arguments and daemon(3), I've a >> question. >> >> Why qemu-nbd daemonizes, and does that only when device >> argument is given

Re: [Qemu-devel] [PATCH] use different fd variables for device and socket, unbreak qemu-nbd -c

2012-01-15 Thread Michael Tokarev
On 15.01.2012 14:45, Paolo Bonzini wrote: > On 01/14/2012 12:41 PM, Michael Tokarev wrote: >> commit a61c67828dea7c64edaf226cadb45b4ffcc1d411 >> Author: Paolo Bonzini >> Date: Mon Sep 12 17:28:11 2011 +0200 >> >> qemu-nbd: use common main loop >> >> Using a single main loop for sockets

Re: [Qemu-devel] The reversion of hot adding a storage disk to Linux guest.

2012-01-15 Thread Shu Ming
No other comments? Anyway, I think we need a way to hot unplug a storage disk from the guest totally exactly liking to remove a disk physically. After that unplugging, linux guest can not bring back the disk by any command. On 2012-1-12 16:57, Shu Ming wrote: Hi, I am testing the hot plug

[Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot

2012-01-15 Thread Avi Kivity
Otherwise, the dirty log information is lost in the kernel forever. Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly. Signed-off-by: Avi Kivity --- This patch gives me a deja vu - I'm sure I've fixed exactly the same issue before. Please test. kvm-all.c |4 1 f

Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot

2012-01-15 Thread Jan Kiszka
On 2012-01-15 15:17, Avi Kivity wrote: > Otherwise, the dirty log information is lost in the kernel forever. > > Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly. Confirmed, problems solved here. Thanks, Jan > > Signed-off-by: Avi Kivity > --- > > This patch gives me a

Re: [Qemu-devel] [PATCH] Add virtio-blk-drive-serial test

2012-01-15 Thread Anthony Liguori
On 01/13/2012 03:49 PM, Ryan Harper wrote: We can test out the virtio-blk drive serial number by generating and then reading it back via the file in sysfs. Signed-off-by: Ryan Harper Applied. Thanks. Regards, Anthony Liguori --- tests/virtio-blk-drive-serial.sh | 40 ++

[Qemu-devel] [PULL] Fix for kvm dirty logging

2012-01-15 Thread Avi Kivity
kvm dirty logging is broken in the presence of memory slots being removed; this breaks opensuse's boot screen. Following patch fixes: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent Avi Kivity (1): kvm: flush the dirty log when unregistering a slot kvm-all.c |4 ++

Re: [Qemu-devel] [PATCH] isapc: Fix segfault during initialization

2012-01-15 Thread Anthony Liguori
On 01/14/2012 07:12 AM, Jan Kiszka wrote: From: Jan Kiszka Linking the RTC device state to the PIIX does not belong into the common path that is shared with the isapc. QEMU crashes otherwise. Signed-off-by: Jan Kiszka Does isapc actually work for you? I tried to write a qemu-test test case

Re: [Qemu-devel] [PATCH] Add virtio-blk-drive-serial test

2012-01-15 Thread Anthony Liguori
On 01/13/2012 07:25 PM, Zhi Yong Wu wrote: On Sat, Jan 14, 2012 at 9:03 AM, Zhi Yong Wu wrote: On Sat, Jan 14, 2012 at 5:49 AM, Ryan Harper wrote: We can test out the virtio-blk drive serial number by generating and then reading it back via the file in sysfs. Signed-off-by: Ryan Harper ---

Re: [Qemu-devel] [PATCH] isapc: Fix segfault during initialization

2012-01-15 Thread Jan Kiszka
On 2012-01-15 15:38, Anthony Liguori wrote: > On 01/14/2012 07:12 AM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> Linking the RTC device state to the PIIX does not belong into the >> common path that is shared with the isapc. QEMU crashes otherwise. >> >> Signed-off-by: Jan Kiszka > > Does isapc a

Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot

2012-01-15 Thread Gerhard Wiesinger
On Sun, 15 Jan 2012, Jan Kiszka wrote: On 2012-01-15 15:17, Avi Kivity wrote: Otherwise, the dirty log information is lost in the kernel forever. Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly. Confirmed, problems solved here. Problem from: http://permalink.gmane.or

[Qemu-devel] [PATCH v2] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Michael Tokarev
qemu-nbd uses daemon(3) routine to daemonize, and while at it, it uses several hacks to make daemon(3) to work as intended. Instead of all these hacks, implement daemon(3) functionality (which is a very simple function) directly but in a way which is much more suitable for the use case. It lets us

[Qemu-devel] [PATCH 0/3] Support configurable CPU Model-Specific Registers (MSRs) in cpudefs

2012-01-15 Thread Josh Triplett
This patch series adds configuration options allowing CPU definitions to support rdmsr on arbitrary MSRs with corresponding values, and to GPF on unknown MSRs. This allows better emulation of CPU-specific behavior. I plan to use this to allow testing many of the CPU-specific tests in BITS (http:/

[Qemu-devel] [PATCH 1/3] Add cpudef option to GPF on unknown MSRs

2012-01-15 Thread Josh Triplett
qemu normally returns 0 for rdmsr of an unknown MSR, and silently ignores wrmsr of an unknown MSR. Add a new msr_gpf option to cpudef, which when enabled causes qemu to generate a GPF on any access to an unknown MSR. This option allows qemu to better support software which detects the availabilit

[Qemu-devel] [PATCH 2/3] Support arbitrary additional MSRs in cpu definitions

2012-01-15 Thread Josh Triplett
CPU definitions can now define arbitrary additional MSRs, and rdmsr will support those MSRs and return the corresponding values. Signed-off-by: Josh Triplett --- qemu-config.c |3 +++ target-i386/cpu.h |5 + target-i386/cpuid.c | 45 +

[Qemu-devel] [PATCH 3/3] Handle parse failures in CPU definitions, and avoid adding a partial cpudef

2012-01-15 Thread Josh Triplett
Without this change, a parse failure would stop the processing of the cpudef entry, but the partially-parsed CPU definition would still get added to the list of CPUs. Signed-off-by: Josh Triplett --- target-i386/cpuid.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Paolo Bonzini
On 01/15/2012 01:50 PM, Michael Tokarev wrote: On 15.01.2012 14:42, Paolo Bonzini wrote: On 01/14/2012 01:39 PM, Michael Tokarev wrote: if (pid == 0) { -close(stderr_fd[0]); -ret = qemu_daemon(0, 0); - -/* Temporarily redirect stderr to the parent'

Re: [Qemu-devel] [PATCH] isapc: Fix segfault during initialization

2012-01-15 Thread Anthony Liguori
On 01/15/2012 08:40 AM, Jan Kiszka wrote: On 2012-01-15 15:38, Anthony Liguori wrote: On 01/14/2012 07:12 AM, Jan Kiszka wrote: From: Jan Kiszka Linking the RTC device state to the PIIX does not belong into the common path that is shared with the isapc. QEMU crashes otherwise. Signed-off-by:

Re: [Qemu-devel] [PATCH] isapc: Fix segfault during initialization

2012-01-15 Thread Jan Kiszka
On 2012-01-15 17:12, Anthony Liguori wrote: > On 01/15/2012 08:40 AM, Jan Kiszka wrote: >> On 2012-01-15 15:38, Anthony Liguori wrote: >>> On 01/14/2012 07:12 AM, Jan Kiszka wrote: From: Jan Kiszka Linking the RTC device state to the PIIX does not belong into the common path tha

Re: [Qemu-devel] qemu-nbd daemonizing?

2012-01-15 Thread Paolo Bonzini
On 01/15/2012 01:59 PM, Michael Tokarev wrote: On 15.01.2012 14:51, Paolo Bonzini wrote: On 01/14/2012 10:26 AM, Michael Tokarev wrote: After looking at the yesterdays issue with non-absolute paths for qemu-nbd arguments and daemon(3), I've a question. Why qemu-nbd daemonizes, and does that on

Re: [Qemu-devel] [PATCH] isapc: Fix segfault during initialization

2012-01-15 Thread Anthony Liguori
On 01/15/2012 10:16 AM, Jan Kiszka wrote: On 2012-01-15 17:12, Anthony Liguori wrote: On 01/15/2012 08:40 AM, Jan Kiszka wrote: On 2012-01-15 15:38, Anthony Liguori wrote: On 01/14/2012 07:12 AM, Jan Kiszka wrote: From: Jan Kiszka Linking the RTC device state to the PIIX does not belong into

Re: [Qemu-devel] [PULL] Fix for kvm dirty logging

2012-01-15 Thread Anthony Liguori
On 01/15/2012 08:36 AM, Avi Kivity wrote: kvm dirty logging is broken in the presence of memory slots being removed; this breaks opensuse's boot screen. Following patch fixes: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent Pulled. Thanks. Regards, Anthony Liguori Av

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-15 Thread Peter Maydell
On 14 January 2012 14:48, Aurelien Jarno wrote: > On Thu, Jan 12, 2012 at 02:00:38PM +, Peter Maydell wrote: >> When doing TCG code translation, the target-foo translate.c >> code is allowed to bake assumptions into the generated code from >> the current values of various fields in the CPUStat

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Michael Tokarev
On 15.01.2012 20:11, Paolo Bonzini wrote: > On 01/15/2012 01:50 PM, Michael Tokarev wrote: >> On 15.01.2012 14:42, Paolo Bonzini wrote: >>> On 01/14/2012 01:39 PM, Michael Tokarev wrote: if (pid == 0) { -close(stderr_fd[0]); -ret = qemu_daemon(0, 0)

Re: [Qemu-devel] qemu-nbd daemonizing?

2012-01-15 Thread Michael Tokarev
On 15.01.2012 20:17, Paolo Bonzini wrote: > On 01/15/2012 01:59 PM, Michael Tokarev wrote: >> On 15.01.2012 14:51, Paolo Bonzini wrote: >>> On 01/14/2012 10:26 AM, Michael Tokarev wrote: After looking at the yesterdays issue with non-absolute paths for qemu-nbd arguments and daemon(3), I'

[Qemu-devel] [Bug 916720] Re: select fails on windows because a non-socket fd is in the rfds set

2012-01-15 Thread Arie
It is added to the list by glib_select_fill. Other than that I couldn't find out what the fd is for. I forgot to add the symptoms of the problem, so i'll add them now so people can google them. target remote tcp:127.0.0.1:2200 Ignoring packet error, continuing... warning: unrecognized item "timeo

Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot

2012-01-15 Thread Avi Kivity
On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote: > On Sun, 15 Jan 2012, Jan Kiszka wrote: > >> On 2012-01-15 15:17, Avi Kivity wrote: >>> Otherwise, the dirty log information is lost in the kernel forever. >>> >>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly. >> >> Confirm

[Qemu-devel] [PULL] (not only) isapc related updates

2012-01-15 Thread Jan Kiszka
The following changes since commit 3fbffb628c001bd540dc9c1805bdf7aa8591da4d: kvm: flush the dirty log when unregistering a slot (2012-01-15 16:13:59 +0200) are available in the git repository at: git://git.kiszka.org/qemu.git queues/isapc This contains the already posted segfault fix and the

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Paolo Bonzini
On 01/15/2012 05:44 PM, Michael Tokarev wrote: + * stdout (temporarily) to the pipe to parent, This is a bit of a hack. There's another way -- to keep the writing pipe end in some local variable and use that one instead of STDOUT_FILENO. I can do it that way for sure, just thought

Re: [Qemu-devel] qemu-nbd daemonizing?

2012-01-15 Thread Paolo Bonzini
On 01/15/2012 05:54 PM, Michael Tokarev wrote: On 15.01.2012 20:17, Paolo Bonzini wrote: On 01/15/2012 01:59 PM, Michael Tokarev wrote: On 15.01.2012 14:51, Paolo Bonzini wrote: On 01/14/2012 10:26 AM, Michael Tokarev wrote: After looking at the yesterdays issue with non-absolute paths for qe

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Paolo Bonzini
On 01/15/2012 06:31 PM, Paolo Bonzini wrote: We're doomed anyway, and it is even good we've a small remote chance for our error message to be seen. Currently it just goes to /dev/null. No, currently it is sent from the daemon to the parent through the pipe, the parent prints it and exits wi

Re: [Qemu-devel] [PATCH 0/3] Support configurable CPU Model-Specific Registers (MSRs) in cpudefs

2012-01-15 Thread Andreas Färber
Am 15.01.2012 16:39, schrieb Josh Triplett: > Josh Triplett (3): > Add cpudef option to GPF on unknown MSRs > Support arbitrary additional MSRs in cpu definitions > Handle parse failures in CPU definitions, and avoid adding a partial > cpudef Please prefix the subjects with "target-i386:

Re: [Qemu-devel] [PATCH] linux-user: fix segfault deadlock

2012-01-15 Thread Fabio Erculiani
I confirm the patch fixes the deadlock I was seeing here. -- Fabio Erculiani

Re: [Qemu-devel] [PATCH master/v1.0.x] ivshmem: add missing msix calls

2012-01-15 Thread Andreas Färber
Am 13.01.2012 23:43, schrieb Cam Macdonell: > Can this patch be merged, please? You need to cc qemu-stable if you want it backported to v1.0.x once applied. Andreas > On Mon, Dec 5, 2011 at 12:48 PM, Michael S. Tsirkin wrote: >> ivshmem used msix but didn't call it on either reset or >> config

[Qemu-devel] [PATCH V2 1/1] QEMU kvm/i386 : Adding PVLOCK_KICK capability support in i386 target.

2012-01-15 Thread Raghavendra K T
From: Raghavendra K T The patch, extends KVM-hypervisor and Linux guest running on KVM-hypervisor to support pv-ticket spinlocks. PV ticket spinlock helps to solve Lock Holder Preemption problem discussed in http://www.amd64.org/fileadmin/user_upload/pub/LHP-commented_slides.pdf. When spinlock

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-15 Thread Vadim Rozenfeld
On Sun, 2012-01-15 at 11:27 +, Stefan Hajnoczi wrote: > 2012/1/14 Charles.Tsai-蔡清海-研究發展部 : > >I tested Qemu 0.15 for Windows XP guest OS. But I found that the > > Virtual Serial I/O driver failed in driver initialization. > >The root cause of this problem is because the hardwar

Re: [Qemu-devel] [Android-virt] [PATCH 00/12] Add support for Cortex-A15 and vexpress-a15

2012-01-15 Thread Christoffer Dall
On Fri, Jan 13, 2012 at 3:57 PM, Peter Maydell wrote: > On 13 January 2012 20:52, Peter Maydell wrote: >> This patchset adds support for (a rather limited version of) the >> Cortex-A15 CPU and the Versatile Express A15 daughterboard. >> The resulting model is capable of booting a Linux kernel whi

[Qemu-devel] Get only TCG code without execution

2012-01-15 Thread Rajat Goyal
I am doing a project to build a daemonic ARM emulator using QEMU. One of the requirements is to get the complete TCG code for any multi-threaded ARM program that I run on QEMU. I do not need QEMU to execute the program and show me the output. Just the entire TCG code. The latest version of qemu-arm

[Qemu-devel] [PATCH 01/14] lm32: Fix mixup of uint32 and uint32_t

2012-01-15 Thread Andreas Färber
Commit d23948b15a9920fb7f6374b55a6db1ecff81f3ee (lm32: add Milkymist VGAFB support) introduced a stray usage of the softfloat uint32 type. Use uint32_t instead. Signed-off-by: Andreas Färber Cc: Michael Walle --- hw/milkymist-vgafb_template.h |2 +- 1 files changed, 1 insertions(+), 1 dele

[Qemu-devel] [PATCH 00/14] softfloat: Use POSIX integer types - benchmarked

2012-01-15 Thread Andreas Färber
Hello, Based on a suggestion from Alex earlier this week, I managed to run a simple benchmark of softfloat performance with qemu-arm, as requested by Peter. I went for the Whetstone floating point benchmark: http://en.wikipedia.org/wiki/Whetstone_%28benchmark%29 For a loop count of 100,000 and 5

[Qemu-devel] [PATCH 02/14] target-sparc: Fix mixup of uint64 and uint64_t

2012-01-15 Thread Andreas Färber
Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc: Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64 type. Use uint64_t instead. Signed-off-by: Andreas Färber Cc: Richard Henderson Cc: Blue Swirl --- target-sparc/vis_helper.c |2 +- 1 files changed, 1 ins

[Qemu-devel] [PATCH 06/14] softfloat: Replace uint16 type with uint_fast16_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef uint16, uint_fast16_t; @@ -uint16 +uint_fast16_t Fixes the build of the Cocoa frontend on Mac OS X and avoids a workaround for AIX. For pre-10 Solaris include osdep.h. Reported-by: Pavel Borzenkov Reported-by: Rui Carmo Signed-off-by: Andrea

[Qemu-devel] [PATCH 09/14] softfloat: Replace int8 type with int_fast8_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef int8, int_fast8_t; @@ -int8 +int_fast8_t Add typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: Ben Taylor --- fpu/softfloat-macros.h | 26 +- fpu/softfloat-specialize.h |2 +- fpu/softfloat.c

[Qemu-devel] [PATCH 12/14] softfloat: Replace uint64 type with uint_fast64_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef uint64, uint_fast64_t; @@ -uint64 +uint_fast_64_t Add a typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: Ben Taylor --- fpu/softfloat.c | 10 +- fpu/softfloat.h |9 - osdep.h |1 + 3 files chang

[Qemu-devel] [PATCH 14/14] softfloat: Replace flag type with bool

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef flag, bool; @@ -flag +bool Also drop the comment block now that the last typedef is removed. Signed-off-by: Andreas Färber --- fpu/softfloat-macros.h |8 +- fpu/softfloat-specialize.h | 54 +- fpu/softfloat.c| 2

[Qemu-devel] [PATCH 13/14] softfloat: Replace int64 type with int_fast64_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef int64, int_fast64_t; @@ -int64 +int_fast64_t Add a typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: Ben Taylor --- fpu/softfloat.c | 38 +++--- fpu/softfloat.h | 25 -

[Qemu-devel] [PATCH 03/14] qemu-tool: Fix mixup of int64 and int64_t

2012-01-15 Thread Andreas Färber
Commit cbcfa0418f0c196afa765f5c9837b9344d1adcf3 (link the main loop and its dependencies into the tools) introduced stray usages of int64. Use int64_t instead. Signed-off-by: Andreas Färber Cc: Paolo Bonzini --- qemu-tool.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --

[Qemu-devel] [PATCH 11/14] softfloat: Replace int32 type with int_fast32_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef int32, int_fast32_t; @@ -int32 +int_fast32_t Add typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: Ben Taylor --- fpu/softfloat.c | 124 +++--- fpu/softfloat.h | 25 +--

[Qemu-devel] [PATCH 05/14] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

2012-01-15 Thread Andreas Färber
osdep.h is included via qemu-common.h. Prepares for use of [u]int_fast*_t types in softfloat code. Signed-off-by: Andreas Färber Cc: Ben Taylor Cc: Aurélien Jarno --- osdep.h |6 ++ target-mips/cpu.h |7 --- 2 files changed, 6 insertions(+), 7 deletions(-) diff --gi

[Qemu-devel] [PATCH 10/14] softfloat: Replace uint32 type with uint_fast32_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef uint32, uint_fast32_t; @@ -uint32 +uint_fast32_t Add typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: Ben Taylor --- fpu/softfloat.c | 26 +- fpu/softfloat.h | 13 ++--- osdep.h |1

[Qemu-devel] [PATCH 08/14] softfloat: Remove unused uint8 type

2012-01-15 Thread Andreas Färber
Signed-off-by: Andreas Färber --- fpu/softfloat.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index dbdd390..99ff44e 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -55,7 +55,6 @@ these four paragraphs for those parts of this co

[Qemu-devel] [PATCH 07/14] softfloat: Replace int16 type with int_fast16_t

2012-01-15 Thread Andreas Färber
Based on the following Coccinelle patch: @@ typedef int16, int_fast16_t; @@ -int16 +int_fast16_t Avoids a workaround for AIX. Add typedef for pre-10 Solaris. Signed-off-by: Andreas Färber Cc: malc Cc: Ben Taylor --- fpu/softfloat-macros.h | 18 fpu/softfloat.c| 114 +

[Qemu-devel] [PATCH 04/14] softfloat: Fix mixups of int and int16

2012-01-15 Thread Andreas Färber
normalizeFloat{32,64}Subnormal() expect the exponent as int16, not int. This went unnoticed since int16 and uint16 were both typedef'ed to int. Signed-off-by: Andreas Färber --- fpu/softfloat.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fpu/softfloat.c b/fpu/soft

Re: [Qemu-devel] [Android-virt] [PATCH 03/12] hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop

2012-01-15 Thread Alexander Graf
On 13.01.2012, at 21:52, Peter Maydell wrote: > From: Evgeny Voevodin > > The secondary CPU bootloader in arm_boot.c holds secondary CPUs in a > pen until the primary CPU releases them. Make boards specify the > address to be polled to determine whether to leave the pen (it was > previously har

Re: [Qemu-devel] [PATCH] Add virtio-blk-drive-serial test

2012-01-15 Thread Zhi Yong Wu
On Sun, Jan 15, 2012 at 10:39 PM, Anthony Liguori wrote: > On 01/13/2012 07:25 PM, Zhi Yong Wu wrote: >> >> On Sat, Jan 14, 2012 at 9:03 AM, Zhi Yong Wu  wrote: >>> >>> On Sat, Jan 14, 2012 at 5:49 AM, Ryan Harper  wrote: We can test out the virtio-blk drive serial number by generating a

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-15 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, Thank you for your prompt reply. Here are the information for our test case. 1) we use the following command line to launch the guest OS /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconf

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2012-01-15 Thread Zhi Yong Wu
On Sun, Jan 15, 2012 at 7:14 PM, Stefan Hajnoczi wrote: > On Sat, Jan 14, 2012 at 3:40 PM, Zhi Yong Wu wrote: >> On Mon, Jan 9, 2012 at 9:00 PM, Stefan Hajnoczi wrote: >>> On Mon, Jan 9, 2012 at 11:25 AM, Kevin Wolf wrote: Am 20.12.2011 17:49, schrieb Stefan Hajnoczi: > On Tue, Dec 20,

[Qemu-devel] Where is load_elf32()?

2012-01-15 Thread Li Guohua
Hi, In qemu-1.0:hw/loader.c, load_elf() calls load_elf64() or load_elf32(). But where is the function definition/body of load_elf32()? And: $ find /usr/include -name '*' | xargs grep load_elf32 [no result] Thanks & Regards, Gary

Re: [Qemu-devel] Where is load_elf32()?

2012-01-15 Thread Max Filippov
> In qemu-1.0:hw/loader.c, load_elf() calls load_elf64() or load_elf32(). > But where is the function definition/body of load_elf32()? It is in hw/elf_ops.h:190 static int glue(load_elf, SZ)(const char *name, int fd,                              uint64_t (*translate_fn)(void *, uint64_t),        

[Qemu-devel] [PATCH] tests: Silence gtester in Makefile

2012-01-15 Thread Stefan Weil
This prettifies make output a little by avoiding a very long line. As gtester prints the checks when they are run, no information is lost. Signed-off-by: Stefan Weil --- tests/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index

[Qemu-devel] [PATCH v7 01/10] hw/sysbus.h: Increase maximum number of device IRQs.

2012-01-15 Thread Evgeny Voevodin
Samsung exynos4210 Interrupt Combiner needs 512 IRQ sources. Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- hw/sysbus.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/sysbus.h b/hw/sysbus.h index 899756b..7b8ca23 100644 --- a/hw/sysbus.h +++ b/hw/sys

[Qemu-devel] [PATCH v7 08/10] hw/lan9118: Add basic 16-bit mode support.

2012-01-15 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- hw/lan9118.c | 115 +++--- 1 files changed, 110 insertions(+), 5 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 8b83fe2..5e5e644 100644 --- a/hw/lan9118.c +++ b/hw/la

Re: [Qemu-devel] 回??: [PATCH 00/21][RFC] postcopy live?migration

2012-01-15 Thread Isaku Yamahata
Thank you for your info. I suppose I found the cause, MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME. Your kernel enables KVM paravirt_ops, right? Although I'm preparing the next path series including the fixes, you can also try postcopy by disabling paravirt_ops or disabling kvm (use tcg i.e. -machin

[Qemu-devel] [PATCH v7 09/10] hw/exynos4210.c: Add LAN support for SMDKC210.

2012-01-15 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin --- hw/exynos4_boards.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/exynos4_boards.c b/hw/exynos4_boards.c index b8fc5b6..56fd9a3 1

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-15 Thread Vadim Rozenfeld
On Mon, 2012-01-16 at 10:02 +0800, Charles.Tsai-蔡清海-研究發展部 wrote: > Vadim, > > Thank you for your prompt reply. Here are the information for our test case. > > > 1) we use the following command line to launch the guest OS > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp > 1,sockets=1,

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-15 Thread Hannes Reinecke
On 01/15/2012 10:21 AM, Avi Kivity wrote: > On 01/13/2012 06:54 PM, Andreas Färber wrote: >>> +static void megasas_unmap_sgl(struct megasas_cmd_t *cmd) >>> +{ >>> +int i, is_write = megasas_frame_is_write(cmd); >>> + >>> +for (i = 0; i < cmd->iov_cnt; i++) { >>> +cpu_physical_memory

[Qemu-devel] [PATCH v7 04/10] ARM: Samsung exynos4210-based boards emulation

2012-01-15 Thread Evgeny Voevodin
Add initial support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin --- Makefile.target |3 +- hw/exynos4210.c | 202 +++ hw/exynos4210.h | 37 + hw/exynos4_boards.c | 143

Re: [Qemu-devel] [PATCH] rework daemonizing logic in qemu-nbd

2012-01-15 Thread Michael Tokarev
On 15.01.2012 21:31, Paolo Bonzini wrote: > On 01/15/2012 05:44 PM, Michael Tokarev wrote: >> + * stdout (temporarily) to the pipe to parent, > > This is a bit of a hack. There's another way -- to keep the writing pipe end in some local variable and use that o

[Qemu-devel] [PATCH v7 00/10] ARM: Samsung Exynos4210-based boards support.

2012-01-15 Thread Evgeny Voevodin
This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage of "-smp 2" option is required for now. Changelog: v6->v7 - exynos4210_pwm.c: added usage of "ptimer.h" - exynos4210_mct.c: added usage of "ptimer.h" v5->v6 - arm_b

[Qemu-devel] [PATCH v7 02/10] hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop

2012-01-15 Thread Evgeny Voevodin
The secondary CPU bootloader in arm_boot.c holds secondary CPUs in a pen until the primary CPU releases them. Make boards specify the address to be polled to determine whether to leave the pen (it was previously hardcoded to 0x1030, which is a Versatile Express/ Realview specific system registe

[Qemu-devel] [PATCH v7 03/10] ARM: exynos4210: IRQ subsystem support.

2012-01-15 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.h | 82 hw/exynos4210_combiner.c | 464 ++ hw/exynos4210_gic.c | 437 +++ 4 files changed, 984 insert

[Qemu-devel] [PATCH v7 05/10] ARM: exynos4210: UART support

2012-01-15 Thread Evgeny Voevodin
From: Maksim Kozlov Add basic support of exynos4210 UART Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 29 +++ hw/exynos4210.h |9 + hw/exynos4210_uart.c | 668 ++ 4 files changed, 707 inser

  1   2   >