[Qemu-devel] gdbstub chews cpu due to nonblocking socket mode

2011-01-24 Thread Mike Frysinger
i'm not sure if someone has brought this up before (i cant find anything in the archives), but using the gdbstub with qemu seems to cause quite a bit of useless cpu chewing. in gdbstub.c:gdb_accept(), after the connection has been established, we see: fcntl(fd, F_SETFL, O_NONBLOCK); then,

Re: [Qemu-devel] [PATCH 28/35] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-24 Thread Gleb Natapov
On Tue, Jan 18, 2011 at 11:09:01AM -0600, Anthony Liguori wrote: But we also need to provide a compatible interface to management tools. Exposing the device model topology as a compatible interface artificially limits us. It's far better to provide higher level supported interfaces to give us

Re: [Qemu-devel] Re: [PATCH] savevm: fix corruption in vmstate_subsection_load().

2011-01-24 Thread Yoshiaki Tamura
2011/1/20 Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp: 2011/1/20 Paolo Bonzini pbonz...@redhat.com: On 01/20/2011 09:57 AM, Yoshiaki Tamura wrote: 2011/1/20 Paolo Bonzinipbonz...@redhat.com: On 12/14/2010 10:07 AM, Yoshiaki Tamura wrote: Although it's rare to happen in live migration,

[Qemu-devel] [PATCH 22/31] kvm: x86: Refactor msr_star/hsave_pa setup and checks

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Simplify kvm_has_msr_star/hsave_pa to booleans and push their one-time initialization into kvm_arch_init. Also handle potential errors of that setup procedure. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 19/31] kvm: x86: Prepare kvm_get_mp_state for in-kernel irqchip

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This code path will not yet be taken as we still lack in-kernel irqchip support. But qemu-kvm can already make use of it and drop its own mp_state access services. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 24/31] kvm: x86: Fix !CONFIG_KVM_PARA build

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com If we lack kvm_para.h, MSR_KVM_ASYNC_PF_EN is not defined. The change in kvm_arch_init_vcpu is just for consistency reasons. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c |8

[Qemu-devel] [PATCH 11/31] kvm: x86: Prevent sign extension of DR7 in guest debugging mode

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This unbreaks guest debugging when the 4th hardware breakpoint used for guest debugging is a watchpoint of 4 or 8 byte lenght. The 31st bit of DR7 is set in that case and used to cause a sign extension to the high word which was breaking the guest state (vm

[Qemu-devel] [PATCH 03/31] Clean up cpu_inject_x86_mce()

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com Clean up cpu_inject_x86_mce() for later patch. Signed-off-by: Jin Dongming jin.dongm...@np.css.fujitsu.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/helper.c | 27 +-- 1 files changed, 17

[Qemu-devel] [PATCH 30/31] kvm: x86: Implicitly clear nmi_injected/pending on reset

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com All CPUX86State variables before CPU_COMMON are automatically cleared on reset. Reorder nmi_injected and nmi_pending to avoid having to touch them explicitly. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 02/31] kvm: convert kvm_ioctl(KVM_CHECK_EXTENSION) to kvm_check_extension()

2011-01-24 Thread Marcelo Tosatti
From: Lai Jiangshan la...@cn.fujitsu.com simple cleanup and use existing helper: kvm_check_extension(). Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- kvm-all.c |2 +- target-i386/kvm.c |4 ++-- 2 files changed, 3

[Qemu-devel] [PATCH 31/31] kvm: x86: Only read/write MSR_KVM_ASYNC_PF_EN if supported

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com If the kernel does not support KVM_CAP_ASYNC_PF, it also does not know about the related MSR. So skip it during state synchronization in that case. Fixes annoying kernel warnings. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo

[Qemu-devel] [PATCH 15/31] kvm: Stop on all fatal exit reasons

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Ensure that we stop the guest whenever we face a fatal or unknown exit reason. If we stop, we also have to enforce a cpu loop exit. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- kvm-all.c |

[Qemu-devel] [PATCH 00/31] [PULL] qemu-kvm.git uq/master queue

2011-01-24 Thread Marcelo Tosatti
The following changes since commit b646968336d4180bdd7d2e24209708dcee6ba400: checkpatch: adjust to QEMUisms (2011-01-20 20:58:56 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Jan Kiszka (23): kvm: x86: Fix DPL write back of

[Qemu-devel] [PATCH 17/31] x86: Optionally dump code bytes on cpu_dump_state

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Introduce the cpu_dump_state flag CPU_DUMP_CODE and implement it for x86. This writes out the code bytes around the current instruction pointer. Make use of this feature in KVM to help debugging fatal vm exits. Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH 28/31] kvm: Flush coalesced mmio buffer on IO window exits

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com We must flush pending mmio writes if we leave kvm_cpu_exec for an IO window. Otherwise we risk to loose those requests when migrating to a different host during that window. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 05/31] Add function for checking mca broadcast of CPU

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com Add function for checking whether current CPU support mca broadcast. Signed-off-by: Jin Dongming jin.dongm...@np.css.fujitsu.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/cpu.h|1 + target-i386/helper.c | 33

[Qemu-devel] [PATCH 13/31] kvm: Fix coding style violations

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com No functional changes. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- kvm-all.c | 139 ++-- 1 files changed, 79 insertions(+), 60

[Qemu-devel] [PATCH 01/31] kvm: Enable user space NMI injection for kvm guest

2011-01-24 Thread Marcelo Tosatti
From: Lai Jiangshan la...@cn.fujitsu.com Make use of the new KVM_NMI IOCTL to send NMIs into the KVM guest if the user space raised them. (example: qemu monitor's nmi command) Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com Acked-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo

[Qemu-devel] [PATCH 04/31] Add broadcast option for mce command

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com When the following test case is injected with mce command, maybe user could not get the expected result. DATA command cpu bank status mcg_status addr misc (qemu) mce 1 10xbd00 0x05

[Qemu-devel] [PATCH 07/31] kvm: kvm_mce_inj_* subroutines for templated error injections

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com Refactor codes for maintainability. Signed-off-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com Signed-off-by: Jin Dongming jin.dongm...@np.css.fujitsu.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c | 111

[Qemu-devel] [PATCH 29/31] kvm: Do not use qemu_fair_mutex

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com The imbalance in the hold time of qemu_global_mutex only exists in TCG mode. In contrast to TCG VCPUs, KVM drops the global lock during guest execution. We already avoid touching the fairness lock from the IO-thread in KVM mode, so also stop using it from

[Qemu-devel] [PATCH 14/31] kvm: x86: Swallow KVM_EXIT_SET_TPR

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This exit only triggers activity in the common exit path, but we should accept it in order to be able to detect unknown exit types. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c |

[Qemu-devel] [PATCH 08/31] kvm: introduce kvm_inject_x86_mce_on

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com Pass a table instead of multiple args. Note: kvm_inject_x86_mce(env, bank, status, mcg_status, addr, misc, abort_on_error); is equal to: struct kvm_x86_mce mce = { .bank = bank, .status = status,

[Qemu-devel] [PATCH 18/31] kvm: x86: Align kvm_arch_put_registers code with comment

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com The ordering doesn't matter in this case, but better keep it consistent. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c |6 +++--- 1 files changed, 3 insertions(+), 3

[Qemu-devel] [PATCH 20/31] kvm: x86: Remove redundant mp_state initialization

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com kvm_arch_reset_vcpu initializes mp_state, and that function is invoked right after kvm_arch_init_vcpu. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c |2 -- 1 files changed, 0

[Qemu-devel] [PATCH 09/31] kvm: x86: Fix DPL write back of segment registers

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com The DPL is stored in the flags and not in the selector. In fact, the RPL may differ from the DPL at some point in time, and so we were corrupting the guest state so far. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity

[Qemu-devel] [PATCH 10/31] kvm: x86: Remove obsolete SS.RPL/DPL aligment

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This seems to date back to the days KVM didn't support real mode. The check is no longer needed and, even worse, is corrupting the guest state in case SS.RPL != DPL. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com

[Qemu-devel] [PATCH 27/31] kvm: x86: Rework identity map and TSS setup for larger BIOS sizes

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com In order to support loading BIOSes 256K, reorder the code, adjusting the base if the kernel supports moving the identity map. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/kvm.c | 63

[Qemu-devel] [PATCH 21/31] kvm: x86: Fix xcr0 reset mismerge

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com For unknown reasons, xcr0 reset ended up in kvm_arch_update_guest_debug on upstream merge. Fix this and also remove the misleading comment (1 is THE reset value). Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 16/31] kvm: Improve reporting of fatal errors

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Report KVM_EXIT_UNKNOWN, KVM_EXIT_FAIL_ENTRY, and KVM_EXIT_EXCEPTION with more details to stderr. The latter two are so far x86-only, so move them into the arch-specific handler. Integrate the Intel real mode warning on KVM_EXIT_FAIL_ENTRY that qemu-kvm

[Qemu-devel] [PATCH 25/31] kvm: Drop smp_cpus argument from init functions

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com No longer used. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- kvm-all.c |4 ++-- kvm-stub.c |2 +- kvm.h |4 ++-- target-i386/kvm.c |2 +-

[Qemu-devel] [PATCH 23/31] kvm: x86: Reset paravirtual MSRs

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Make sure to write the cleared MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, and MSR_KVM_ASYNC_PF_EN to the kernel state so that a freshly booted guest cannot be disturbed by old values. Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Glauber Costa

[Qemu-devel] [PATCH] block: Use backing format driver during image creation

2011-01-24 Thread Stefan Hajnoczi
The backing format should be honored during image creation. For some reason we currently use the image format to open the backing file. This fails when the backing file has a different format than the image being created. Keep the image and backing format drivers completely separate. Also

[Qemu-devel] [PATCH 06/31] kvm: introduce kvm_mce_in_progress

2011-01-24 Thread Marcelo Tosatti
From: Jin Dongming jin.dongm...@np.css.fujitsu.com Share same error handing, and rename this function after MCIP (Machine Check In Progress) flag. Signed-off-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com Signed-off-by: Jin Dongming jin.dongm...@np.css.fujitsu.com Signed-off-by: Marcelo

[Qemu-devel] [PATCH 12/31] kvm: x86: Fix a few coding style violations

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com No functional changes. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com --- target-i386/kvm.c | 335 + 1 files changed, 182 insertions(+), 153 deletions(-)

[Qemu-devel] [PATCH 26/31] kvm: Consolidate must-have capability checks

2011-01-24 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Instead of splattering the code with #ifdefs and runtime checks for capabilities we cannot work without anyway, provide central test infrastructure for verifying their availability both at build and runtime. Signed-off-by: Jan Kiszka jan.kis...@siemens.com

[Qemu-devel] [PATCH 1/2] ignore patch related files

2011-01-24 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- .gitignore |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 3efb4ec..dadb01a 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,10 @@ QMP/qmp-commands.txt *.o .pc patches +*.diff

[Qemu-devel] [PATCH v2] savevm: fix corruption in vmstate_subsection_load().

2011-01-24 Thread Yoshiaki Tamura
Although it's rare to happen in live migration, when the head of a byte stream contains 0x05 which is the marker of subsection, the loader gets corrupted because vmstate_subsection_load() continues even the device doesn't require it. This patch adds a checker whether subsection is needed, and

[Qemu-devel] Re: [PATCH] block: Use backing format driver during image creation

2011-01-24 Thread Jes Sorensen
On 01/24/11 10:32, Stefan Hajnoczi wrote: The backing format should be honored during image creation. For some reason we currently use the image format to open the backing file. This fails when the backing file has a different format than the image being created. Keep the image and backing

[Qemu-devel] [PATCH] linux-user/FLAT: fix auto-stack sizing

2011-01-24 Thread Mike Frysinger
The current auto-stack sizing works like it does on a NOMMU system; the problem is that this only works if the envp/argv arrays are fairly slim. On a desktop system, this is rarely the case, and can easily blow past the stack and into data/text regions as the default stack for FLAT progs is a mere

[Qemu-devel] [PATCH] pci: memory leak of PCIDevice::rom_file

2011-01-24 Thread Isaku Yamahata
PCIDevice::rom_file is leaked. PCIDevice::rom_file is allocated in pci_qdev_init(), but not freed anywhere. free it in qemu_unregister_device(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/pci.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci.c

[Qemu-devel] [PATCH 2/2] ignore more gdb related files

2011-01-24 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index dadb01a..81717f3 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,8 @@ qemu-io qemu-monitor.texi QMP/qmp-commands.txt

[Qemu-devel] [PATCH] linux-user/FLAT: allow targets to override FLAT reloc processing

2011-01-24 Thread Mike Frysinger
This brings flatload.c more in line with the current Linux FLAT loader which allows targets to handle FLAT relocations in their own way. For the common behavior, the new functions get stubbed out. Signed-off-by: Mike Frysinger vap...@gentoo.org --- Makefile.target |2 +-

[Qemu-devel] [PATCH] loader: memory leak in rom_add_file() on error path

2011-01-24 Thread Isaku Yamahata
fix memory leak in rom_add_file(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/loader.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 35d792e..6cba8c5 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -618,6 +618,8 @@ int

[Qemu-devel] Re: [RFC][PATCH v6 23/23] virtagent: various bits to build QEMU with virtagent

2011-01-24 Thread Jes Sorensen
On 01/17/11 14:15, Michael Roth wrote: Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.target |2 +- configure | 32 2 files changed, 33 insertions(+), 1 deletions(-) Please make building qemu-va optional, so the build doesn't

[Qemu-devel] [PATCH 0/4] new Blackfin QEMU port

2011-01-24 Thread Mike Frysinger
I finally got around to getting this port past the only crashes phase. Using the GNU sim Blackfin port as a nice working standard, it was just a matter of replacing the sim bits with TCG ops. Now we have a linux-user port for people to play with. No immediate plans to move on to the system step,

[Qemu-devel] Blackfin: add disassembler support

2011-01-24 Thread Mike Frysinger
compressing attaching since this is big (and i dont know what the qemu mailing list limit is set to), and it is simply a copy paste of the Blackfin disassembler from binutils -mike Makefile.objs |1 + bfin-dis.c| 4903

Re: [Qemu-devel] [PATCH v3 0/5][RFC] New SPARC machine: Leon3

2011-01-24 Thread Fabien Chouteau
On 01/21/2011 08:04 PM, Blue Swirl wrote: On Fri, Jan 21, 2011 at 5:00 PM, Fabien Chouteauchout...@adacore.com wrote: Hello Qemu-devel, Here is the third version of Leon3 emulation patch-set. Modifications since v2: - Tracepoints - DEFINE_PROP_* macros - New interface to trigger

Re: [Qemu-devel] [ARM] Contributing tests for Neon

2011-01-24 Thread Christophe Lyon
How about you make it available somewhere (tarball via http, git repository on gitorious, or other method of your choice) for the moment? Then we can take a look at it and proceed from there. I agree, this is a good first step. If possible, its good if you can publish source and binaries

[Qemu-devel] [PATCH 3/4] Blackfin: add linux-user support

2011-01-24 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- configure |1 + default-configs/bfin-linux-user.mak |1 + linux-user/bfin/syscall.h | 59 ++ linux-user/bfin/syscall_nr.h| 388 +++

Re: [Qemu-devel] IRC channel movement - FreeNode to OFTC

2011-01-24 Thread Stefan Hajnoczi
On Thu, Dec 9, 2010 at 3:14 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 12/09/2010 09:12 AM, Mulyadi Santosa wrote: On Wed, Dec 8, 2010 at 23:18, Anthony Liguorianth...@codemonkey.ws  wrote: Hi, I'd like to move IRC channels from FreeNode to OFTC, so please join #qemu on OFTC

[Qemu-devel] Re: [PATCH] block: Use backing format driver during image creation

2011-01-24 Thread Kevin Wolf
Am 24.01.2011 10:32, schrieb Stefan Hajnoczi: The backing format should be honored during image creation. For some reason we currently use the image format to open the backing file. This fails when the backing file has a different format than the image being created. Keep the image and

[Qemu-devel] qemu-user: relocating target code weakness

2011-01-24 Thread Stefano Bonifazi
Hi! I am working on a project based on qemu-user. More exactly it is qemu-ppc (version 0.13.0) with x86 host. All the project and documentation about qemu will be open for everybody as it is a project for my university that is a public one.. I have the need to relocate the target code in the

[Qemu-devel] Re: [PATCH] pci/pcie: make pci_find_device() ARI aware.

2011-01-24 Thread Isaku Yamahata
On Sun, Jan 23, 2011 at 05:57:53PM +0200, Michael S. Tsirkin wrote: On Sat, Jan 22, 2011 at 01:39:57AM +0900, Isaku Yamahata wrote: On Fri, Jan 21, 2011 at 04:29:41PM +0200, Michael S. Tsirkin wrote: On Fri, Jan 21, 2011 at 07:44:16PM +0900, Isaku Yamahata wrote: On Thu, Jan 20, 2011 at

Re: [Qemu-devel] TCG flow vs dyngen

2011-01-24 Thread Stefano Bonifazi
On 01/24/2011 12:40 AM, Rob Landley wrote: On 01/23/2011 04:25 PM, Stefano Bonifazi wrote: I am trying to shift in memory the target executable .. now the code is supposed to be loaded by the elfloader at the exact start address set at link time .. Ah, elf loading. That's a whole 'nother bag

Re: [Qemu-devel] [PATCH v3] linux-user: add ppoll syscall support

2011-01-24 Thread Peter Maydell
On 24 January 2011 03:57, Mike Frysinger vap...@gentoo.org wrote: Some architectures (like Blackfin) only implement ppoll (and skip poll). So add support for it using existing poll code. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v3        - call ppoll syscall directly so timespec

[Qemu-devel] [PATCH v4 0/5][RFC] New SPARC machine: Leon3

2011-01-24 Thread Fabien Chouteau
Hello Qemu-devel, Here is the fourth version of Leon3 emulation patch-set. Modifications since v3: - Tracepoints in leon3.c - Fix compilation error in user mode (target-sparc/op_helper.c) - Remove unused variable in leon3. - Minor reformating (style errors from checkpatch.pl) Please feel

[Qemu-devel] [PATCH v4 3/5] SPARC: Emulation of GRLIB APB UART

2011-01-24 Thread Fabien Chouteau
This device exposes one parameter: - chardev (ptr) : Pointer to a qemu character device Emulation of GrLib devices is base on the GRLIB IP Core User's Manual: http://www.gaisler.com/products/grlib/grip.pdf Signed-off-by: Fabien Chouteau chout...@adacore.com --- hw/grlib.h | 23

[Qemu-devel] [PATCH v4 5/5] SPARC: Add asr17 register support

2011-01-24 Thread Fabien Chouteau
This register is activated by CPU_FEATURE_ASR17 in the feature field. Signed-off-by: Fabien Chouteau chout...@adacore.com --- target-sparc/cpu.h |1 + target-sparc/helper.c|3 ++- target-sparc/translate.c | 11 +++ 3 files changed, 14 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH v4 1/5] SPARC: Emulation of GRLIB GPTimer

2011-01-24 Thread Fabien Chouteau
This device exposes three parameters: - frequency (uint32) : The system frequency - irq-line (uint32) : IRQ line number for the first timer (others use irq-line + 1, irq-line + 2...) - nr-timers (uint32) : Number of timers Emulation of GrLib devices is base on the

[Qemu-devel] Re: [RFC][PATCH 00/12] qcow2: Convert qcow2 to use coroutines for async I/O

2011-01-24 Thread Kevin Wolf
Am 22.01.2011 10:29, schrieb Stefan Hajnoczi: This patch series prototypes making QCOW2 fully asynchronous to eliminate the timing jitter and poor performance that has been observed. QCOW2 has asynchronous I/O code paths for some of the read/write common cases but metadata access is always

[Qemu-devel] [PATCH v4 2/5] SPARC: Emulation of GRLIB IRQMP

2011-01-24 Thread Fabien Chouteau
This device exposes two parameters: - set_pil_in(ptr) : A function to set the pil_in of the SPARC CPU - set_pil_in_opaque (ptr) : Opaque argument of the set_pil_in function Emulation of GrLib devices is base on the GRLIB IP Core User's Manual:

[Qemu-devel] Re: [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-24 Thread Marcelo Tosatti
On Mon, Jan 10, 2011 at 09:32:00AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Currently, we only configure and process MCE-related SIGBUS events if CONFIG_IOTHREAD is enabled. Fix this by factoring out the required handler registration and system configuration. Make

[Qemu-devel] [PATCH v4 4/5] SPARC: Emulation of Leon3

2011-01-24 Thread Fabien Chouteau
Leon3 is an open-source VHDL System-On-Chip, well known in space industry (more information on http://www.gaisler.com). Leon3 is made of multiple components available in the GrLib VHDL library. Three devices are implemented: uart, timers and IRQ manager. You can find code for these peripherals in

[Qemu-devel] Re: [PATCH] pci/pcie: make pci_find_device() ARI aware.

2011-01-24 Thread Michael S. Tsirkin
On Mon, Jan 24, 2011 at 08:39:57PM +0900, Isaku Yamahata wrote: On Sun, Jan 23, 2011 at 05:57:53PM +0200, Michael S. Tsirkin wrote: On Sat, Jan 22, 2011 at 01:39:57AM +0900, Isaku Yamahata wrote: On Fri, Jan 21, 2011 at 04:29:41PM +0200, Michael S. Tsirkin wrote: On Fri, Jan 21, 2011 at

[Qemu-devel] Re: [PATCH 11/18] Introduce VCPU self-signaling service

2011-01-24 Thread Marcelo Tosatti
On Mon, Jan 10, 2011 at 09:32:04AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com For the updated patch, can't see where

[Qemu-devel] Re: TCG flow vs dyngen

2011-01-24 Thread Stefano Bonifazi
On 01/17/2011 12:59 PM, Lluís wrote: Stefano Bonifazi writes: Hi! In case you are interested in helping me, I'll give you a big piece of news I've just got (even my teacher is not informed yet! :) ) I still don't understand what is your high-level objective... Lluis Hi! Sorry I've

[Qemu-devel] [PATCH 1/3] block: add block_resize monitor command

2011-01-24 Thread Christoph Hellwig
Add a monitor command that allows resizing of block devices while qemu is running. It uses the existing bdrv_truncate method already used by qemu-img to do it's work. Compared to qemu-img the size parsing is very simplicistic, but I think having a properly numering object is more useful for

[Qemu-devel] [PATCH 2/3] block: tell drivers about an image resize

2011-01-24 Thread Christoph Hellwig
Extend the change_cb callback with a reason argument, and use it to tell drivers about size changes. Signed-off-by: Christoph Hellwig h...@lst.de Index: qemu/block.c === --- qemu.orig/block.c 2011-01-24 11:56:20.899004129 +0100

[Qemu-devel] [PATCH 0/3 v3] allow online resizing of block devices

2011-01-24 Thread Christoph Hellwig
This patchset adds support for online resizing of block devices. The first patch adds a new resize monitor command which call into the existing image resize code. This is the meat of the series and probably needs quite a bit of review and help as I'm not sure about how to implement the error

[Qemu-devel] [PATCH 3/3] virtio-blk: tell the guest about size changes

2011-01-24 Thread Christoph Hellwig
Raise a config change interrupt when the size changed. This allows virtio-blk guest drivers to read-read the information from the config space once it got the config chaged interrupt. Signed-off-by: Christoph Hellwig h...@lst.de Index: qemu/hw/virtio-blk.c

[Qemu-devel] Re: [PATCH 11/18] Introduce VCPU self-signaling service

2011-01-24 Thread Jan Kiszka
On 2011-01-24 12:47, Marcelo Tosatti wrote: On Mon, Jan 10, 2011 at 09:32:04AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com

[Qemu-devel] Re: TCG flow vs dyngen

2011-01-24 Thread Stefano Bonifazi
On 01/16/2011 10:08 PM, Raphaël Lefèvre wrote: 2011/1/17 Stefano Bonifazistefboombas...@gmail.com: Hi! In case you are interested in helping me, I'll give you a big piece of news I've just got (even my teacher is not informed yet! :) ) I've just managed to make more than one instance of

Re: [Qemu-devel] [PATCH] target-arm: Set the right overflow bit for neon 32 and 64 bit saturating add/sub.

2011-01-24 Thread Christophe Lyon
On 21.01.2011 18:58, Peter Maydell wrote: I've reviewed this patch and tested it in the usual way and can confirm that it now sets the right saturation bit; mostly it is OK. However... Thanks! [...] the indentation in this hunk is wrong -- qemu standard is four-space. Oops. What is the

[Qemu-devel] Re: [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-24 Thread Jan Kiszka
On 2011-01-24 12:17, Marcelo Tosatti wrote: On Mon, Jan 10, 2011 at 09:32:00AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Currently, we only configure and process MCE-related SIGBUS events if CONFIG_IOTHREAD is enabled. Fix this by factoring out the required handler

Re: [Qemu-devel] Re: [RFC][PATCH 00/12] qcow2: Convert qcow2 to use coroutines for async I/O

2011-01-24 Thread Stefan Hajnoczi
On Mon, Jan 24, 2011 at 11:58 AM, Kevin Wolf kw...@redhat.com wrote: Am 22.01.2011 10:29, schrieb Stefan Hajnoczi: Kevin: Do you like this approach and do you want to develop it further? I think it looks like a good start. The code will look much nicer this way than with the callback jungle

[Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Jiri Denemark
From: Jiri Denemark jiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes for spice availability. Signed-off-by: Jiri Denemark jdene...@redhat.com --- configure |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] Re: TCG flow vs dyngen

2011-01-24 Thread Stefano Bonifazi
On 01/16/2011 08:24 PM, Peter Maydell wrote: 2011/1/16 Stefano Bonifazistefboombas...@gmail.com: I need to make the different instances of qemu-user exchange data .. obviously keeping all of them in the same address space would be the easiest way (unless I have to change all qemu code ;) )

[Qemu-devel] Agenda for Jan 25

2011-01-24 Thread Juan Quintela
Plase send in any agenda items you are interested in covering. thanks, Juan.

[Qemu-devel] KVM call agenda for Jan 25

2011-01-24 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

[Qemu-devel] Re: [RFC/PATCH] elfload: add FDPIC support

2011-01-24 Thread Stefano Bonifazi
On 01/09/2011 09:48 AM, Mike Frysinger wrote: This is a PoC at this point, but it seems to be working for me. At least, all the current crashes I'm seeing are due to my Blackfin port being incomplete. All of the FDPIC table parsing seems to be OK ... If someone with a more functional target

Re: [Qemu-devel] Re: TCG flow vs dyngen

2011-01-24 Thread Lluís
Stefano Bonifazi writes: Do you mean what is my final goal? Exactly. A higher level perspective of what is our ultimate goal might help others figure out better ways to do it. Right now I don't remember what you posted your where technically trying to do, but I do remember it looked convoluted

[Qemu-devel] Re: [PATCH] pci: memory leak of PCIDevice::rom_file

2011-01-24 Thread Michael S. Tsirkin
On Mon, Jan 24, 2011 at 07:00:47PM +0900, Isaku Yamahata wrote: PCIDevice::rom_file is leaked. PCIDevice::rom_file is allocated in pci_qdev_init(), but not freed anywhere. free it in qemu_unregister_device(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp Applied, thanks. ---

Re: [Qemu-devel] [PATCH] target-arm: Set the right overflow bit for neon 32 and 64 bit saturating add/sub.

2011-01-24 Thread Peter Maydell
On 24 January 2011 12:41, Christophe Lyon christophe.l...@st.com wrote: On 21.01.2011 18:58, Peter Maydell wrote: the indentation in this hunk is wrong -- qemu standard is four-space. Oops. What is the official emacs configuration to get the right qemu style? I don't know about official, but

[Qemu-devel] Re: [RFC][PATCH v6 07/23] virtagent: base server definitions

2011-01-24 Thread Jes Sorensen
On 01/21/11 18:55, Michael Roth wrote: On 01/21/2011 10:38 AM, Jes Sorensen wrote: +#includexmlrpc-c/base.h +#includexmlrpc-c/server.h + +#define GUEST_AGENT_SERVICE_ID virtagent +#define GUEST_AGENT_PATH /tmp/virtagent-guest.sock +#define HOST_AGENT_SERVICE_ID virtagent-host +#define

Re: [Qemu-devel] [RFC][PATCH 11/12] qcow2: Convert qcow2 to use coroutines for async I/O

2011-01-24 Thread Stefan Hajnoczi
On Sun, Jan 23, 2011 at 11:40 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 01/22/2011 03:29 AM, Stefan Hajnoczi wrote: Converting qcow2 to use coroutines is fairly simple since most of qcow2 is synchronous.  The synchronous I/O functions likes bdrv_pread() now transparently work when

Re: [Qemu-devel] [PATCH v4 1/3] qcow2: Add QcowCache

2011-01-24 Thread Stefan Hajnoczi
On Thu, Jan 20, 2011 at 5:10 PM, Kevin Wolf kw...@redhat.com wrote: +int qcow2_cache_get(BlockDriverState *bs, Qcow2Cache *c, uint64_t offset, +    void **table) [...] +int qcow2_cache_put(BlockDriverState *bs, Qcow2Cache *c, void **table) +{ +    int i; + +    for (i = 0; i c-size; i++) {

Re: [Qemu-devel] Re: TCG flow vs dyngen

2011-01-24 Thread Stefano Bonifazi
On 01/24/2011 02:36 PM, Lluís wrote: Stefano Bonifazi writes: Do you mean what is my final goal? Exactly. A higher level perspective of what is our ultimate goal might help others figure out better ways to do it. Right now I don't remember what you posted your where technically trying to do,

Re: [Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Gerd Hoffmann
On 01/24/11 13:20, Jiri Denemark wrote: From: Jiri Denemarkjiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes for spice availability. What tree you are looking at? It _is_ $pkgconfig in mine ... cheers, Gerd

Re: [Qemu-devel] [PATCH 28/35] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-24 Thread Jan Kiszka
On 2011-01-21 19:49, Blue Swirl wrote: I'd add fourth possible class: - device, CPU and machine configuration, like nographic, win2k_install_hack, no_hpet, smp_cpus etc. Maybe also irqchip_in_kernel could fit here, though it obviously depends on a host capability too. I would count

Re: [Qemu-devel] [PATCH] loader: memory leak in rom_add_file() on error path

2011-01-24 Thread Markus Armbruster
Isaku Yamahata yamah...@valinux.co.jp writes: fix memory leak in rom_add_file(). Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- hw/loader.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 35d792e..6cba8c5 100644 ---

Re: [Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Jiri Denemark
On Mon, Jan 24, 2011 at 15:01:27 +0100, Gerd Hoffmann wrote: On 01/24/11 13:20, Jiri Denemark wrote: From: Jiri Denemarkjiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes for spice availability. What tree you are looking at? It _is_

Re: [Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Alon Levy
On Mon, Jan 24, 2011 at 03:01:27PM +0100, Gerd Hoffmann wrote: On 01/24/11 13:20, Jiri Denemark wrote: From: Jiri Denemarkjiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes for spice availability. What tree you are looking at? It _is_

Re: [Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Jiri Denemark
On Mon, Jan 24, 2011 at 15:17:17 +0100, Jiri Denemark wrote: On Mon, Jan 24, 2011 at 15:01:27 +0100, Gerd Hoffmann wrote: On 01/24/11 13:20, Jiri Denemark wrote: From: Jiri Denemarkjiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes

[Qemu-devel] [PATCH] Correct win32 timers deleting

2011-01-24 Thread Pavel Dovgaluk
This patch fixes resource leaks caused by quitting qemu with exit() function on win32 host. Timer object should be freed not only at the end of the main function, but by every of the application exits. Signed-off-by: --- qemu-timer.c | 14 +++--- vl.c |1 - 2 files changed,

[Qemu-devel] [PATCH] Correct win32 timers deleting

2011-01-24 Thread Pavel Dovgaluk
This patch fixes resource leaks caused by quitting qemu with exit() function on win32 host. Timer object should be freed not only at the end of the main function, but by every of the application exits. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@gmail.com --- qemu-timer.c | 14 +++---

Re: [Qemu-devel] TCG flow vs dyngen

2011-01-24 Thread Peter Maydell
2011/1/23 Rob Landley r...@landley.net: Keep in mind I'm a bit rusty and not an expert, but I'll give a stab at answering: ...here's a couple of clarifications: 2. how can I check the number of target cpu cycles or target instructions executed inside qemu-user (i.e. qemu-ppc)? You can't,

Re: [Qemu-devel] [PATCH] configure: Fix spice probe

2011-01-24 Thread Gerd Hoffmann
On 01/24/11 15:20, Alon Levy wrote: On Mon, Jan 24, 2011 at 03:01:27PM +0100, Gerd Hoffmann wrote: On 01/24/11 13:20, Jiri Denemark wrote: From: Jiri Denemarkjiri.denem...@gmail.com Non-existent $pkgconfig instead of $pkg_config was used when configure probes for spice availability. What

[Qemu-devel] Invitation to connect on LinkedIn

2011-01-24 Thread Sam Liao via LinkedIn
LinkedIn Sam Liao requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Sam Accept invitation from Sam Liao

Re: [Qemu-devel] [PATCH v3 2/4] scsi: Allow SCSI devices to override the removable bit

2011-01-24 Thread Stefan Hajnoczi
On Fri, Jan 21, 2011 at 06:26:14PM +0100, Markus Armbruster wrote: Stefan Hajnoczi stefa...@linux.vnet.ibm.com writes: Some SCSI devices may wish to override the removable bit. Add support for a qdev property on the SCSI device. I find this description a bit misleading. The qdev

  1   2   3   >