Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
On 13.12.2011, at 07:19, Paul Brook wrote: >>> When compiling qemu statically with multilib on PPC, we hit the >>> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >>> is fixing. Do the same here. >> >> How many of these ld files can we get rid of if we use -Ttext-segment >> inst

Re: [Qemu-devel] buildbot failure in qemu on default_mingw32

2011-12-12 Thread Paolo Bonzini
On 12/13/2011 02:02 AM, q...@buildbot.b1-systems.de wrote: The Buildbot has detected a new failure on builder default_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/114 Buildbot URL: http://buildbot.b1-systems.de/

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Paul Brook
> > When compiling qemu statically with multilib on PPC, we hit the > > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > > is fixing. Do the same here. > > How many of these ld files can we get rid of if we use -Ttext-segment > instead? Generally all we're really caring about is m

Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest

2011-12-12 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest Date: Tue, 13 Dec 2011 11:35:53 +0800 > Hi, hatayama-san > > At 12/13/2011 11:12 AM, HATAYAMA Daisuke Write: >> Hello Wen, >> >> From: Wen Congyang >> Subject: [Qemu-devel] [RFC]

Re: [Qemu-devel] [PATCH V13 0/7] Qemu Trusted Platform Module (TPM) integration

2011-12-12 Thread Stefan Weil
Am 12.12.2011 20:12, schrieb Stefan Berger: The following series of patches adds TPM (Trusted Platform Module) support to Qemu. An emulator for the TIS (TPM Interface Spec) interface is added that provides the basis for accessing a 'backend' implementing the actual TPM functionality. The TIS emul

[Qemu-devel] [PATCH 7/8] pseries: Populate "/chosen/linux, stdout-path" in the FDT

2011-12-12 Thread David Gibson
There is a device tree property "/chosen/linux,stdout-path" which indicates which device should be used as stdout - ie. "the console". Currently we don't specify anything, which means both firmware and Linux choose something arbitrarily. Use the routine we added in the last patch to pick a default

[Qemu-devel] [PATCH 3/8] pseries: FDT NUMA extensions to support multi-node guests

2011-12-12 Thread David Gibson
From: Bharata B Rao Add NUMA specific properties to guest's device tree to boot a multi-node guests. This patch adds the following properties: ibm,associativity ibm,architecture-vec-5 ibm,associativity-reference-points With this, it becomes possible to use -numa option on pseries targets. Sign

[Qemu-devel] [PATCH 6/8] pseries: Add a routine to find a stable "default" vty and use it

2011-12-12 Thread David Gibson
In vty_lookup() we have a special case for supporting early debug in the kernel. This accepts reg == 0 as a special case to mean "any vty". We implement this by searching the vtys on the bus and returning the first we find. This means that the vty we chose depends on the order the vtys are specifi

[Qemu-devel] [PATCH 8/8] pseries: Check for duplicate addresses on the spapr-vio bus

2011-12-12 Thread David Gibson
From: Michael Ellerman Check that devices on the spapr vio bus aren't given duplicate addresses. Currently we will not run with duplicate devices, the fdt code will spot it, but the error reporting is not great. With this patch we can report the error nicely in terms of the device names given by

Re: [Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-12 Thread Paul Brook
> >> +tpm_passthrough="no" > > > > Same as before, please probe for existence. > > We would be probing for /dev/tpm0. Is that really what we want that this > driver only gets compiled if /dev/tpm0 is (currently) available? If what you say is true then this code should always be enabled. Paul

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-12 Thread Paul Brook
> The full set of devices names and properties used in this example are > below: > > Type: I440FX > Is-a: Device > Implements: PciBus > Name: i440fx > Properties: >piix3: Composition >slot[1.0]: Backlink > > Type: PIIX3 > Isa-a: PciDevice > Implements: IsaBus > Name: i44

[Qemu-devel] [PATCH 1/8] pseries: Remove hcalls callback

2011-12-12 Thread David Gibson
For forgotten historical reasons, PAPR hypercalls for specific virtual IO devices (oh which there are quite a number) are registered via a callback in the VIOsPAPRDeviceInfo structure. This is kind of ugly, so this patch instead registers hypercalls from device_init() functions for each device typ

[Qemu-devel] [PATCH 5/8] pseries: Emit device tree nodes in reg order

2011-12-12 Thread David Gibson
Although in theory the device tree has no inherent ordering, in practice the order of nodes in the device tree does effect the order that devices are detected by software. Currently the ordering is determined by the order the devices appear on the QEMU command line. Although that does give the use

[Qemu-devel] [PATCH 2/8] monitor: add ability to dump SLB entries

2011-12-12 Thread David Gibson
From: Nishanth Aravamudan When run with a PPC Book3S (server) CPU Currently 'info tlb' in the qemu monitor reports "dump_mmu: unimplemented". However, during bringup work, it can be quite handy to have the SLB entries, which are available in the CPUPPCState. This patch adds an implementation of

[Qemu-devel] [0/8] Assorted pseries updates

2011-12-12 Thread David Gibson
Now that qemu 1.0 is out there, here are a number of cleanups and minor bugfixes for the pseries machine to queue up for post 1.0. Many of these fix problems with non-default device configurations exposed by the w.i.p. port of libvirt for powerkvm.

Re: [Qemu-devel] [BUG] [Seabios] PCI 64bit BARs on Win2008 - unable to start the device. (ACPI lacks the _DSM method)

2011-12-12 Thread Alexey Korolev
Hi Gerd, I'd strongly suggest to move forward to qemu 1.0. Memory region handling has seen a major rewrite in 1.0 (memory api patches by avi). Chances are good that the 64bit bar bugs in qemu have been fixed meanwhile. Thanks, will try it. Hope it will be better. I have experimental patches

[Qemu-devel] [PATCH] migration.h: remove incoming_expected declarations

2011-12-12 Thread Isaku Yamahata
The variable is deleted by 1bcef683bf840a928d633755031ac572d5fdb851 So remove its declaration. Cc: Luiz Capitulino Signed-off-by: Isaku Yamahata --- migration.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/migration.h b/migration.h index 999d60f..372b066 100644 ---

Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest

2011-12-12 Thread Wen Congyang
Hi, hatayama-san At 12/13/2011 11:12 AM, HATAYAMA Daisuke Write: > Hello Wen, > > From: Wen Congyang > Subject: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is > used by guest > Date: Fri, 09 Dec 2011 15:57:26 +0800 > >> Hi, all >> >> 'virsh dump' can not work when host pc

Re: [Qemu-devel] [PATCH v3 064/197] killall VIOsPAPRDeviceInfo

2011-12-12 Thread David Gibson
On Mon, Dec 12, 2011 at 08:25:51PM -0600, Anthony Liguori wrote: > On 12/12/2011 08:22 PM, Michael Ellerman wrote: > >On Mon, 2011-12-12 at 20:10 -0600, Anthony Liguori wrote: > >>On 12/12/2011 08:04 PM, Michael Ellerman wrote: > >>>On Mon, 2011-12-12 at 14:19 -0600, Anthony Liguori wrote: > Th

Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest

2011-12-12 Thread HATAYAMA Daisuke
Hello Wen, From: Wen Congyang Subject: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest Date: Fri, 09 Dec 2011 15:57:26 +0800 > Hi, all > > 'virsh dump' can not work when host pci device is used by guest. We have > discussed this issue here: > http://lists.non

[Qemu-devel] (no subject)

2011-12-12 Thread Erik Lotspeich
Hi, I posted this on qemu-discuss and didn't receive any replies; sorry for posting it twice. I have OpenSUSE 12.1 and I have a 64-bit Windows 7 VM that recognizes the emulated ICH6 sound (HDA audio device). Although Windows recognizes this sound device just fine, there is no sound from the Wind

[Qemu-devel] [PATCH v3 1/3] memory: add a memory API about ioeventfd for PIO long

2011-12-12 Thread zanghongyong
From: Hongyong Zang The new memory API, named kvm_set_ioeventfd_pio_long, is about ioeventfd for PIO long. Signed-off-by: Hongyong Zang --- kvm-all.c | 23 +++ kvm-stub.c |5 + kvm.h |1 + memory.c | 20 4 files changed, 45 inse

[Qemu-devel] [PATCH v3 3/3] ivshmem: update the spec

2011-12-12 Thread zanghongyong
From: Hongyong Zang Signed-off-by: Hongyong Zang --- docs/specs/ivshmem_device_spec.txt |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/specs/ivshmem_device_spec.txt b/docs/specs/ivshmem_device_spec.txt index 23dd2ba..d36c737 100644 --- a/docs/specs/ivshme

[Qemu-devel] [PATCH v3 2/3] ivshmem: add a new PIO BAR4(Doorbell) to reduce notification time

2011-12-12 Thread zanghongyong
From: Hongyong Zang This patch adds a PIO BAR4 for guest notifying qemu to reduce notification time. And the new notification way of PIO BAR4 reduces 30% time in comparison with the original MMIO BAR0 way. Also, this patch introduces a new feature named IVSHMEM_PIO_NOTIFY to make PIO BAR4 disapp

[Qemu-devel] [PATCH v3 0/3] ivshmem: add a new PIO BAR4(Doorbell) besides MMIO BAR0 to reduce notification time

2011-12-12 Thread zanghongyong
From: Hongyong Zang This patch series, adds a PIO BAR4 for guest notifying qemu. And the new notification way of PIO BAR4 reduces 30% time in comparison with the original MMIO BAR0 way. Meantime, this patch adds a memory API named kvm_set_ioeventfd_pio_long which is about ioeventfd for PIO long.

Re: [Qemu-devel] [PATCH v3 064/197] killall VIOsPAPRDeviceInfo

2011-12-12 Thread Anthony Liguori
On 12/12/2011 08:22 PM, Michael Ellerman wrote: On Mon, 2011-12-12 at 20:10 -0600, Anthony Liguori wrote: On 12/12/2011 08:04 PM, Michael Ellerman wrote: On Mon, 2011-12-12 at 14:19 -0600, Anthony Liguori wrote: This was doing something evil building a dt tree so we broke the device. @@ -71

Re: [Qemu-devel] [PATCH v3 064/197] killall VIOsPAPRDeviceInfo

2011-12-12 Thread Michael Ellerman
On Mon, 2011-12-12 at 20:10 -0600, Anthony Liguori wrote: > On 12/12/2011 08:04 PM, Michael Ellerman wrote: > > On Mon, 2011-12-12 at 14:19 -0600, Anthony Liguori wrote: > >> This was doing something evil building a dt tree so we broke the device. > > > >> @@ -711,8 +711,12 @@ VIOsPAPRBus *spapr_vi

Re: [Qemu-devel] [PATCH V13 1/7] Support for TPM command line options

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:16 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: @@ -2735,6 +2736,15 @@ static mon_cmd_t info_cmds[] = { .help = "show available trace-events& their state", .mhandler.info = do_trace_print_events, }, +#if defined(CONFIG_

Re: [Qemu-devel] [PATCH v3 064/197] killall VIOsPAPRDeviceInfo

2011-12-12 Thread Anthony Liguori
On 12/12/2011 08:04 PM, Michael Ellerman wrote: On Mon, 2011-12-12 at 14:19 -0600, Anthony Liguori wrote: This was doing something evil building a dt tree so we broke the device. @@ -711,8 +711,12 @@ VIOsPAPRBus *spapr_vio_bus_init(void) spapr_rtas_register("ibm,set-tce-bypass", rtas_se

Re: [Qemu-devel] [PATCH v3 064/197] killall VIOsPAPRDeviceInfo

2011-12-12 Thread Michael Ellerman
On Mon, 2011-12-12 at 14:19 -0600, Anthony Liguori wrote: > This was doing something evil building a dt tree so we broke the device. > @@ -711,8 +711,12 @@ VIOsPAPRBus *spapr_vio_bus_init(void) > spapr_rtas_register("ibm,set-tce-bypass", rtas_set_tce_bypass); > spapr_rtas_register("quies

[Qemu-devel] [PATCH 1/2] error: Add an accessor for progname

2011-12-12 Thread mich...@ellerman.id.au
We'd like to get the progname for help output, so add an accessor. Signed-off-by: Michael Ellerman --- qemu-error.c |5 + qemu-error.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/qemu-error.c b/qemu-error.c index 4b20d28..7cd5ffe 100644 --- a/qemu-error.c +++

[Qemu-devel] [PATCH 2/2] vl.c: Print the actual program name in help output

2011-12-12 Thread mich...@ellerman.id.au
In help() we do what boils down to: printf("%s", "qemu"); This seems to be an artifact of be995c27640a82c7056b6f53d02ec823570114e5 ("removed unused code"), which removed some ifdef'ery that used to print a different name depending on CONFIG_SOFTMMU. Instead print the actual program name, origi

[Qemu-devel] [PATCH V2] Fix parse of usb device description with multiple configurations

2011-12-12 Thread mars
From: Cao,Bing Bu Changed From V1: Use DPRINTF instead of fprintf,because it is not an error. When testing ipod on QEMU by He Jie Xu,qemu made a assertion. We found that the ipod with 2 configurations,and the usb-linux did not parse the descriptor correctly. The descr_len returned is the tota

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
On 13.12.2011, at 01:55, Richard Henderson wrote: > On 12/12/2011 01:36 PM, Alexander Graf wrote: >> When compiling qemu statically with multilib on PPC, we hit the >> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >> is fixing. Do the same here. > > How many of these ld files c

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Richard Henderson
On 12/12/2011 01:36 PM, Alexander Graf wrote: > When compiling qemu statically with multilib on PPC, we hit the > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > is fixing. Do the same here. How many of these ld files can we get rid of if we use -Ttext-segment instead? Generally

[Qemu-devel] buildbot failure in qemu on default_mingw32

2011-12-12 Thread qemu
The Buildbot has detected a new failure on builder default_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/114 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason:

Re: [Qemu-devel] [PATCH V13 7/7] Add fd parameter for TPM passthrough driver

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:30 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: Enable the passing of a file descriptor via fd=<..> to access the host's TPM device using the TPM passthrough driver. Signed-off-by: Stefan Berger [...] -tb->s.tpm_pt->tpm_fd = open(tb->s.tpm_pt

Re: [Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:27 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: Introduce --enable-tpm-passthrough configure option. Signed-off-by: Stefan Berger --- configure | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/configure b/con

Re: [Qemu-devel] [PATCH V13 5/7] Add a TPM Passthrough backend driver implementation

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:27 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: From Andreas Niederl's original posting with adaptations where necessary: This patch is based of off version 9 of Stefan Berger's patch series "Qemu Trusted Platform Module (TPM) integration" and ad

Re: [Qemu-devel] [PATCH V13 4/7] Build the TPM frontend code

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:24 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: Build the TPM frontend code that has been added so far. Signed-off-by: Stefan Berger --- Makefile.target |1 + configure | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-

Re: [Qemu-devel] [PATCH V13 2/7] Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-12-12 Thread Stefan Berger
On 12/12/2011 06:23 PM, Anthony Liguori wrote: On 12/12/2011 01:12 PM, Stefan Berger wrote: This patch adds the main code of the TPM frontend driver, the TPM TIS interface, to Qemu. The code is largely based on the previous implementation for Xen but has been significantly extended to meet the

Re: [Qemu-devel] [PATCH v3 03/14] ARM: exynos4210: UART support

2011-12-12 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > From: Maksim Kozlov > > Add basic support of exynos4210 UART > > Conflicts: > >        Makefile.target Don't leave git's conflicts notes in the commit logs :-) > > Signed-off-by: Evgeny Voevodin > --- >  Makefile.target      |    2 +- >  hw/e

Re: [Qemu-devel] [PATCH] build: Cleanup qga make output

2011-12-12 Thread Michael Roth
On 12/12/2011 05:03 PM, Anthony Liguori wrote: On 12/07/2011 10:33 AM, Adam Litke wrote: Currently the make variable qapi-dir refers to the qapi-generated directory in absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output c

[Qemu-devel] buildbot failure in qemu on default_x86_64_rhel5

2011-12-12 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_rhel5 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_rhel5/builds/98 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel5 Build

Re: [Qemu-devel] [PATCH v2 0/4] add qemu_thread_join, use it to fix bug in ccid

2011-12-12 Thread Anthony Liguori
On 12/12/2011 10:21 AM, Paolo Bonzini wrote: Patches introducing qemu_thread_join have floated around multiple times. Now I found a bug that requires it to be fixed, so perhaps this time it will be more successful. For the actual bug, see patch 4. v1->v2: remove spurious submodule change, fix b

Re: [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option

2011-12-12 Thread Anthony Liguori
On 12/06/2011 10:03 PM, Michael Roth wrote: This adds a command-line option, -b/--blacklist, that accepts a comma-seperated list of RPCs to disable, or prints a list of available RPCs if passed "?". In consequence this also adds general blacklisting and RPC listing facilities to the new QMP disp

Re: [Qemu-devel] [PATCH] Add a .mailmap to map pre-git-conversion authors to friendly names

2011-12-12 Thread Anthony Liguori
On 12/12/2011 04:58 AM, Peter Maydell wrote: Add a .mailmap file so 'git shortlog' can map the unfriendly pre-git-conversion author entries to real names. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori --- v1->v2: fixed Andrzej's email to match MAINTAINERS file

[Qemu-devel] [PATCH V13 3/7] Add a debug register

2011-12-12 Thread Stefan Berger
This patch uses the possibility to add a vendor-specific register and adds a debug register useful for dumping the TIS's internal state. This register is only active in a debug build (#define DEBUG_TIS). Signed-off-by: Stefan Berger --- v9: - prefixing all function with tpm_tis_ and all consta

Re: [Qemu-devel] [PATCH 0/2] net: clean up net/socket.c

2011-12-12 Thread Anthony Liguori
On 12/07/2011 09:01 AM, Stefan Hajnoczi wrote: There is no consistent policy on closing the socket file descriptor when net/socket.c initialization fails. This has been on my TODO list for a while and I had a few minutes to fix it now. Applied all. Thanks. Regards, Anthony Liguori Stefan

[Qemu-devel] [PATCH V13 2/7] Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-12-12 Thread Stefan Berger
This patch adds the main code of the TPM frontend driver, the TPM TIS interface, to Qemu. The code is largely based on the previous implementation for Xen but has been significantly extended to meet the standard's requirements, such as the support for changing of localities and all the functionalit

Re: [Qemu-devel] KVM call agenda for Tuesday 13

2011-12-12 Thread Anthony Liguori
On 12/12/2011 05:16 PM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - QOM merge plan I'd also like to do a code walk through of QOM at the first call of the new year. Regards, Anthony Liguori Thanks, Juan.

Re: [Qemu-devel] [PATCH V13 7/7] Add fd parameter for TPM passthrough driver

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: Enable the passing of a file descriptor via fd=<..> to access the host's TPM device using the TPM passthrough driver. Signed-off-by: Stefan Berger --- v13: - Only accepting a character device's file descriptor v12: - added documentation part -

Re: [Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: Introduce --enable-tpm-passthrough configure option. Signed-off-by: Stefan Berger --- configure | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 25995bc..ffb599e 100755 --- a/confi

Re: [Qemu-devel] [PATCH V13 5/7] Add a TPM Passthrough backend driver implementation

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: From Andreas Niederl's original posting with adaptations where necessary: This patch is based of off version 9 of Stefan Berger's patch series "Qemu Trusted Platform Module (TPM) integration" and adds a new backend driver for it. This patch adds

Re: [Qemu-devel] [PATCH V13 4/7] Build the TPM frontend code

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: Build the TPM frontend code that has been added so far. Signed-off-by: Stefan Berger --- Makefile.target |1 + configure | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.targe

Re: [Qemu-devel] [PATCH V13 2/7] Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: This patch adds the main code of the TPM frontend driver, the TPM TIS interface, to Qemu. The code is largely based on the previous implementation for Xen but has been significantly extended to meet the standard's requirements, such as the support for

[Qemu-devel] [PATCH V13 0/7] Qemu Trusted Platform Module (TPM) integration

2011-12-12 Thread Stefan Berger
The following series of patches adds TPM (Trusted Platform Module) support to Qemu. An emulator for the TIS (TPM Interface Spec) interface is added that provides the basis for accessing a 'backend' implementing the actual TPM functionality. The TIS emulator serves as a 'frontend' enabling for examp

[Qemu-devel] KVM call agenda for Tuesday 13

2011-12-12 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Thanks, Juan.

Re: [Qemu-devel] [PATCH V13 1/7] Support for TPM command line options

2011-12-12 Thread Anthony Liguori
On 12/12/2011 01:12 PM, Stefan Berger wrote: This patch adds support for TPM command line options. The command line options supported here are ./qemu-... -tpmdev passthrough,path=,id= -device tpm-tis,tpmdev= and ./qemu-... -tpmdev ? where the latter works similar to -soundhw ? and

[Qemu-devel] [PATCH V13 5/7] Add a TPM Passthrough backend driver implementation

2011-12-12 Thread Stefan Berger
>From Andreas Niederl's original posting with adaptations where necessary: This patch is based of off version 9 of Stefan Berger's patch series "Qemu Trusted Platform Module (TPM) integration" and adds a new backend driver for it. This patch adds a passthrough backend driver for passing command

Re: [Qemu-devel] [PATCH 0/2] split hw/hw.h

2011-12-12 Thread Anthony Liguori
On 12/06/2011 11:34 AM, Paolo Bonzini wrote: Extract qemu-file.h and vmstate.h from it. Last for this week, promised. This conflicts badly for me. Can you rebase? Regards, Anthony Liguori Paolo Bonzini (2): ptimer: move declarations to ptimer.h vmstate: extract declarations out of

Re: [Qemu-devel] [PATCH] build: Cleanup qga make output

2011-12-12 Thread Anthony Liguori
On 12/07/2011 10:33 AM, Adam Litke wrote: Currently the make variable qapi-dir refers to the qapi-generated directory in absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and the build works fine.

[Qemu-devel] [PATCH V13 1/7] Support for TPM command line options

2011-12-12 Thread Stefan Berger
This patch adds support for TPM command line options. The command line options supported here are ./qemu-... -tpmdev passthrough,path=,id= -device tpm-tis,tpmdev= and ./qemu-... -tpmdev ? where the latter works similar to -soundhw ? and shows a list of available TPM backends (for exa

[Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-12 Thread Stefan Berger
Introduce --enable-tpm-passthrough configure option. Signed-off-by: Stefan Berger --- configure | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 25995bc..ffb599e 100755 --- a/configure +++ b/configure @@ -186,6 +186,7 @@ zlib="y

[Qemu-devel] [PATCH V13 4/7] Build the TPM frontend code

2011-12-12 Thread Stefan Berger
Build the TPM frontend code that has been added so far. Signed-off-by: Stefan Berger --- Makefile.target |1 + configure | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target index 39b2e5a..37d5d10 100644 --- a/Makefile.ta

[Qemu-devel] [PATCH V13 7/7] Add fd parameter for TPM passthrough driver

2011-12-12 Thread Stefan Berger
Enable the passing of a file descriptor via fd=<..> to access the host's TPM device using the TPM passthrough driver. Signed-off-by: Stefan Berger --- v13: - Only accepting a character device's file descriptor v12: - added documentation part --- hw/tpm_passthrough.c | 73 +

[Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
When compiling qemu statically with multilib on PPC, we hit the same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 is fixing. Do the same here. Signed-off-by: Alexander Graf --- ppc.ld | 16 ++-- ppc64.ld | 16 ++-- 2 files changed, 28 insertions(+), 4

[Qemu-devel] [PATCH v3 068/197] Patch monkey PCIDeviceInfo conversion

2011-12-12 Thread Anthony Liguori
--- hw/ac97.c | 39 +-- hw/acpi_piix4.c | 43 ++--- hw/apb_pci.c| 54 + hw/bonito.c | 30 +++- hw/cirrus_vga.c | 29 +++ hw/dec_pci.c| 56 ++

[Qemu-devel] [PATCH v3 009/197] qapi: allow a 'gen' key to suppress code generation

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- scripts/qapi-commands.py |1 + scripts/qapi-types.py|1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index f7def16..54d1f5d 100644 --- a/scripts/qapi-commands.py +++ b/scripts/qa

[Qemu-devel] [PATCH v3 010/197] qmp: add qom-list command

2011-12-12 Thread Anthony Liguori
This can be used to list properties in the device model. Signed-off-by: Anthony Liguori --- qapi-schema.json | 48 qmp-commands.hx |6 ++ qmp.c| 28 3 files changed, 82 insertions(+), 0 deletio

[Qemu-devel] [PATCH v3 004/197] qom: introduce root device

2011-12-12 Thread Anthony Liguori
This is based on Jan's suggestion for how to do unique naming. The root device is the root of composition. All devices are reachable via child<> links from this device. Signed-off-by: Anthony Liguori --- Makefile.objs |2 +- hw/container.c | 20 hw/qdev.c | 1

[Qemu-devel] [PATCH v3 040/197] get rid of more DO_UPCAST

2011-12-12 Thread Anthony Liguori
--- hw/scsi-bus.c | 14 +++--- hw/scsi-generic.c |2 +- hw/usb-bus.c | 12 ++-- hw/usb-ccid.c |4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index e8eb521..731c1f3 100644 --- a/hw/scsi-bus.c +++ b/hw/

[Qemu-devel] [PATCH v3 044/197] usb: don't access dev->info directly

2011-12-12 Thread Anthony Liguori
--- hw/usb-bus.c | 81 +--- hw/usb-desc.c | 18 ++-- hw/usb.c | 24 +++-- hw/usb.h | 22 +++ 4 files changed, 117 insertions(+), 28 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 89

[Qemu-devel] [PATCH v3 026/197] qom: add qobject

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- Makefile.objs |2 + hw/qobject.c | 463 hw/qobject.h | 471 + 3 files changed, 936 insertions(+), 0 deletions(-) create mode 100644 hw/qobje

[Qemu-devel] [PATCH v3 059/197] kill off SMBusDeviceInfo

2011-12-12 Thread Anthony Liguori
--- hw/smbus.c| 55 +++-- hw/smbus.h| 35 +++-- hw/smbus_eeprom.c | 27 - 3 files changed, 61 insertions(+), 56 deletions(-) diff --git a/hw/smbus.c b/hw/smbus.c index 2711229

Re: [Qemu-devel] [PATCH v3 01/14] ARM: Samsung exynos4210-based boards emulation

2011-12-12 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > From: Maksim Kozlov > > Add initial code for support of NURI and SMDKC210 boards This patch doesn't compile: /home/pm215/src/qemu/qemu/hw/exynos4210.c: In function ‘exynos4210_init’: /home/pm215/src/qemu/qemu/hw/exynos4210.c:98:14: error: vari

[Qemu-devel] [PATCH v3 06/20] qdev: provide a path resolution (v2)

2011-12-12 Thread Anthony Liguori
There are two types of supported paths--absolute paths and partial paths. Absolute paths are derived from the root device and can follow child<> or link<> properties. Since they can follow link<> properties, they can be arbitrarily long. Absolute paths look like absolute filenames and are prefix

[Qemu-devel] [PATCH v3 000/197] qom: dynamic properties and composition tree (v2)

2011-12-12 Thread Anthony Liguori
This is a follow up to my previous series to get us started in the QOM direction. A few things are different this time around. Most notably: 1) Devices no longer have names. Instead, path names are always used to identify devices. 2) In order to support (1), dynamic properties are now su

[Qemu-devel] [PATCH v3 063/197] make spapr a bit more patch monkey friendly

2011-12-12 Thread Anthony Liguori
--- hw/spapr_llan.c |4 ++-- hw/spapr_vscsi.c |4 ++-- hw/spapr_vty.c |4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/spapr_llan.c b/hw/spapr_llan.c index abe1297..958702c 100644 --- a/hw/spapr_llan.c +++ b/hw/spapr_llan.c @@ -484,7 +484,7 @@ static void v

[Qemu-devel] [PATCH v3 003/197] qom: register legacy properties as new style properties (v2)

2011-12-12 Thread Anthony Liguori
Expose all legacy properties through the new QOM property mechanism. The qdev property types are exposed through the 'legacy<>' namespace. They are always visited as strings since they do their own string parsing. Signed-off-by: Anthony Liguori --- v1 -> v2 - add bus properties (Gerd) --- hw/

[Qemu-devel] [PATCH v3 058/197] fixup type registration

2011-12-12 Thread Anthony Liguori
--- hw/i2c.c |9 +++-- hw/i2c.h |1 + hw/smbus.c |2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/i2c.c b/hw/i2c.c index cdf88f2..fcb7269 100644 --- a/hw/i2c.c +++ b/hw/i2c.c @@ -177,12 +177,17 @@ static int i2c_slave_qdev_init(DeviceState *dev, DeviceI

[Qemu-devel] [PATCH v3 19/20] qdev: add a qdev_get_type() function and expose as a 'type' property

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/qdev.c |7 +++ hw/qdev.h | 14 ++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 0fc20fc..83913c7 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -110,6 +110,8 @@ static DeviceState *qdev_create_fro

[Qemu-devel] [PATCH v3 031/197] qdev: don't access name through info

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/e1000.c |2 +- hw/eepro100.c|2 +- hw/hda-audio.c |2 +- hw/intel-hda.c |2 +- hw/ne2000-isa.c |2 +- hw/ne2000.c |2 +- hw/pci.c |2 +- hw/pcnet.c |2 +- hw/qde

[Qemu-devel] [PATCH v3 01/20] qom: add a reference count to qdev objects

2011-12-12 Thread Anthony Liguori
To ensure that a device isn't removed from the graph until all of its links are broken. Signed-off-by: Anthony Liguori --- hw/qdev.c | 16 hw/qdev.h | 26 ++ 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 1

[Qemu-devel] [PATCH v3 016/197] qom: optimize qdev_get_canonical_path using a parent link

2011-12-12 Thread Anthony Liguori
The full tree search was a bit unreasonable. Signed-off-by: Anthony Liguori --- hw/qdev.c | 56 hw/qdev.h |4 2 files changed, 28 insertions(+), 32 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 5348f26..1102efd 100644 -

[Qemu-devel] [PATCH v3 021/197] qom: add string property type

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/qdev.c | 59 +++ hw/qdev.h | 22 ++ 2 files changed, 81 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 4004860..0fc20fc 100644 --- a/hw/qdev.c +++ b/hw/qd

[Qemu-devel] [PATCH v3 014/197] rtc: make piix3 set the rtc as a child (v2)

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- v1 -> v2 - comments (Stefan) --- hw/pc_piix.c | 11 +++ hw/piix_pci.c |3 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 970f43c..2d5ea2c 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -205,

[Qemu-devel] [PATCH v3 066/197] make es1370 more script monkey friendly

2011-12-12 Thread Anthony Liguori
--- hw/es1370.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index c5c16b0..8a7ca65 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -1041,13 +1041,8 @@ static PCIDeviceInfo es1370_info = { .vendor_id= PCI_VENDOR_ID_ENSONIQ, .dev

[Qemu-devel] [PATCH v3 019/197] bug fix spotted by paolo

2011-12-12 Thread Anthony Liguori
--- hw/qdev.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 1102efd..4004860 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -1228,7 +1228,7 @@ void qdev_property_add_child(DeviceState *dev, const char *name, qdev_property_add(dev, name, type

[Qemu-devel] [PATCH v3 14/20] rtc: make piix3 set the rtc as a child (v2)

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- v1 -> v2 - comments (Stefan) --- hw/pc_piix.c | 11 +++ hw/piix_pci.c |3 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 970f43c..2d5ea2c 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -205,

[Qemu-devel] [PATCH v3 18/20] qom: add string property type

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/qdev.c | 59 +++ hw/qdev.h | 22 ++ 2 files changed, 81 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 4004860..0fc20fc 100644 --- a/hw/qdev.c +++ b/hw/qd

[Qemu-devel] [PATCH v3 053/197] kill off SCSIDeviceInfo

2011-12-12 Thread Anthony Liguori
--- hw/scsi-bus.c | 12 +- hw/scsi-disk.c| 64 ++-- hw/scsi-generic.c | 16 ++-- hw/scsi.h |7 +- 4 files changed, 47 insertions(+), 52 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index cabdb

[Qemu-devel] [PATCH v3 02/20] qom: add new dynamic property infrastructure based on Visitors (v2)

2011-12-12 Thread Anthony Liguori
qdev properties are settable only during construction and static to classes. This isn't flexible enough for QOM. This patch introduces a property interface for qdev that provides dynamic properties that are tied to objects, instead of classes. These properties are Visitor based instead of string

Re: [Qemu-devel] [PATCH] Mark future contributions to GPLv2-only files as GPLv2+

2011-12-12 Thread Anthony Liguori
On 12/12/2011 03:35 PM, Paolo Bonzini wrote: On 12/12/2011 05:36 PM, Anthony Liguori wrote: Even for files are licensed GPLv2-only, let's not play catch with ourselves, and explicitly declare that future contributions to those files will also be available as "any later version". Signed-off-by

[Qemu-devel] [PATCH v3 028/197] more renames

2011-12-12 Thread Anthony Liguori
--- hw/object.h |4 ++-- hw/qdev.h |6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/object.h b/hw/object.h index 1ac2f92..834e89e 100644 --- a/hw/object.h +++ b/hw/object.h @@ -11,8 +11,8 @@ * */ -#ifndef QOBJECT_H -#define QOBJECT_H +#ifndef QEMU_OBJECT

[Qemu-devel] [PATCH v3 062/197] killall HDACodecDeviceInfo

2011-12-12 Thread Anthony Liguori
--- hw/hda-audio.c | 58 ++- hw/intel-hda.c | 43 +++-- hw/intel-hda.h | 26 3 files changed, 81 insertions(+), 46 deletions(-) diff --git a/hw/hda-audio.c b/hw/hda-audio.c index

[Qemu-devel] [PATCH v3 056/197] add I2CSlave to the type hierarchy

2011-12-12 Thread Anthony Liguori
--- hw/i2c.c | 15 +++ hw/i2c.h | 13 + 2 files changed, 28 insertions(+), 0 deletions(-) diff --git a/hw/i2c.c b/hw/i2c.c index 9efe70c..cdf88f2 100644 --- a/hw/i2c.c +++ b/hw/i2c.c @@ -194,3 +194,18 @@ DeviceState *i2c_create_slave(i2c_bus *bus, const char *name, ui

[Qemu-devel] [PATCH v3 10/20] qmp: add qom-list command

2011-12-12 Thread Anthony Liguori
This can be used to list properties in the device model. Signed-off-by: Anthony Liguori --- qapi-schema.json | 48 qmp-commands.hx |6 ++ qmp.c| 28 3 files changed, 82 insertions(+), 0 deletio

[Qemu-devel] [PATCH v3 15/20] rtc: add a dynamic property for retrieving the date

2011-12-12 Thread Anthony Liguori
This really shows the power of dynamic object properties compared to qdev static properties. This property represents a complex structure who's format is preserved over the wire. This is enabled by visitors. It also shows an entirely synthetic property that is not tied to device state. Signed-o

[Qemu-devel] [PATCH v3 024/197] i440fx: split out piix3 device

2011-12-12 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- Makefile.objs |3 + Makefile.target |2 +- hw/piix3.c | 181 ++ hw/piix3.h | 37 + hw/piix_pci.c | 236 +-- 5 files changed, 242 inserti

  1   2   3   >