Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-08-31 Thread Paolo Bonzini
On 09/01/2011 08:09 AM, David Gibson wrote: The patch defines wmb() as __sync_synchronize(), a cross platform memory barrier primitive available in sufficiently recent gcc versions (gcc 4.2 and after?). If we care about older gccs then this patch will need to be updated with some sort of fallbac

[Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-08-31 Thread David Gibson
The virtio code already has memory barrier wmb() macros in the code. However they are was defined as no-ops. The comment claims that real barriers are not necessary because the code does not run concurrent. However, with kvm and io-thread enabled, this is not true and this qemu code can indeed run

[Qemu-devel] [PATCH 01/10] Add stub functions for PCI device models to do PCI DMA

2011-08-31 Thread David Gibson
This patch adds functions to pci.[ch] to perform PCI DMA operations. At present, these are just stubs which perform directly cpu physical memory accesses. Using these stubs, however, distinguishes PCI device DMA transactions from other accesses to physical memory, which will allow PCI IOMMU suppo

[Qemu-devel] [PATCH 07/10] lsi53c895a: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the lsi53c895a device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/lsi53c895a.c | 30 ++-

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-31 Thread Avi Kivity
On 08/31/2011 07:59 PM, Blue Swirl wrote: > > That makes it impossible to migrate level-triggered irq lines. Or at least, > the receiver has to remember the state, instead of (or in addition to) the > sender. Both ends probably need to remember the state. That should work without any multiph

[Qemu-devel] [PATCH] Makefile: fix that qemu doesn't compile with qemu-ga and simpletrace configured.

2011-08-31 Thread wudxw
From: Mark Wu Without this fix, it will not compile when simpletrace is configured: $ ./configure --enable-trace-backend=simple $ make GEN config-host.h GEN trace.h CCqemu-ga.o GEN trace.c LINK qemu-ga simpletrace.o: In function `get_clock': $qemu_src/qemu-timer.h:122: undefi

[Qemu-devel] [PATCH 02/10] rtl8139: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the rtl8139 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/rtl8139.c | 98 +

[Qemu-devel] [PATCH 04/10] ac97: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the ac97 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/ac97.c |7 --- 1 files changed, 4 ins

Re: [Qemu-devel] new memory api: offsets?

2011-08-31 Thread Avi Kivity
On 09/01/2011 01:54 AM, Michael Walle wrote: Hi Avi, while debugging, i noticed, that mr->offset is never set, expect in the initializer. (The subregion collision warning is printed although the regions are not overlapping.) Is this intended? Did you miss memory_region_set_offset()? The subre

[Qemu-devel] [0/10] Preliminary work for IOMMU emulation support; the easy bits

2011-08-31 Thread David Gibson
A while back, Eduard - Gabriel Munteanu send a series of patches implementing support for emulating the AMD IOMMU in conjunction with qemu emulated PCI devices. A revised patch series added support for the Intel IOMMU, and I also send a revised version of this series which added support for the hy

[Qemu-devel] [PATCH 05/10] es1370: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the es1370 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/es1370.c |5 +++-- 1 files changed, 3 i

[Qemu-devel] [PATCH 10/10] intel-hda: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
This updates the intel-hda device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: David Gibson --- hw/intel-hda.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-

[Qemu-devel] [PATCH 09/10] usb-ohci: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the usb-ohci device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/usb-ohci.c | 46 +++

[Qemu-devel] [PATCH 08/10] pcnet-pci: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the pcnet-pci device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/pcnet-pci.c |6 -- 1 files chang

[Qemu-devel] [PATCH] pseries: Update SLOF firmware image

2011-08-31 Thread David Gibson
The current SLOF firmware for the pseries machine has a bug in SCSI condition handling that was exposed by recent updates to qemu's SCSI emulation. This patch updates the SLOF image to one with the bug fixed. Signed-off-by: David Gibson --- pc-bios/README |2 +- pc-bios/slof.bin | Bin 57

[Qemu-devel] [PATCH 03/10] eepro100: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the eepro100 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/eepro100.c | 113 +--

[Qemu-devel] [RFC] block I/O throttling: how to enable in libvirt

2011-08-31 Thread Zhi Yong Wu
- Forwarded message from Zhi Yong Wu - Date: Thu, 1 Sep 2011 11:55:17 +0800 From: Zhi Yong Wu To: Stefan Hajnoczi Cc: "Daniel P. Berrange" , Stefan Hajnoczi , Adam Litke , Zhi Yong Wu , QEMU Developers , guijianf...@cn.fujitsu.com, hu...@cn.fujitsu.com Subject: [R

[Qemu-devel] [PATCH 06/10] e1000: Use PCI DMA stub functions

2011-08-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the e1000 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/e1000.c | 29 +++--

Re: [Qemu-devel] [RFC] block I/O throttling: how to enable in libvirt

2011-08-31 Thread Zhi Yong Wu
On Thu, Sep 01, 2011 at 12:21:20PM +0800, Osier Yang wrote: >Message-ID: <4e5f0840.5010...@redhat.com> >Date: Thu, 01 Sep 2011 12:21:20 +0800 >From: Osier Yang >User-Agent: Mozilla/5.0 (X11; Linux x86_64;rv:6.0) Gecko/20110816 > Thunderbird/6.0 >MIME-Version: 1.0 >To: Zhi Yong Wu >References:

Re: [Qemu-devel] VFIO v2 design plan

2011-08-31 Thread David Gibson
On Tue, Aug 30, 2011 at 08:51:38AM -0600, Alex Williamson wrote: > On Tue, 2011-08-30 at 17:48 +1000, David Gibson wrote: > > On Mon, Aug 29, 2011 at 10:24:43PM -0600, Alex Williamson wrote: > > > On Tue, 2011-08-30 at 13:04 +1000, David Gibson wrote: > > > > On Fri, Aug 26, 2011 at 11:05:23AM -060

Re: [Qemu-devel] [RFC] block I/O throttling: how to enable in libvirt

2011-08-31 Thread Osier Yang
于 2011年09月01日 11:55, Zhi Yong Wu 写道: On Wed, Aug 31, 2011 at 08:18:19AM +0100, Stefan Hajnoczi wrote: Subject: Re: The design choice for how to enable block I/O throttling function in libvirt From: Stefan Hajnoczi To: Adam Litke Cc: libvir-l...@redhat.com, "Daniel P. Berrange", Zhi Yong Wu, Zhi

[Qemu-devel] [RFC] block I/O throttling: how to enable in libvirt

2011-08-31 Thread Zhi Yong Wu
On Wed, Aug 31, 2011 at 08:18:19AM +0100, Stefan Hajnoczi wrote: >Subject: Re: The design choice for how to enable block I/O throttling > function in libvirt >From: Stefan Hajnoczi >To: Adam Litke >Cc: libvir-l...@redhat.com, "Daniel P. Berrange" , Zhi > Yong Wu , Zhi Yong Wu >Content-Type: text

Re: [Qemu-devel] [PATCH v6 0/4] The intro of QEMU block I/O throttling

2011-08-31 Thread Zhi Yong Wu
On Wed, Aug 31, 2011 at 06:31:44PM +0800, Zhi Yong Wu wrote: >Return-Path: >Received: from imap.linux.ibm.com ([unix socket]) by imap.linux.ibm.com > (Cyrus v2.3.16-Fedora-RPM-2.3.16-6.el6_1.2) with LMTPA; Wed, 31 Aug 2011 > 07:10:59 -0400 >X-Sieve: CMU Sieve 2.3 >Received: from localhost (local

[Qemu-devel] python scripts

2011-08-31 Thread reed kotler
I recently made a major addition (about 150 new instructions) to MIPS QEMU to add the DSP instructions for Mips and Micro MIPS processors. To make this process simpler and less error prone, I generated a large amount of the code and framework from python scripts. This code is much easier to p

Re: [Qemu-devel] pseries machine updates

2011-08-31 Thread David Gibson
On Wed, Aug 31, 2011 at 11:17:13AM +0200, Alexander Graf wrote: > > On 11.08.2011, at 02:39, David Gibson wrote: > > > On Wed, Aug 10, 2011 at 05:16:35PM +0200, Alexander Graf wrote: > >> On 08/04/2011 09:02 AM, David Gibson wrote: > >>> Hi Alex, > >>> > >>> Here's another batch of assorted upda

Re: [Qemu-devel] [PATCH 2/2] pseries: Implement hcall-bulk hypervisor interface

2011-08-31 Thread David Gibson
On Wed, Aug 31, 2011 at 11:22:18AM +0200, Alexander Graf wrote: > On 11.08.2011, at 04:36, David Gibson wrote: [snip] > > +#define H_BULK_REMOVE_TYPE 0xc000ULL > > +#define H_BULK_REMOVE_REQUEST0x4000ULL > > +#define H_BULK_REMOVE_RESPONSE 0x800

[Qemu-devel] [PATCH v3 15/32] target-xtensa: implement CACHE group

2011-08-31 Thread Max Filippov
All operations in this group are no-ops, because cache ought to be transparent to applications. However cache may be abused, then we'll need to actually implement these opcodes. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 95 - 1 file

[Qemu-devel] [PATCH v3 07/32] target-xtensa: implement conditional jumps

2011-08-31 Thread Max Filippov
- BZ (comparison to zero); - BI0 (comparison to signed immediate); - BI1 (comparison to unsigned immediate); - B (two registers comparison, bit sets comparison); - BEQZ.N/BNEZ.N (narrow comparison to zero). Signed-off-by: Max Filippov --- target-xtensa/translate.c | 164

[Qemu-devel] [PATCH v3 18/32] target-xtensa: implement RST2 group (32 bit mul/div/rem)

2011-08-31 Thread Max Filippov
Signed-off-by: Max Filippov --- v2 -> v3 changes: - handle integer overflow for QUOS/REMS. --- target-xtensa/translate.c | 77 - 1 files changed, 76 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c inde

[Qemu-devel] [PATCH v3 23/32] target-xtensa: implement SIMCALL

2011-08-31 Thread Max Filippov
Tensilica iss provides support for applications running in freestanding environment through SIMCALL command. It is used by Tensilica libc to access argc/argv, for file I/O, etc. Note that simcalls that accept buffer addresses expect virtual addresses. Signed-off-by: Max Filippov --- Makefile.ta

[Qemu-devel] [PATCH v3 17/32] target-xtensa: implement exceptions

2011-08-31 Thread Max Filippov
- mark privileged opcodes with ring check; - make debug exception on exception handler entry. Signed-off-by: Max Filippov --- cpu-exec.c|6 +++ target-xtensa/cpu.h | 67 target-xtensa/helper.c| 37 +++- target-xtensa/help

[Qemu-devel] [PATCH v3 00/32] target-xtensa: new target architecture

2011-08-31 Thread Max Filippov
This series adds support for Tensilica Xtensa target. Port status: Linux for DC232B works in the qemu. Not implemented xtensa options: MAC16, floating point coprocessor, boolean option, cache option, debug option. v2 -> v3 changes: - add regression test suite; - fix bugs spotted by the testsui

[Qemu-devel] [PATCH v3 10/32] target-xtensa: implement RST3 group

2011-08-31 Thread Max Filippov
- access to Special Registers (wsr, rsr); - access to User Registers (wur, rur); - misc. operations option (value clamp, sign extension, min, max); - conditional moves. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 161 + 1 files changed

[Qemu-devel] [PATCH v3 04/32] target-xtensa: implement narrow instructions

2011-08-31 Thread Max Filippov
Instructions with op0 >= 8 are 2 bytes long, others are 3 bytes long. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 54 + 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

[Qemu-devel] [PATCH v3 27/32] target-xtensa: implement relocatable vectors

2011-08-31 Thread Max Filippov
See ISA, 4.4.3 for details. Vector addresses recorded in core configuration are absolute values that correspond to default VECBASE value. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |2 ++ target-xtensa/helper.c| 18 -- target-xtensa/translate.c |1 +

[Qemu-devel] [PATCH v3 01/32] target-xtensa: add target stubs

2011-08-31 Thread Max Filippov
Signed-off-by: Max Filippov --- Makefile.target |2 + arch_init.c |2 + arch_init.h |1 + cpu-exec.c|2 + elf.h |2 + hw/xtensa_pic.c | 38 ++ target-xtensa/cpu.h | 95

[Qemu-devel] [PATCH v3 16/32] target-xtensa: add PS register and access control

2011-08-31 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/cpu.h | 53 - target-xtensa/helper.c|1 + target-xtensa/translate.c | 29 3 files changed, 77 insertions(+), 6 deletions(-) diff --git a/target-xtensa/cpu.h b/targ

[Qemu-devel] [PATCH v3 03/32] target-xtensa: implement disas_xtensa_insn

2011-08-31 Thread Max Filippov
Set up disas_xtensa_insn switch structure, mark required options on high level groups. Implement arithmetic/bit logic/jump/call0. Implement code generation loop with single step/breakpoint checking. Signed-off-by: Max Filippov --- target-xtensa/cpu.h | 67 +++ target-xtensa/helper.c

[Qemu-devel] [PATCH v3 20/32] target-xtensa: implement loop option

2011-08-31 Thread Max Filippov
See ISA, 4.3.2 for details. Operations that change LEND SR value invalidate TBs at the old and at the new LEND. LEND value at TB compilation time is considered constant and loop instruction is generated based on this value. Invalidation may be avoided for the TB at the old LEND address, since loo

[Qemu-devel] [PATCH v3 11/32] target-xtensa: implement shifts (ST1 and RST1 groups)

2011-08-31 Thread Max Filippov
- ST1: SAR (shift amount special register) manipulation, NSA(U); - RST1: shifts, 16-bit multiplication. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |4 + target-xtensa/helpers.h |2 + target-xtensa/op_helper.c | 14 +++ target-xtensa/translate.c | 242 +

[Qemu-devel] [PATCH v3 09/32] target-xtensa: add special and user registers

2011-08-31 Thread Max Filippov
Special Registers hold the majority of the state added to the processor by the options. See ISA, 5.3 for details. User Registers hold state added in support of designer's TIE and in some cases of options that Tensilica provides. See ISA, 5.4 for details. Only registers mapped in sregnames or ureg

[Qemu-devel] [PATCH v3 19/32] target-xtensa: implement windowed registers

2011-08-31 Thread Max Filippov
See ISA, 4.7.1 for details. Physical registers and currently visible window are separate fields in CPUEnv. Only current window is accessible to TCG. On operations that change window base helpers copy current window to and from physical registers. Window overflow check described in 4.7.1.3 is in s

[Qemu-devel] [PATCH v3 26/32] target-xtensa: implement CPENABLE and PRID SRs

2011-08-31 Thread Max Filippov
Signed-off-by: Max Filippov --- hw/xtensa_sample.c|1 + target-xtensa/cpu.h |2 ++ target-xtensa/translate.c |7 +++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/xtensa_sample.c b/hw/xtensa_sample.c index 9f7733b..c2ad48a 100644 --- a/hw/xtensa_

[Qemu-devel] [PATCH v3 29/32] target-xtensa: implement memory protection options

2011-08-31 Thread Max Filippov
- TLB opcode group; - region protection option (ISA, 4.6.3); - region translation option (ISA, 4.6.4); - MMU option (ISA, 4.6.5). Cache control attribute bits are not used by this implementation. Signed-off-by: Max Filippov --- target-xtensa/cpu.h | 56 - target-xtensa/helper.c

[Qemu-devel] [PATCH v3 25/32] target-xtensa: implement accurate window check

2011-08-31 Thread Max Filippov
See ISA, 4.7.1.3 for details. Window check is inserted before commands that push "used register watermark" beyond its current level. Used register watermark is reset on instructions that change WINDOW_BASE/WINDOW_START SRs. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 110 ++

[Qemu-devel] [PATCH v3 02/32] target-xtensa: add target to the configure script

2011-08-31 Thread Max Filippov
Signed-off-by: Max Filippov --- configure| 12 +++- default-configs/xtensa-softmmu.mak |1 + default-configs/xtensaeb-softmmu.mak |1 + 3 files changed, 13 insertions(+), 1 deletions(-) create mode 100644 default-configs/xtensa-softmmu.mak create

[Qemu-devel] [PATCH v3 14/32] target-xtensa: implement SYNC group

2011-08-31 Thread Max Filippov
All operations in this group are no-ops, because there are no delayed side effects. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

[Qemu-devel] [PATCH v3 06/32] target-xtensa: add sample board

2011-08-31 Thread Max Filippov
Sample board and sample CPU core are used for debug and may be used for development of custom SoC emulators. This board has two fixed size memory regions for DTCM and ITCM and variable length SRAM region. Signed-off-by: Max Filippov --- Makefile.target|1 + hw/xtensa_sample.c | 105 +++

[Qemu-devel] [PATCH v3 08/32] target-xtensa: implement JX/RET0/CALLX

2011-08-31 Thread Max Filippov
Group SNM0 (indirect jumps and calls). Signed-off-by: Max Filippov --- target-xtensa/translate.c | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index c6ebb3d..400c995 100644

[Qemu-devel] [PATCH v3 05/32] target-xtensa: implement RT0 group

2011-08-31 Thread Max Filippov
NEG and ABS are the only members of RT0 group. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 2ff5838..dcbc0ae 100644 --- a/target-xt

[Qemu-devel] [PATCH v3 13/32] target-xtensa: mark reserved and TBD opcodes

2011-08-31 Thread Max Filippov
Reserved opcodes must generate illegal instruction exception. Usually they signal emulation quality problems. Not implemented opcodes are good to see. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 110 - 1 files changed, 109 insertions(+

[Qemu-devel] [PATCH v3 22/32] target-xtensa: implement unaligned exception option

2011-08-31 Thread Max Filippov
See ISA, 4.4.4 for details. Correct (aligned as per ISA) address for unaligned access is generated in case this option is not enabled. Signed-off-by: Max Filippov --- target-xtensa/helper.c|4 ++- target-xtensa/op_helper.c | 26 target-xtensa/translate.c | 4

[Qemu-devel] [PATCH v3 12/32] target-xtensa: implement LSAI group

2011-08-31 Thread Max Filippov
- base + offset load/store operations for 1/2/4 byte values; - cache operations (not implemented); - multiprocessor synchronization operations. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |1 + target-xtensa/translate.c | 89 + 2 fi

[Qemu-devel] [PATCH v3 30/32] target-xtensa: add dc232b core and board

2011-08-31 Thread Max Filippov
This is Diamond 232L Standard Core Rev.B (LE). Signed-off-by: Max Filippov --- Makefile.target |1 + hw/xtensa_dc232b.c| 112 target-xtensa/gdb-config-dc232b.c | 261 + target-xtensa/helper.c

[Qemu-devel] new memory api: offsets?

2011-08-31 Thread Michael Walle
Hi Avi, while debugging, i noticed, that mr->offset is never set, expect in the initializer. (The subregion collision warning is printed although the regions are not overlapping.) Is this intended? btw. you may include the memory region name in the warning. -- Michael

[Qemu-devel] [PATCH v3 28/32] target-xtensa: add gdb support

2011-08-31 Thread Max Filippov
Specific xtensa processor overlay for GDB contains register map in the gdb/xtensa-config.c. This description is used by the GDB to e.g. parse 'g' response packets and it may be reused in the qemu's gdbstub (only XTREG definitions for non-pseudoregisters are needed). Currently mainline GDB does not

[Qemu-devel] [PATCH v3 21/32] target-xtensa: implement extended L32R

2011-08-31 Thread Max Filippov
See ISA, 4.3.3 for details. TB flag XTENSA_TBFLAG_LITBASE is used to track enable bit of LITBASE SR. Signed-off-by: Max Filippov --- v2 -> v3 changes: - correctly mask stored litbase value on wsr. --- target-xtensa/cpu.h |6 ++ target-xtensa/helper.c|1 + target-xtensa/tra

[Qemu-devel] [PATCH v3 24/32] target-xtensa: implement interrupt option

2011-08-31 Thread Max Filippov
See ISA, 4.4.6 (interrupt option), 4.4.7 (high priority interrupt option) and 4.4.8 (timer interrupt option) for details. Signed-off-by: Max Filippov --- v2 -> v3 changes: - handle IRQ deassertion for INTTYPE_LEVEL interrupts only; - initialize PS at reset in accordance with interrupt option pres

[Qemu-devel] [PATCH v3 31/32] MAINTAINERS: add xtensa maintainer

2011-08-31 Thread Max Filippov
Add myself as target-xtensa and DC232B maintainer. Signed-off-by: Max Filippov --- MAINTAINERS | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 508ea1e..72b2099 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -115,6 +115,12 @@ M:

[Qemu-devel] [PATCH v3 2/4] kvm: ppc: booke206: use MMU API

2011-08-31 Thread Scott Wood
Share the TLB array with KVM. This allows us to set the initial TLB both on initial boot and reset, is useful for debugging, and could eventually be used to support migration. Signed-off-by: Scott Wood --- v3: use glib malloc/free, and fix GCC 4.6 unused variable warning Other patches in set u

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread bifferos
--- On Wed, 31/8/11, Blue Swirl wrote: > I agree about importance of consistency, though I'd even go > further and reformat globally. New code gets introduced > based on copying old code so the pain goes on. I think this is the most important point. I've worked on many projects where coding s

[Qemu-devel] [Bug 824650] Re: Latest GIT assert error in arp_table.c

2011-08-31 Thread Nigel Horne
I am wondering if it's the use of the "-redir tcp:2232::22:" argument which is broken in GIT. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/824650 Title: Latest GIT assert error in arp_table.c Sta

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution v2

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 06:06:09PM -0300, Lucas Meneghel Rodrigues wrote: > Add a test device which supports the kvmctl ioports, > for running the KVM test suite. > > Usage: > > qemu > -chardev file,path=/log/file/some/where,id=testlog > -device pc-testdev,chardev=testlog > > lmr: I'

[Qemu-devel] [PATCH] kvm_unit_tests: vm.c - Retrieve RAM size from fwcfg

2011-08-31 Thread Lucas Meneghel Rodrigues
Rather than letting the test dev do it. CC: Avi Kivity CC: Marcelo Tosatti Signed-off-by: Lucas Meneghel Rodrigues --- lib/x86/fwcfg.c |5 + lib/x86/fwcfg.h |1 + lib/x86/vm.c|2 +- 3 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lib/x86/fwcfg.c b/lib/x86/fwc

[Qemu-devel] [PATCH] hw: Add test device for unittests execution v2

2011-08-31 Thread Lucas Meneghel Rodrigues
Add a test device which supports the kvmctl ioports, for running the KVM test suite. Usage: qemu -chardev file,path=/log/file/some/where,id=testlog -device pc-testdev,chardev=testlog lmr: I've tried to address the comments made by the reviewers, but I probably left out some things. P

[Qemu-devel] [PATCH 2/3] usb-musb: Take a DeviceState* in init function

2011-08-31 Thread Peter Maydell
Initialise usb-musb by passing it a DeviceState* and the offset of the IRQs in its gpio array, rather than a plain pointer to an irq array. This is simpler for callers and also allows us to pass in a valid parent to usb_bus_new(), so the USB bus actually appears in the qdev tree. Signed-off-by: Pe

[Qemu-devel] [PATCH 1/3] usb: Remove leading underscores from __musb_irq_max

2011-08-31 Thread Peter Maydell
Identifiers with double leading underscore are reserved, so rename __musb_irq_max so we don't encroach on reserved namespace. Signed-off-by: Peter Maydell --- hw/tusb6010.c |6 +++--- hw/usb.h |3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/tusb6010.c b/hw/

[Qemu-devel] [PATCH 0/3] usb-musb: make qdev-aware

2011-08-31 Thread Peter Maydell
This patchset has some minor cleanups to usb-musb that we can make now that the only user (tusb6010) is a qdev device. I've thrown in a minor piece of renaming to avoid a C-standard reserved namespace. These patches depend only on the just-committed bdc76462a so they should be fine to go in throu

[Qemu-devel] [PATCH 3/3] usb-musb: Add reset function

2011-08-31 Thread Peter Maydell
From: Juha Riihimäki Add a separate reset function musb_reset() to the usb-musb interface, so that users who implement a reset function can also reset usb-musb. Use this in tusb6010. Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter

[Qemu-devel] [PATCH] mips: Support the MT TCStatus IXMT irq disable flag

2011-08-31 Thread Edgar E. Iglesias
This one goes on top of the recently posted MIPS SMP patches. It allows a linux MIPS SMTC kernel too boot with one VPE and one thread. Multiple threads per core still dont work. Cheers commit 063f70f8faf4b856bd0e3a4d9edac47c7d9aa2d4 Author: Edgar E. Iglesias Date: Tue Aug 30 00:44:28 2011 +0

Re: [Qemu-devel] [PATCH] tusb6010: Convert to qdev

2011-08-31 Thread Edgar E. Iglesias
On Tue, Aug 30, 2011 at 7:36 PM, Peter Maydell wrote: > Convert the tusb6010 to qdev. > > Signed-off-by: Juha Riihimäki > [Riku Voipio: Fixes and restructuring patchset] > Signed-off-by: Riku Voipio > [Peter Maydell: More fixes and cleanups for upstream submission] > Signed-off-by: Peter Maydel

Re: [Qemu-devel] [BUG] error compiling qemu-kvm-0.15.0 without vnc

2011-08-31 Thread Justin M. Forbes
On Wed, 2011-08-31 at 10:14 +0200, Kevin Wolf wrote: > Am 31.08.2011 09:40, schrieb Jan Kiszka: > > On 2011-08-31 02:03, Chris Friesen wrote: > > c62f6d1d76aea587556c85b6b7b5c44167006264 and > > 860341f60582959698d2e1d839a5b7a004a2d76f need to be applied to > > stable-0.15 of upstream QEMU. > > S

Re: [Qemu-devel] [STABLE] Fix forcing multicast msgs to loopback on OpenBSD.

2011-08-31 Thread Justin M. Forbes
On Sun, 2011-08-07 at 21:44 -0400, Brad wrote: > Could this please be pulled back to the 0.15 branch? > > > commit b49b710aae35add54321e4ba1b338cf6db25c2a2 > Author: Brad Smith > Date: Sat Jul 30 19:08:51 2011 -0400 > > Fix forcing multicast msgs to loopback on OpenBSD. > Pulled, thank

[Qemu-devel] [PATCH v2] Add support for r6040 NIC

2011-08-31 Thread bifferos
Here it is again with copyright, typo fix and hopefully now complying with coding standards. Signed-off-by: Mark Kelly diff --git a/Makefile.objs b/Makefile.objs index 6991a9f..7d87503 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -240,6 +240,7 @@ hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o

Re: [Qemu-devel] [PATCH V7 5/9] Support for BIOS interrupt handler

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 09:58:58PM +0200, Edgar E. Iglesias wrote: > On Wed, Aug 31, 2011 at 03:45:45PM -0400, Stefan Berger wrote: > > This patch implements the TCG BIOS interrupt handler 1ah. It is for > > example used by trusted grub. > > > > This patch adds an implementation of SHA1 (following

Re: [Qemu-devel] [PATCH V7 5/9] Support for BIOS interrupt handler

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 03:45:45PM -0400, Stefan Berger wrote: > This patch implements the TCG BIOS interrupt handler 1ah. It is for > example used by trusted grub. > > This patch adds an implementation of SHA1 (following NIST specs., IETF RFC > 3147 > and Wikipedia) for speeding up measurements

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread Blue Swirl
On Wed, Aug 31, 2011 at 7:23 PM, Anthony Liguori wrote: > On 08/31/2011 02:12 PM, Edgar E. Iglesias wrote: >> >> On Wed, Aug 31, 2011 at 01:48:34PM -0500, Anthony Liguori wrote: etc, etc. IMO, those bring codingstyle issues into the pretty much neglectable space. >>> >>> I don't thi

[Qemu-devel] [PATCH V7 4/9] Implementation of the TCG BIOS extensions

2011-08-31 Thread Stefan Berger
This patch implements the main part of the TCG BIOS extensions. It provides the following functionality: - initialization of the TCPA ACPI table used for logging of measurements - initialization of the TPM by sending a sequence of commands to it - proper setup of the TPM once the BIOS hands over c

[Qemu-devel] [PATCH V7 3/9] Add public get_rsdp function

2011-08-31 Thread Stefan Berger
This patch adds a global get_rsdp() function call and refactors find_resume_vector() to call it. Signed-off-by: Stefan Berger --- src/acpi.c | 12 ++-- src/acpi.h |1 + 2 files changed, 11 insertions(+), 2 deletions(-) Index: seabios/src/acpi.c ===

[Qemu-devel] [PATCH V7 0/9] Add TPM support to SeaBIOS

2011-08-31 Thread Stefan Berger
The following set of patches add TPM and Trusted Computing support to SeaBIOS. In particular the patches add: - a TPM driver for the Qemu's TPM TIS emulation (not yet in Qemu git) - ACPI support for the TPM device (SSDT table) - ACPI support for measurement logging (TCPA table) - Support for initi

[Qemu-devel] [PATCH V7 8/9] Support for Qemu-provided measurements

2011-08-31 Thread Stefan Berger
This patch adds support for measurements provided by Qemu via the firmware interface. In the case where Qemu was started with the -kernel, -initrd and -append command lines, Qemu hashes the kernel and initrd files as well as the command line parameters and provides the measurements to SeaBIOS via t

[Qemu-devel] [PATCH V7 6/9] Add measurement code to the BIOS

2011-08-31 Thread Stefan Berger
This patch adds invocactions of functions that measure various parts of the code and data through various parts of the BIOS code. It follows TCG specifications on what needs to be measured. It also adds the implementation of the called functions. Reference for what needs to be measured can be foun

[Qemu-devel] [PATCH V7 7/9] Add a menu for TPM control

2011-08-31 Thread Stefan Berger
This patch provides an addtional menu entry that enables the user to control certain aspects of the TPM. If a working TPM has been detected, the top level BIOS menu will look like this: Press F12 for boot menu. Press F11 to TPM menu. Upon pressing F11 the TPM menu will be shown: 1. Enable TPM 2

[Qemu-devel] [PATCH V7 9/9] Optional tests for the TIS interface

2011-08-31 Thread Stefan Berger
This patch adds an optional test suite (CONFIG_TIS_TEST) for the TIS interface to SeaBIOS. If compiled into the BIOS, it can be invoked through the TPM-specific menu item 8. 1. Enable TPM 2. Disable TPM 3. Activate TPM 4. Deactivate TPM 5. Clear ownership 6. Allow installation of owner 7. Prevent

[Qemu-devel] [PATCH V7 1/9] Add an implementation of a TPM TIS driver

2011-08-31 Thread Stefan Berger
This patch adds an implementation of a TPM TIS driver for the TPM TIS emulation supported by Qemu (patches posted, not in git yet). Usage of the driver is broken up into several functions. The driver is cleanly separated from the rest of the code through an interface holding pointers to the driver'

[Qemu-devel] [PATCH V7 2/9] Provide ACPI SSDT table for TPM device + S3 resume support

2011-08-31 Thread Stefan Berger
This patch provides ACPI support for the TPM device. It probes for the TPM device and only if a TPM device is found then the TPM's SSDT and TCPA table are created. This patch also connects them to the RSDT. Since the logging area in the TCPA table requires 64kb, the memory reserved for ACPI tables

[Qemu-devel] [PATCH V7 5/9] Support for BIOS interrupt handler

2011-08-31 Thread Stefan Berger
This patch implements the TCG BIOS interrupt handler 1ah. It is for example used by trusted grub. This patch adds an implementation of SHA1 (following NIST specs., IETF RFC 3147 and Wikipedia) for speeding up measurements of code. Trusted Grub for example makes use of this interface and measures (

Re: [Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-31 Thread Blue Swirl
On Wed, Aug 31, 2011 at 6:17 PM, Jan Kiszka wrote: > On 2011-08-31 19:41, Blue Swirl wrote: >> On Wed, Aug 31, 2011 at 10:53 AM, Jan Kiszka wrote: >>> On 2011-08-31 10:25, Peter Maydell wrote: On 30 August 2011 20:28, Jan Kiszka wrote: > Yes, that's the current state. Once we have bidir

[Qemu-devel] [PATCH v9 09/14] trace-state: always compile support for controlling and querying trace event states

2011-08-31 Thread Lluís
The current interface is generic for this small set of operations, and thus other backends can easily modify the "trace/control.c" file to add their own implementation. Signed-off-by: Lluís Vilanova --- docs/tracing.txt | 48 ++-- hmp-commands.hx |

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread Anthony Liguori
On 08/31/2011 02:12 PM, Edgar E. Iglesias wrote: On Wed, Aug 31, 2011 at 01:48:34PM -0500, Anthony Liguori wrote: etc, etc. IMO, those bring codingstyle issues into the pretty much neglectable space. I don't think we lack contributors. Documentation and tests are really about discipline. If

[Qemu-devel] [PATCH v9 03/14] trace: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*

2011-08-31 Thread Lluís
Provides a more hierarchical view of the variable domain. Also adds the CONFIG_TRACE_* variables for all backends. Signed-off-by: Lluís Vilanova --- Makefile.target |6 +++--- configure | 20 +++- hmp-commands.hx |4 ++-- monitor.c |8

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 09:12:06PM +0200, Edgar E. Iglesias wrote: > On Wed, Aug 31, 2011 at 01:48:34PM -0500, Anthony Liguori wrote: > > On 08/31/2011 12:59 PM, Edgar E. Iglesias wrote: > > >On Wed, Aug 31, 2011 at 11:06:11AM -0500, Anthony Liguori wrote: > > >>On 08/31/2011 09:35 AM, malc wrote:

[Qemu-devel] [PATCH v9 14/14] trace: enable all events

2011-08-31 Thread Lluís
Given that all events with programmatically-controlled state are disabled by default, we can delete the "disable" property from all events. Signed-off-by: Lluís Vilanova --- trace-events | 648 +- 1 files changed, 324 insertions(+), 324 de

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 01:48:34PM -0500, Anthony Liguori wrote: > On 08/31/2011 12:59 PM, Edgar E. Iglesias wrote: > >On Wed, Aug 31, 2011 at 11:06:11AM -0500, Anthony Liguori wrote: > >>On 08/31/2011 09:35 AM, malc wrote: > >>>On Wed, 31 Aug 2011, Anthony Liguori wrote: > >>> > Upper case fie

[Qemu-devel] [PATCH v9 07/14] trace: generalize the "property" concept in the trace-events file

2011-08-31 Thread Lluís
This adds/modifies the following functions: * get_name: Get _only_ the event name * has_property: Return whether an event has a property (keyword before the event name) Signed-off-by: Lluís Vilanova --- docs/tracing.txt |4 +-- scripts/tracetool | 73 ---

[Qemu-devel] [PATCH v9 11/14] trace-state: always use the "nop" backend on events with the "disable" keyword

2011-08-31 Thread Lluís
Any event with the keyword/property "disable" generates an empty trace event using the "nop" backend, regardless of the current backend. Signed-off-by: Lluís Vilanova --- docs/tracing.txt | 25 +++-- scripts/tracetool | 15 ++- 2 files changed, 17 insertions(

Re: [Qemu-devel] [PATCH] Add support for r6040 NIC

2011-08-31 Thread Edgar E. Iglesias
On Wed, Aug 31, 2011 at 06:46:37PM +, Blue Swirl wrote: > On Wed, Aug 31, 2011 at 5:59 PM, Edgar E. Iglesias > wrote: > > On Wed, Aug 31, 2011 at 11:06:11AM -0500, Anthony Liguori wrote: > >> On 08/31/2011 09:35 AM, malc wrote: > >> >On Wed, 31 Aug 2011, Anthony Liguori wrote: > >> > > >> >>Up

Re: [Qemu-devel] [PATCH 6/6] qdev: Generate IDs for anonymous devices

2011-08-31 Thread Jan Kiszka
On 2011-08-29 23:19, Anthony Liguori wrote: > On 08/29/2011 03:56 PM, Jan Kiszka wrote: >> On 2011-08-29 21:23, Anthony Liguori wrote: >>> On 08/26/2011 09:48 AM, Jan Kiszka wrote: In order to address devices for that the user forgot or is even unable (no_user) to provide an ID, assign an

[Qemu-devel] [PATCH v9 12/14] trace-state: [simple] disable all trace points by default

2011-08-31 Thread Lluís
Note that this refers to the backend-specific state (whether the output must be generated), not the event "disabled" property (which always uses the "nop" backend). Signed-off-by: Lluís Vilanova --- docs/tracing.txt | 11 --- scripts/tracetool |9 ++--- trace-events |

[Qemu-devel] [PATCH v9 10/14] trace-state: add "-trace events" argument to control initial state

2011-08-31 Thread Lluís
The "-trace events" argument can be used to provide a file with a list of trace event names that will be enabled prior to starting execution, thus providing early tracing. This saves the user from manually toggling event states through the monitor interface or whichever backend-specific interface.

  1   2   3   >