[Qemu-devel] Fix refcounting in hugetlbfs quota handling

2011-08-10 Thread David Gibson
Linus, please apply hugetlbfs tracks the current usage of hugepages per hugetlbfs mountpoint. To correctly track this when hugepages are released, it must find the right hugetlbfs super_block from the struct page available in free_huge_page(). It does this by storing a pointer to the hugepage's

Re: [Qemu-devel] [PATCH] Correctly assign PCI domain numbers

2011-08-10 Thread David Gibson
On Wed, Aug 10, 2011 at 11:34:23AM +0300, Michael S. Tsirkin wrote: > On Thu, Aug 04, 2011 at 07:00:38PM +1000, David Gibson wrote: > > On Wed, Aug 03, 2011 at 04:28:33PM +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 02, 2011 at 12:15:22AM +1000, David Gibson wrote: > > > > On Mon, Aug 01, 201

Re: [Qemu-devel] [PATCH 05/11] cs4231a: Convert to MemoryRegion.

2011-08-10 Thread Avi Kivity
On 08/11/2011 09:22 AM, Avi Kivity wrote: On 08/11/2011 01:28 AM, Richard Henderson wrote: } }; +static const MemoryRegionOps cs_ioport_ops = { +.read = cs_read, +.write = cs_write, +.impl = { +.min_access_size = 1, +.max_access_size = 1, +} +}; Should

Re: [Qemu-devel] [PATCH 05/11] cs4231a: Convert to MemoryRegion.

2011-08-10 Thread Avi Kivity
On 08/11/2011 01:28 AM, Richard Henderson wrote: } }; +static const MemoryRegionOps cs_ioport_ops = { +.read = cs_read, +.write = cs_write, +.impl = { +.min_access_size = 1, +.max_access_size = 1, +} +}; Should be .valid, not .impl. .impl means the impl

Re: [Qemu-devel] [PATCH 03/11] isa: add isa_register_ioport()

2011-08-10 Thread Avi Kivity
On 08/11/2011 01:28 AM, Richard Henderson wrote: To replace isa_init_ioport and isa_init_ioport_range as the ISA devices are converted to the memory api. +void isa_register_ioport(ISADevice *dev, MemoryRegion *io, uint16_t start) +{ +memory_region_add_subregion(isabus->address_space_io, sta

Re: [Qemu-devel] [PATCH] Permit -mem-path without sync mmu

2011-08-10 Thread David Gibson
On Wed, Aug 10, 2011 at 12:01:04PM +0300, Avi Kivity wrote: > On 08/10/2011 08:10 AM, David Gibson wrote: > >On Mon, Aug 08, 2011 at 11:24:09AM +0300, Avi Kivity wrote: > >> On 08/08/2011 09:03 AM, David Gibson wrote: [snip] > >This would seem to be a genuine bug in the hugepage code, which has >

Re: [Qemu-devel] [PATCH v4 23/39] lsi53c895a: convert to memory API

2011-08-10 Thread Avi Kivity
On 08/10/2011 10:28 PM, Gerhard Wiesinger wrote: Hello Avi, qemu/qemu-kvm doesn't boot any more with LSI option rom (-option-rom 8xx_64.rom). Guess it comes from changes of the memory API. Also latest git version from seabios. Sorry, no further details currently available. Thanks for your

Re: [Qemu-devel] [PATCH 13/16] usb-hid: add hid_has_events()

2011-08-10 Thread TeLeMan
On Wed, Aug 10, 2011 at 23:17, Gerd Hoffmann wrote: >  Hi, > >>> - >>> -    /* Force poll routine to be run and grab input the first time.  */ >>> -    us->changed = 1; >> >> USB tablet does not work on the winxp guest. I think this code can't be >> removed. >> > > Attached patch should fix that.

Re: [Qemu-devel] [PATCH v5 2/4] block: add the block queue support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:37 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:54:33PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> +BlockDriverAIOCB *qemu_block_queue_enqueue(BlockQu

Re: [Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-10 Thread Stefan Hajnoczi
On Thu, Aug 11, 2011 at 12:44:11PM +0800, Zhi Yong Wu wrote: > On Wed, Aug 10, 2011 at 5:27 PM, Stefan Hajnoczi > wrote: > > On Wed, Aug 10, 2011 at 01:20:22PM +0800, Zhi Yong Wu wrote: > >> On Tue, Aug 9, 2011 at 8:25 PM, Stefan Hajnoczi wrote: > >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu

Re: [Qemu-devel] VNC server running on `127.0.0.1:5900'

2011-08-10 Thread Mulyadi Santosa
Hi... On Thu, Aug 11, 2011 at 06:48, Nithish R wrote: > Here is the output of ./configure > $:~/qemu-0.15.0$ ./configure .. > SDL support       no ^ aha, see? no SDL seems like you need to install sdl and/or sdl-devel package using your distro's package manager...

Re: [Qemu-devel] [PATCH v5 2/4] block: add the block queue support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:37 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:54:33PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> +BlockDriverAIOCB *qemu_block_queue_enqueue(BlockQu

Re: [Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:27 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:20:22PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:25 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> Signed-off-by: Zhi Yong Wu >> >> --- >> >>  Makefi

[Qemu-devel] [0/2] pseries: Further updates

2011-08-10 Thread David Gibson
Hi Alex, Here are a couple of extra pseries patches to add on to the ones you already have in your queue. One is trivial, the other adds a new feature.

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

2011-08-10 Thread David Gibson
This patch adds support for the H_REMOVE_BULK hypercall on the pseries machine. Strictly speaking this isn't necessarym since the kernel will only attempt to use this if hcall-bulk is advertised in the device tree, which previously it was not. Adding this support may give a marginal performance i

[Qemu-devel] [PATCH 1/2] pseries: use macro for firmware filename

2011-08-10 Thread David Gibson
From: Nishanth Aravamudan For some time we've had a nicely defined macro with the filename for our firmware image. However we didn't actually use it in the place we're supposed to. This patch fixes it. Signed-off-by: Nishanth Aravamudan Signed-off-by: David Gibson --- hw/spapr.c |2 +-

Re: [Qemu-devel] [RFC] postcopy livemigration proposal

2011-08-10 Thread Isaku Yamahata
On Wed, Aug 10, 2011 at 04:55:32PM +0300, Avi Kivity wrote: > On 08/09/2011 05:33 AM, Isaku Yamahata wrote: >> On Mon, Aug 08, 2011 at 03:38:54PM +0300, Avi Kivity wrote: >> > On 08/08/2011 06:24 AM, Isaku Yamahata wrote: >> >> This mail is on "Yabusame: Postcopy Live Migration for Qemu/KVM" >> >

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-08-10 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow Status in libvirt virtualization API:

Re: [Qemu-devel] pseries machine updates

2011-08-10 Thread David Gibson
On Wed, Aug 10, 2011 at 05:24:59PM +0200, Alexander Graf wrote: > On 08/10/2011 05:16 PM, Alexander Graf wrote: > >On 08/04/2011 09:02 AM, David Gibson wrote: > >>Hi Alex, > >> > >>Here's another batch of assorted updates for the pseries machine. > > > >Looks pretty nice. Please update patch 2/6 wi

[Qemu-devel] [Bug 697197] Re: Empty password allows access to VNC in libvirt

2011-08-10 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/697197 Title: Empty password allows access to VNC in libvirt Status in libvirt vir

Re: [Qemu-devel] pseries machine updates

2011-08-10 Thread David Gibson
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 updates for the pseries machine. > > Looks pretty nice. Please update patch 2/6 with the bug you found > and the whitespace problems. I'

Re: [Qemu-devel] [PATCH 2/6] Implement POWER7's CFAR in TCG

2011-08-10 Thread David Gibson
On Wed, Aug 10, 2011 at 05:10:11PM +0200, Alexander Graf wrote: > On 08/04/2011 09:02 AM, David Gibson wrote: [snip] > >@@ -187,12 +195,13 @@ typedef struct DisasContext { > > int le_mode; > > #if defined(TARGET_PPC64) > > int sf_mode; > >+int has_cfar; > > #endif > > int fpu_e

[Qemu-devel] [PATCH 08/11] pckbd: Convert to MemoryRegion.

2011-08-10 Thread Richard Henderson
Slightly non-obvious with mips_jazz passing in the region structure to populate. Signed-off-by: Richard Henderson --- hw/mips_jazz.c |4 ++- hw/pc.h|2 +- hw/pckbd.c | 59 ++- 3 files changed, 40 insertions(+), 25 deletion

[Qemu-devel] [PATCH 05/11] cs4231a: Convert to MemoryRegion.

2011-08-10 Thread Richard Henderson
Signed-off-by: Richard Henderson --- hw/cs4231a.c | 38 +++--- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/hw/cs4231a.c b/hw/cs4231a.c index 598f032..e16665e 100644 --- a/hw/cs4231a.c +++ b/hw/cs4231a.c @@ -59,6 +59,7 @@ static struct { type

[Qemu-devel] [PATCH 11/11] fdc: Convert isabus_fdc_init1 to MemoryRegion.

2011-08-10 Thread Richard Henderson
This requires some amount of hoop-jumping, so that we don't inadvertently claim port 0x3f6, which is used by ISA IDE. The sysbus initialization path is as yet unconverted. Signed-off-by: Richard Henderson --- hw/fdc.c | 53 + 1 files changed

[Qemu-devel] [PATCH 06/11] i8254: Convert to MemoryRegion.

2011-08-10 Thread Richard Henderson
Signed-off-by: Richard Henderson --- hw/i8254.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/i8254.c b/hw/i8254.c index a9ca9f6..12571ef 100644 --- a/hw/i8254.c +++ b/hw/i8254.c @@ -55,6 +55,7 @@ typedef struct PITChannelState { typedef struct PIT

[Qemu-devel] [PATCH 04/11] pc: Re-order pc_init1 to initialize the ISA bus before ISA devices.

2011-08-10 Thread Richard Henderson
In particular, the i8259 was being initialized before the ISA bus, leading to a crash. Signed-off-by: Richard Henderson --- hw/pc_piix.c | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 709a1c3..82718ec 100644 --- a

[Qemu-devel] [PATCH 10/11] memory: Fix old_portio vs non-zero offset.

2011-08-10 Thread Richard Henderson
The legacy functions that we're wrapping expect that offset to be included in the register. Indeed, they generally expect the absolute address and then mask off the "high" bits. The FDC is the first converted device with a non-zero offset. Signed-off-by: Richard Henderson --- memory.c |4 +

[Qemu-devel] [PATCH 03/11] isa: add isa_register_ioport()

2011-08-10 Thread Richard Henderson
To replace isa_init_ioport and isa_init_ioport_range as the ISA devices are converted to the memory api. Signed-off-by: Richard Henderson --- hw/isa-bus.c | 10 ++ hw/isa.h |5 - 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c ind

[Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number

2011-08-10 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/584143 Title: qemu fails to set hdd serial number Status in QEMU: Fix Releas

[Qemu-devel] [PATCH 01/11] pci: add pci_address_space_io()

2011-08-10 Thread Richard Henderson
Returns the I/O address space. Useful for implementing PCI-ISA bridge devices. Signed-off-by: Richard Henderson --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 4e495b4..4f7bb7a 100644 --- a/hw/pci.c +++ b/hw/

[Qemu-devel] [PATCH 09/11] serial: Convert serial_isa_initfn to MemoryRegion.

2011-08-10 Thread Richard Henderson
The serial_mm_init path is as yet unconverted. Signed-off-by: Richard Henderson --- hw/serial.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index 0ee61dd..466de21 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -157,6 +157,7 @@

[Qemu-devel] [PATCH 07/11] i8259: Convert to MemoryRegion.

2011-08-10 Thread Richard Henderson
The only non-obvious part is pic_poll_read which used "addr1 >> 7" to detect whether one referred to either the master or slave PIC. Instead, test this directly. Signed-off-by: Richard Henderson --- hw/i8259.c | 65 ++- 1 files changed,

[Qemu-devel] [PATCH 02/11] isa: Pass i/o address space to isa_bus_new.

2011-08-10 Thread Richard Henderson
Not used yet, but at least we're provided with the correct region. Signed-off-by: Richard Henderson --- hw/isa-bus.c |4 +++- hw/isa.h |2 +- hw/mips_jazz.c | 17 ++--- hw/mips_r4k.c |2 +- hw/pc_piix.c |2 +- hw/piix4.c |2 +- hw/piix_pci.c |

[Qemu-devel] [PATCH 00/11] Memory API conversion for ISA

2011-08-10 Thread Richard Henderson
[ Sorry about the partial duplicates, Avi. ] This patchset is relative to git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory-region although I'm sure it could be applied on top of Avi's batch 4. This is not complete by any means. I'm interested in feedback for some of the trickier poi

[Qemu-devel] [PATCH 4/8] Drop the incoming_expected global variable

2011-08-10 Thread Luiz Capitulino
Test against RSTATE_IN_MIGRATE instead. Please, note that the RSTATE_IN_MIGRATE state is only set when all the initial VM setup is done, while 'incoming_expected' was set right in the beginning when parsing command-line options. Shouldn't be a problem as far as I could check. Signed-off-by: Luiz

[Qemu-devel] [PATCH 3/8] RunState: Add additional states

2011-08-10 Thread Luiz Capitulino
Currently, only vm_start() and vm_stop() change the VM state. That's, the state is only changed when starting or stopping the VM. This commit adds the runstate_set() function, which makes it possible to also do state transitions when the VM is stopped or running. Additional states are also added

[Qemu-devel] [PATCH 6/8] Monitor: Don't allow cont on bad VM state

2011-08-10 Thread Luiz Capitulino
We have two states where issuing cont before system_reset can cause problems: RSTATE_SHUTDOWN (when -no-shutdown is used) and RSTATE_PANICKED (which only happens with kvm). This commit fixes that by doing (when in any of the two states): 1. returning an error to the user/client if cont is issued

[Qemu-devel] [PATCH 2/8] Replace the VMSTOP macros with a proper state type

2011-08-10 Thread Luiz Capitulino
Today, when notifying a VM state change with vm_state_notify(), we pass a VMSTOP macro as the 'reason' argument. This is not ideal because the VMSTOP macros tells why qemu stopped and not exactly what the current VM state is. One example to demonstrate this problem is that vm_start() calls vm_stat

[Qemu-devel] [PATCH V7 05/13] Add a debug register

2011-08-10 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). v3: - all output goes to stderr Signed-off-by: Stefan Berger --- hw/tpm_tis.c | 67

[Qemu-devel] [PATCH V7 00/13] Qemu Trusted Platform Module (TPM) integration

2011-08-10 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] [PATCH V7 03/13] Add persistent state handling to TPM TIS frontend driver

2011-08-10 Thread Stefan Berger
This patch adds support for handling of persistent state to the TPM TIS frontend. The currently used buffer is determined (can only be in currently active locality and either be a read or a write buffer) and only that buffer's content is stored. The reverse is done when the state is restored from

[Qemu-devel] [PATCH 7/8] QMP: query-status: Introduce 'status' key

2011-08-10 Thread Luiz Capitulino
This new key reports the current VM status to clients. Please, check the documentation being added in this commit for more details. Signed-off-by: Luiz Capitulino --- monitor.c |3 +-- qmp-commands.hx | 21 - sysemu.h|1 + vl.c| 24 ++

[Qemu-devel] [PATCH 5/8] Drop the vm_running global variable

2011-08-10 Thread Luiz Capitulino
Use vm_is_running() instead, which is introduced by this commit and is part of the RunState API. Signed-off-by: Luiz Capitulino --- cpus.c|9 - gdbstub.c |4 ++-- hw/etraxfs_dma.c |2 +- hw/kvmclock.c |2 +- hw/virtio.c |2 +- migration.

[Qemu-devel] [PATCH V7 09/13] Add block storage support for libtpms based TPM backend

2011-08-10 Thread Stefan Berger
This patch adds support for storing the TPM's persistent state into Qemu block storage, i.e., QCoW2. The TPM creates state of varying size, depending for example how many keys are loaded into it at a certain time. The worst-case sizes of the different blobs the TPM can write have been pre-calculat

[Qemu-devel] [PATCH V7 11/13] Experimental support for block migrating TPMs state

2011-08-10 Thread Stefan Berger
This patch adds (experimental) support for block migration. In the case of block migration an empty QCoW2 image must be found on the destination so that early checks on the content and whether it can be decrytped with the provided key have to be skipped. That empty file needs to be created by high

[Qemu-devel] [PATCH V7 01/13] Support for TPM command line options

2011-08-10 Thread Stefan Berger
This patch adds support for TPM command line options. The command line supported here (considering the libtpms based backend) are ./qemu-... -tpm builtin,path= and ./qemu-... -tpmdev builtin,path=,id= -device tpm-tis,tpmdev= and ./qemu-... -tpmdev ? where the latter works similar t

[Qemu-devel] [PATCH V7 06/13] Add a TPM backend skeleton implementation

2011-08-10 Thread Stefan Berger
This patch provides a TPM backend skeleton implementation. It doesn't do anything useful (except for returning error response for every TPM command) but it compiles. It serves as the basis for the libtpms based backend as well as the null driver backend. v6: - moved unused variable out_len to su

[Qemu-devel] [PATCH 8/8] HMP: info status: Print the VM state

2011-08-10 Thread Luiz Capitulino
Today our printf format for the "info status" command is: VM status: %s Where the string can be "running", "running (single step mode)" or "paused". This commit extends it to: VM status: %s (%s) The second string corresponds to the "status" field as returned by the query-status QMP command

[Qemu-devel] [PATCH v2 0/8]: Introduce the RunState type

2011-08-10 Thread Luiz Capitulino
It replaces the VMSTOP macros and allows us to drop some global variables. Additionally, the problem with issuing 'cont' when the VM is in bad state is addressed and we make the current state available in QMP and HMP. changelog - v2 o Rename the new type from QemuState to RunState (al

[Qemu-devel] [PATCH 1/8] Move vm_state_notify() prototype from cpus.h to sysemu.h

2011-08-10 Thread Luiz Capitulino
It's where all the state handling functions prototypes are located. Signed-off-by: Luiz Capitulino --- cpus.h |1 - sysemu.h |1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpus.h b/cpus.h index f42b54e..5885885 100644 --- a/cpus.h +++ b/cpus.h @@ -15,7 +15,6 @@ vo

[Qemu-devel] [PATCH V7 04/13] Add tpm_tis driver to build process

2011-08-10 Thread Stefan Berger
The TPM interface (tpm_tis) needs to be explicitly enabled via ./configure --enable-tpm. This patch also restricts the building of the TPM support to i386 and x86_64 targets since only there it is currently supported. This prevents that one will end up with support for a frontend but no available b

[Qemu-devel] [PATCH V7 07/13] Implementation of the libtpms-based backend

2011-08-10 Thread Stefan Berger
This patch provides the glue for the TPM TIS interface (frontend) to the libtpms that provides the actual TPM functionality. Some details: This part of the patch provides support for the spawning of a thread that will interact with the libtpms-based TPM. It expects a signal from the frontend to w

[Qemu-devel] [PATCH V7 13/13] Add a TPM backend null driver implementation

2011-08-10 Thread Stefan Berger
This patch adds a TPM null driver implementation acting as a backend for the TIS hardware emulation. The NULL driver responds to all commands with a TPM fault response. To use this null driver, use either -tpm null or -tpmdev null,id=tpm0 -device tpm-tis,tpmdev=tpm0 as parameters on the comman

[Qemu-devel] [PATCH V7 12/13] Support for taking measurements when kernel etc. are passed to Qemu

2011-08-10 Thread Stefan Berger
This patch adds support for hashing the kernel and initrd as well as the command line parameters in the case that Qemu was provided the -kernel, -initrd and -apppend command line parameters. The hashes are then passed to SeaBIOS for logging. Typically SeaBIOS would take those measurements (hashing)

Re: [Qemu-devel] [PATCH v4 23/39] lsi53c895a: convert to memory API

2011-08-10 Thread Gerhard Wiesinger
Hello Avi, qemu/qemu-kvm doesn't boot any more with LSI option rom (-option-rom 8xx_64.rom). Guess it comes from changes of the memory API. Also latest git version from seabios. Sorry, no further details currently available. Ciao, Gerhard -- http://www.wiesinger.com/ On Mon, 8 Aug 2011, A

[Qemu-devel] [PATCH V7 08/13] Introduce file lock for the block layer

2011-08-10 Thread Stefan Berger
This patch introduces file locking via fcntl() for the block layer so that concurrent access to files shared by 2 Qemu instances, for example via NFS, can be serialized. This feature is useful primarily during initial phases of VM migration where the target machine's TIS driver validates the block

[Qemu-devel] [PATCH V7 02/13] Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-08-10 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

[Qemu-devel] [PATCH V7 10/13] Encrypt state blobs using AES CBC encryption

2011-08-10 Thread Stefan Berger
This patch adds encryption of the individual state blobs that are written into the block storage. The 'directory' at the beginnig of the block storage is not encrypted. The encryption support added in this patch would also work if QCoW2 was not to be used as the (only) image file format to store t

Re: [Qemu-devel] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-10 Thread Anthony Liguori
On 08/10/2011 11:40 AM, Avi Kivity wrote: On 08/10/2011 07:23 PM, Anthony Liguori wrote: Right now we have capabilties in the form of -help output. If -help says -no-xzbrle disable xzbrle support (or -migration-compression xzbrle=off, or something) that's sufficient for management tools. T

[Qemu-devel] [Bug 789831] Re: kvm locks up when out of disk space

2011-08-10 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/789831 Title: kvm locks up when out of disk space Status in QEMU: Invalid St

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Avi Kivity
On 08/10/2011 07:26 PM, Richard Henderson wrote: On 08/10/2011 09:24 AM, Richard Henderson wrote: > Of course, as far as I can see, this variable is only used by > the VGA devices. Surely we can arrange to pass down some address > space during setup of the VGA? ... Which seems to be what you

Re: [Qemu-devel] openbsd build failure (+warnings)

2011-08-10 Thread Blue Swirl
On Wed, Aug 10, 2011 at 5:19 PM, Gerd Hoffmann wrote: >  LINK  qemu-ga > /usr/local/lib/libglib-2.0.so.2600.0: warning: vsprintf() is often misused, > please use vsnprintf() > /usr/local/lib/libglib-2.0.so.2600.0: warning: strcpy() is almost always > misused, please use strlcpy() > /usr/local/lib/

Re: [Qemu-devel] openbsd build failure (stable branch)

2011-08-10 Thread Blue Swirl
On Wed, Aug 10, 2011 at 5:21 PM, Gerd Hoffmann wrote: >  LINK  i386-bsd-user/qemu-i386 > /usr/bin/ld:/home/buildbot/slave-spunk/openbsd/build/x86_64.ld:41: syntax > error > collect2: ld returned 1 exit status > gmake[1]: *** [qemu-i386] Error 1 > gmake: *** [subdir-i386-bsd-user] Error 2 The link

Re: [Qemu-devel] [PATCH vLast] ui/spice-core: report compiled-version in info spice/query-spice

2011-08-10 Thread Gerd Hoffmann
On 08/10/11 18:31, Alon Levy wrote: Signed-off-by: Alon Levy Queued up. thanks, Gerd

[Qemu-devel] [PATCH STABLE] qapi: fix build issue due to missing newline in generated header

2011-08-10 Thread Michael Roth
Fixes a build issue on RHEL5, and potentially other distros, where gcc will generate an error due to us not writing a trailing "\n" when generating *qmp-commands.h Signed-off-by: Michael Roth --- scripts/qapi-commands.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/s

[Qemu-devel] Making QEMU ARM work with Mac OS X

2011-08-10 Thread Sherjil Ozair
Hello everyone, I was just trying to see if I could make qemu work on mac os x, but I don't see any pre-compiled binaries. How should I proceed ? Should I try to compile it myself ? If yes, then what would I need to do that ? Else, is there any place where the pre-compiled binaries are available

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

2011-08-10 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 V6 1/9] Add an implementation of a TPM TIS driver

2011-08-10 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 V6 7/9] Add a menu for TPM control

2011-08-10 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 V6 5/9] Support for BIOS interrupt handler

2011-08-10 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 (

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

2011-08-10 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] Fwd: VNC server running on `127.0.0.1:5900'

2011-08-10 Thread Mulyadi Santosa
-- Forwarded message -- From: Mulyadi Santosa Date: Thu, Aug 11, 2011 at 00:42 Subject: Re: [Qemu-devel] VNC server running on `127.0.0.1:5900' To: Nithish R On Wed, Aug 10, 2011 at 20:33, Nithish R wrote: > make clean > ./configure could you show to all of us the complete out

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

2011-08-10 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

Re: [Qemu-devel] [PATCH 2/2] i_generation / st_gen support for handle based fs driver

2011-08-10 Thread Aneesh Kumar K.V
On Wed, 10 Aug 2011 16:17:22 +0100, Stefan Hajnoczi wrote: > On Fri, Aug 5, 2011 at 1:53 PM, Stefan Hajnoczi wrote: > > On Fri, Aug 5, 2011 at 12:32 PM, Aneesh Kumar K.V > > wrote: > >> On Fri, 5 Aug 2011 10:24:42 +0100, Stefan Hajnoczi > >> wrote: > >>> On Fri, Aug 5, 2011 at 7:40 AM, Aneesh

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

2011-08-10 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 ===

Re: [Qemu-devel] build failure with coroutine-gthread

2011-08-10 Thread Blue Swirl
On Wed, Aug 10, 2011 at 9:14 AM, Stefan Hajnoczi wrote: > On Tue, Aug 09, 2011 at 05:28:17PM +, Blue Swirl wrote: >> On Mon, Aug 8, 2011 at 9:29 AM, Stefan Hajnoczi wrote: >> > On Mon, Aug 8, 2011 at 10:01 AM, Aneesh Kumar K.V >> > wrote: >> >> >> >> >> >>  LINK  qemu-ga >> >> coroutine-gthr

[Qemu-devel] openbsd build failure (stable branch)

2011-08-10 Thread Gerd Hoffmann
LINK i386-bsd-user/qemu-i386 /usr/bin/ld:/home/buildbot/slave-spunk/openbsd/build/x86_64.ld:41: syntax error collect2: ld returned 1 exit status gmake[1]: *** [qemu-i386] Error 1 gmake: *** [subdir-i386-bsd-user] Error 2

Re: [Qemu-devel] Safely reopening image files by stashing fds

2011-08-10 Thread Blue Swirl
On Wed, Aug 10, 2011 at 7:58 AM, Kevin Wolf wrote: > Am 09.08.2011 21:39, schrieb Blue Swirl: >> On Tue, Aug 9, 2011 at 12:24 PM, Kevin Wolf wrote: >>> Am 09.08.2011 14:00, schrieb Stefan Hajnoczi: On Tue, Aug 09, 2011 at 01:39:13PM +0200, Kevin Wolf wrote: > Am 09.08.2011 12:56, schrieb

[Qemu-devel] openbsd build failure (+warnings)

2011-08-10 Thread Gerd Hoffmann
LINK qemu-ga /usr/local/lib/libglib-2.0.so.2600.0: warning: vsprintf() is often misused, please use vsnprintf() /usr/local/lib/libglib-2.0.so.2600.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcurl.so.17.0: warning: sprintf() is often misused, please u

[Qemu-devel] fedora 16 build failure

2011-08-10 Thread Gerd Hoffmann
CCui/vnc-tls.o ui/vnc-tls.c: In function ‘vnc_tls_client_setup’: ui/vnc-tls.c:313:9: error: ‘gnutls_kx_set_priority’ is deprecated (declared at /usr/include/gnutls/compat.h:342) [-Werror=deprecated-declarations] ui/vnc-tls.c:320:9: error: ‘gnutls_certificate_type_set_priority’ is deprecat

[Qemu-devel] [Bug 824074] [NEW] Provide runtime option to expose the supported list of keymaps for vnc

2011-08-10 Thread Jorge Manuel B. S. Vicetto
Public bug reported: As discussed in the ganeti group[1], I'm opening this bug to request that qemu provides a runtime command or switch to list the supported keymaps for vnc. [1] - http://groups.google.com/group/ganeti/browse_thread/thread/dd524f5311d8d79e ** Affects: qemu Importance: Und

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

2011-08-10 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 V6 6/9] Add measurement code to the BIOS

2011-08-10 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 V6 0/9] Add TPM support to SeaBIOS

2011-08-10 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

Re: [Qemu-devel] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-10 Thread Avi Kivity
On 08/10/2011 07:23 PM, Anthony Liguori wrote: Right now we have capabilties in the form of -help output. If -help says -no-xzbrle disable xzbrle support (or -migration-compression xzbrle=off, or something) that's sufficient for management tools. This is static, not dynamic. You may attemp

[Qemu-devel] [PULL] seabios update

2011-08-10 Thread Gerd Hoffmann
Hi, This pull brings the latest seabios bits to master, featuring AHCI support with all bells and whistles. So you can finally boot from your AHCI disk, and bootorder works too! The pci device handling got a major update too. Most visible is the two-pass ressource allocation, which will order

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Avi Kivity
On 08/10/2011 07:35 PM, Avi Kivity wrote: On 08/10/2011 07:26 PM, Richard Henderson wrote: On 08/10/2011 09:24 AM, Richard Henderson wrote: > Of course, as far as I can see, this variable is only used by > the VGA devices. Surely we can arrange to pass down some address > space during setup

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Avi Kivity
On 08/10/2011 07:26 PM, Richard Henderson wrote: On 08/10/2011 09:24 AM, Richard Henderson wrote: > Of course, as far as I can see, this variable is only used by > the VGA devices. Surely we can arrange to pass down some address > space during setup of the VGA? ... Which seems to be what you

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Avi Kivity
On 08/10/2011 07:24 PM, Richard Henderson wrote: > @@ -202,4 +203,9 @@ static char *isabus_get_fw_dev_path(DeviceState *dev) > return strdup(path); > } > > +MemoryRegion *isa_address_space(ISADevice *dev) > +{ > +return get_system_memory(); > +} > + This does not help get rid o

[Qemu-devel] [PATCH vLast] ui/spice-core: report compiled-version in info spice/query-spice

2011-08-10 Thread Alon Levy
Signed-off-by: Alon Levy --- ui/spice-core.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 3d77c01..8bb62ea 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -372,6 +372,8 @@ void do_info_spice_print(Monitor *mon, const

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Richard Henderson
On 08/10/2011 09:24 AM, Richard Henderson wrote: > Of course, as far as I can see, this variable is only used by > the VGA devices. Surely we can arrange to pass down some address > space during setup of the VGA? ... Which seems to be what you've done in patch 23. So what's the point of this pat

Re: [Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-10 Thread Richard Henderson
On 08/08/2011 10:07 AM, Avi Kivity wrote: > A helper that returns the address space used by ISA devices. Useful > for getting rid of isa_mem_base, multiple ISA buses, or ISA buses behind > bridges. > > Signed-off-by: Avi Kivity > --- > hw/isa-bus.c |6 ++ > hw/isa.h |1 + > 2 fi

Re: [Qemu-devel] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-10 Thread Anthony Liguori
On 08/10/2011 11:08 AM, Avi Kivity wrote: On 08/10/2011 06:58 PM, Anthony Liguori wrote: I don't think we should couple the two features together. ASN.1 is orthogonal to capabilities. Capabilities are a hard requirement before merging any new type of compression algorithm IMO. Right now we

Re: [Qemu-devel] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-10 Thread Avi Kivity
On 08/10/2011 06:58 PM, Anthony Liguori wrote: I don't think we should couple the two features together. ASN.1 is orthogonal to capabilities. Capabilities are a hard requirement before merging any new type of compression algorithm IMO. Right now we have capabilties in the form of -help out

Re: [Qemu-devel] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-10 Thread Anthony Liguori
On 08/10/2011 10:12 AM, Avi Kivity wrote: On 08/10/2011 06:07 PM, Shribman, Aidan wrote: XBZRLE will very rarely (if at all) degrade live-migration as it runs at ~2 GB/s or 16 Gbps. Additionally XBZRLE could get even faster by using 128bit registers instead of the 64bit registers used currently.

Re: [Qemu-devel] [PATCH 1/2] qxl: unbreak after memory API conversion

2011-08-10 Thread Gerd Hoffmann
On 08/09/11 22:53, Alon Levy wrote: Break is only noticable with newer spice-server library (0.8.2 release or 0.9.0 and newer on master branch). ioport_write's val was changed from uint32_t to uint64_t, this broke two printfs. Use PRId64 instead of %d. Added to the spice patch queue. thanks,

Re: [Qemu-devel] [PATCH v5] ui/spice-core: report compiled-version in info spice/query-spice

2011-08-10 Thread Gerd Hoffmann
+char version_string[20]; // 12 = |255.255.255\0| is the max checkpatch reports: ERROR: do not use C99 // comments #19: FILE: ui/spice-core.c:393: +char version_string[20]; // 12 = |255.255.255\0| is the max cheers, Gerd

Re: [Qemu-devel] pseries machine updates

2011-08-10 Thread Alexander Graf
On 08/10/2011 05:16 PM, Alexander Graf wrote: On 08/04/2011 09:02 AM, David Gibson wrote: Hi Alex, Here's another batch of assorted updates for the pseries machine. Looks pretty nice. Please update patch 2/6 with the bug you found and the whitespace problems. I'll put the others into my tree

Re: [Qemu-devel] [PATCH v4] ui/spice-core: report compiled-version in info spice/query-spice

2011-08-10 Thread Alon Levy
On Wed, Aug 10, 2011 at 06:21:16PM +0300, Alon Levy wrote: > Signed-off-by: Alon Levy NACK, next version uses snprintf. > --- > ui/spice-core.c |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/ui/spice-core.c b/ui/spice-core.c > index 3d77c01..b9d1cd4 100644

  1   2   >