[Qemu-devel] [PATCH v4 0/5] hpet 'driftfix': alleviate time drift with HPET periodic timers

2011-05-09 Thread Ulrich Obergfell
Hi, This is version 4 of a series of patches that I originally posted in: http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg01989.html http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg01992.html http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg01991.html http:/

[Qemu-devel] [PATCH v4 1/5] hpet 'driftfix': add hooks required to detect coalesced interrupts (x86 apic only)

2011-05-09 Thread Ulrich Obergfell
'target_get_irq_delivered' and 'target_reset_irq_delivered' point to functions that are called by update_irq() to detect coalesced interrupts. Initially they point to stub functions which pretend successful interrupt injection. apic code calls two registration functions to replace the stubs with ap

[Qemu-devel] [PATCH v4 3/5] hpet 'driftfix': add fields to HPETTimer and VMStateDescription

2011-05-09 Thread Ulrich Obergfell
The new fields in HPETTimer are covered by a separate VMStateDescription which is a subsection of 'vmstate_hpet_timer'. They are only migrated if -global hpet.driftfix=on Signed-off-by: Ulrich Obergfell --- hw/hpet.c | 33 + 1 files changed, 33 insertions(+

[Qemu-devel] [PATCH v4 2/5] hpet 'driftfix': add driftfix property to HPETState and DeviceInfo

2011-05-09 Thread Ulrich Obergfell
driftfix is a 'bit type' property. Compensation of delayed callbacks and coalesced interrupts can be enabled with the command line option -global hpet.driftfix=on driftfix is 'off' (disabled) by default. Signed-off-by: Ulrich Obergfell --- hw/hpet.c |3 +++ 1 files changed, 3 insertion

[Qemu-devel] [PATCH v4 5/5] hpet 'driftfix': add code in hpet_timer() to compensate delayed callbacks and coalesced interrupts

2011-05-09 Thread Ulrich Obergfell
Loss of periodic timer interrupts caused by delayed callbacks and by interrupt coalescing is compensated by gradually injecting additional interrupts during subsequent timer intervals, starting at a rate of one additional interrupt per interval. The injection of additional interrupts is based on a

[Qemu-devel] [PATCH v4 4/5] hpet 'driftfix': add code in update_irq() to detect coalesced interrupts (x86 apic only)

2011-05-09 Thread Ulrich Obergfell
update_irq() uses a similar method as in 'rtc_td_hack' to detect coalesced interrupts. The function entry addresses are retrieved from 'target_get_irq_delivered' and 'target_reset_irq_delivered'. This change can be replaced if a generic feedback infrastructure to track coalesced IRQs for periodic,

Re: [Qemu-devel] [PATCH] USB: Fix build breakage in musb

2011-05-09 Thread Gerd Hoffmann
Hi, Looking closer at file hw/usb-musb.c, I'd even recommend removing all 'inline' attributes there: I'll do that. /me wonders why the local test build worked just fine. Seems recent gcc versions became pickier (running gcc 4.4). cheers, Gerd

Re: [Qemu-devel] [PATCH] usb-linux: Add missing break statement

2011-05-09 Thread Gerd Hoffmann
On 05/07/11 22:10, Stefan Weil wrote: cppcheck report: usb-linux.c:661: warning: Redundant assignment of "len" in switch Picked into usb patch queue. thanks, Gerd

Re: [Qemu-devel] Bug #757654: UHCI fails to signal stall response patch

2011-05-09 Thread Gerd Hoffmann
On 05/06/11 10:07, Jan Vesely wrote: hi, using the modified (single line) patch only works half-way, it sets the value in status register (guess that's what that line does :)) but hw interrupt is not generated. I tried adding uhci_update_irq and this patch: +s->status |= UHCI_STS_USBE

Re: [Qemu-devel] implementing ARM926EJ-S support

2011-05-09 Thread Peter Maydell
On 8 May 2011 16:39, Andreas Färber wrote: > Have you checked if some QEMU fork already emulates the Leopardboard 365? > At least the BeagleBoard is available somewhere, not sure about the other > animals. Beagle is a different SoC (OMAP3). I have a patchstack with omap3 support in qemu-linaro t

Re: [Qemu-devel] [PATCH] hw/xen_disk: Remove unused local variable

2011-05-09 Thread Kevin Wolf
Am 08.05.2011 09:01, schrieb Stefan Weil: > cppcheck report: > hw/xen_disk.c:309: style: > Variable 'len' is assigned a value that is never used > > Cc: Kevin Wolf > Signed-off-by: Stefan Weil Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [Qemu-trivial] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend

2011-05-09 Thread Stefan Hajnoczi
On Mon, May 9, 2011 at 7:53 AM, Paolo Bonzini wrote: > On 05/08/2011 01:15 PM, Stefan Hajnoczi wrote: >> >> I think the real problem is that dependencies need to be regenerated >> after ./configure? > > There are three ways to do that, the trivial but wrong one, and the correct > but overzealous o

Re: [Qemu-devel] [Qemu-trivial] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend

2011-05-09 Thread Paolo Bonzini
On 05/09/2011 10:34 AM, Stefan Hajnoczi wrote: BTW the Makefiles don't seem to have a step before compilation to generate all the dependencies, instead dependencies only kick in after the first build has completed? Yes, the first build doesn't need dependencies on headers. Rules for .c->.o an

Re: [Qemu-devel] KVM migration with different source and dest paths

2011-05-09 Thread Avi Kivity
On 05/06/2011 12:30 PM, Onkar Mahajan wrote: Is it possible to migrate KVM guest to different paths like this: path of the image of guest01 on host A /home/joe/guest01.img path of the image of guest01 on host B /home/bill/image/temp/guest01.img is this possible ? if it is any pointers as to

Re: [Qemu-devel] [PATCH] USB: Fix build breakage in musb

2011-05-09 Thread Alexander Graf
On 09.05.2011, at 09:43, Gerd Hoffmann wrote: > Hi, > >> Looking closer at file hw/usb-musb.c, I'd even recommend removing >> all 'inline' attributes there: > > I'll do that. > > /me wonders why the local test build worked just fine. Seems recent gcc > versions became pickier (running gcc 4

Re: [Qemu-devel] [Qemu-trivial] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend

2011-05-09 Thread Stefan Hajnoczi
On Mon, May 9, 2011 at 9:42 AM, Paolo Bonzini wrote: > On 05/09/2011 10:34 AM, Stefan Hajnoczi wrote: >> Is there some smart change detection you are thinking about or just >> something like keeping the old copy of config-host.h and friends to >> see if they have changed? > > Just that, perhaps fo

[Qemu-devel] [general question] virtual environment for WinCE on ARM linux

2011-05-09 Thread r2f
Hello, I'd like to ask if it is possible to run virtualized winCE on embedded linux (ARM) by using QEMU? I am looking for a solution that allows me to run Microsoft apps in embedded linux environment. If there are other alternatives than Qemu, please share your knowledge with me :) Thank you

[Qemu-devel] [PATCH] ide: Turn debug messages into assertions

2011-05-09 Thread Kevin Wolf
These printfs aren't really debug messages, but clearly indicate a bug if they ever become effective. Noone uses DEBUG_IDE, let's re-enable the check unconditionally and make it an assertion instead of printfs in the device emulation. Signed-off-by: Kevin Wolf --- hw/ide/pci.c |8 ++-- 1

[Qemu-devel] [PATCH v2 5/5] block: Remove type hint, it's guest matter, doesn't belong here

2011-05-09 Thread Markus Armbruster
No users of bdrv_get_type_hint() left. bdrv_set_type_hint() can make the media removable by side effect. Make that explicit. Signed-off-by: Markus Armbruster --- block.c | 12 block.h |5 - block_int.h |1 - blockdev.c |4 ++-- 4 files changed, 2 inserti

[Qemu-devel] [PATCH v2 3/5] block QMP: Drop query-block member "type" (type= in info block)

2011-05-09 Thread Markus Armbruster
Its value is unreliable: a block device used as floppy has type "floppy" if created with if=floppy, but type "hd" if created with if=none. That's because with if=none, the type is at best a declaration of intent: the drive can be connected to any guest device. Its type is really the guest device'

[Qemu-devel] [PATCH v2 4/5] blockdev: Store -drive option media in DriveInfo

2011-05-09 Thread Markus Armbruster
DriveInfo is closely tied to -drive, and like -drive, it mixes information about host and guest part of the block device. Unlike DriveInfo, BlockDriverState should be about the host part only. One of the remaining guest bits there is the "type hint". -drive option media sets it, and qdevs "ide-d

[Qemu-devel] [PATCH v2 2/5] scsi: Split qdev "scsi-disk" into "scsi-hd" and "scsi-cd"

2011-05-09 Thread Markus Armbruster
A "scsi-disk" is either a hard disk or a CD-ROM, depending on the associated BlockDriverState's type hint. Unclean; disk vs. CD belongs to the guest part, not the host part. Have separate qdevs "scsi-hd" and "scsi-cd" to model disk vs. CD in the guest part. Keep scsi-disk for backward compatibil

[Qemu-devel] [PATCH v2 0/5] Split ide-drive and scsi-disk qdevs, and more

2011-05-09 Thread Markus Armbruster
This patch series is about purging the "type hint" from the block layer. My previous series cleaned up improper uses it. Remaining uses are info block and qdevs ide-drive, scsi-disk. ide-drive and scsi-disk can either act as disk or as CD drive. They use their drive's type hint to decide betwee

[Qemu-devel] [PATCH v2 1/5] ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd"

2011-05-09 Thread Markus Armbruster
An "ide-drive" is either a hard disk or a CD-ROM, depending on the associated BlockDriverState's type hint. Unclean; disk vs. CD belongs to the guest part, not the host part. Have separate qdevs "ide-hd" and "ide-cd" to model disk vs. CD in the guest part. Keep ide-drive for backward compatibili

Re: [Qemu-devel] Bug #757654: UHCI fails to signal stall response patch

2011-05-09 Thread Jan Vesely
UHCI host controller status register indicates error and an interrupt is triggered on BABBLE and STALL errors. Signed-off-by: Jan Vesely --- hw/usb-uhci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index a65e0b3..1e9c1e7 100644 --- a

Re: [Qemu-devel] Bug #757654: UHCI fails to signal stall response patch

2011-05-09 Thread Gerd Hoffmann
On 05/09/11 12:16, Jan Vesely wrote: UHCI host controller status register indicates error and an interrupt is triggered on BABBLE and STALL errors. Queued up. thanks, Gerd

[Qemu-devel] KVM call agenda for May 10th

2011-05-09 Thread Juan Quintela
Please send in any agenda items you are interested in covering. >From last week, we have already: - import kvm headers into qemu, drop #ifdef maze (Jan) Thanks, Juan.

Re: [Qemu-devel] [PATCH v2 1/5] ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd"

2011-05-09 Thread Gerd Hoffmann
Hi, +#define DEFINE_IDE_DEV_PROPERTIES() \ +DEFINE_PROP_UINT32("unit", IDEDrive, dev.unit, -1), \ +DEFINE_BLOCK_PROPERTIES(IDEDrive, dev.conf),\ +DEFINE_PROP_STRING("ver", IDEDrive, dev.version), \ +DEFINE_PROP_STRING("serial", IDEDrive, dev.seria

Re: [Qemu-devel] [PATCH v2 0/5] Split ide-drive and scsi-disk qdevs, and more

2011-05-09 Thread Gerd Hoffmann
On 05/09/11 11:51, Markus Armbruster wrote: This patch series is about purging the "type hint" from the block layer. My previous series cleaned up improper uses it. Remaining uses are info block and qdevs ide-drive, scsi-disk. Nice cleanup, looks good to me. Acked-by: Gerd Hoffmann cheers,

[Qemu-devel] [PATCH 1/2] usb-musb: uninline functions

2011-05-09 Thread Gerd Hoffmann
Prototype without "inline" keyword breaks the build with some gcc versions. Noticed by Alexander Graf. Fix this by removing the inline keywork everywhere. Some functions can't be inlined anyway as the are referenced using function pointers. Beside that gcc does a pretty good job on auto-inlining

[Qemu-devel] [PULL] usb: build fixes.

2011-05-09 Thread Gerd Hoffmann
Hi, Two build issues slipped through with the last usb patch queue pull. Looks like I should do test builds with a more recent gcc ... Here are the fixes. pleae pull, Gerd The following changes since commit 85097db6956bc86e2377b63a8309cb8b24d54139: irq: Privatize CPU_INTERRUPT_NMI. (2011

[Qemu-devel] [PATCH 2/2] usb-linux: Add missing break statement

2011-05-09 Thread Gerd Hoffmann
From: Stefan Weil cppcheck report: usb-linux.c:661: warning: Redundant assignment of "len" in switch Please check whether adding a break statement is the correct solution for this warning. Cc: Hans de Goede Cc: Gerd Hoffmann Signed-off-by: Stefan Weil Signed-off-by: Gerd Hoffmann --- usb-l

Re: [Qemu-devel] [PATCH] ide: Turn debug messages into assertions

2011-05-09 Thread Stefan Hajnoczi
On Mon, May 9, 2011 at 10:52 AM, Kevin Wolf wrote: > These printfs aren't really debug messages, but clearly indicate a bug if they > ever become effective. Noone uses DEBUG_IDE, let's re-enable the check > unconditionally and make it an assertion instead of printfs in the device > emulation. > >

Re: [Qemu-devel] [PULL] usb: build fixes.

2011-05-09 Thread Peter Maydell
On 9 May 2011 14:11, Gerd Hoffmann wrote: > Here are the fixes. > > pleae pull, > Stefan Weil (1): >      usb-linux: Add missing break statement The commit comment for this change looks like it still includes the remark: # Please check whether adding a break statement is the correct # solution

Re: [Qemu-devel] [PATCH 1/2] Add documentation for qemu_progres_print()

2011-05-09 Thread Jes Sorensen
On 05/06/11 17:10, Markus Armbruster wrote: > Jes Sorensen writes: >> What you add is a delta, which is relative to the max. We can change the >> argument name of the function to be delta instead if that makes it >> easier to follow. > > Here's my try: > > /* > * Report progress. > * @percent

Re: [Qemu-devel] [PATCH 1/2] Add documentation for qemu_progres_print()

2011-05-09 Thread Markus Armbruster
Jes Sorensen writes: > On 05/06/11 17:10, Markus Armbruster wrote: >> Jes Sorensen writes: >>> What you add is a delta, which is relative to the max. We can change the >>> argument name of the function to be delta instead if that makes it >>> easier to follow. >> >> Here's my try: >> >> /* >>

Re: [Qemu-devel] [PATCH 0/3]: QMP: Introduce inject-nmi command

2011-05-09 Thread Luiz Capitulino
On Fri, 6 May 2011 18:36:31 +0300 Blue Swirl wrote: > On Fri, May 6, 2011 at 12:08 PM, Markus Armbruster wrote: > > Blue Swirl writes: > > > >> On Mon, May 2, 2011 at 6:57 PM, Luiz Capitulino > >> wrote: > >>> On Sat, 30 Apr 2011 09:33:15 +0300 > >>> Blue Swirl wrote: > >>> > On Sat, Ap

[Qemu-devel] [RFC] live snapshot, live merge, live block migration

2011-05-09 Thread Dor Laor
No patch here (sorry) but collection of thoughts about these features and their potential building blocks. Please review (also on http://wiki.qemu.org/Features/LiveBlockMigration) Future qemu is expected to support these features (some already implemented): * Live block copy Ability to

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-09 Thread Paul Brook
> The e500 PCI controller isn't qdev'ified yet. This leads to severe issues > when running with -drive. > > To be able to use a virtio disk with an e500 VM, let's convert the PCI > controller over to qdev. > > Signed-off-by: Alexander Graf Reviewed-by: Paul Brook

Re: [Qemu-devel] [PATCH] virtio: guard against negative vq notifies

2011-05-09 Thread Stefan Hajnoczi
On Sun, May 8, 2011 at 10:29 PM, Stefan Hajnoczi wrote: > The virtio_queue_notify() function checks that the virtqueue number is > less than the maximum number of virtqueues.  A signed comparison is used > but the virtqueue number could be negative if a buggy or malicious guest > is run.  This res

Re: [Qemu-devel] [PATCH V15 00/18] Xen device model support

2011-05-09 Thread Alexander Graf
On 05/05/2011 12:58 PM, anthony.per...@citrix.com wrote: From: Anthony PERARD Hi all, Here is an update on the series that add the support of a Xen HVM guest to QEMU. It doesn't introduce regressions and I really don't want to keep this patch set hanging more than it should be. If we encount

Re: [Qemu-devel] [RFC] darwin: work around sigfd

2011-05-09 Thread Alexander Graf
On 05/08/2011 12:10 PM, Andreas Färber wrote: Alex, Am 08.05.2011 um 11:15 schrieb Andreas Färber: Am 05.05.2011 um 15:15 schrieb Alexander Graf: On 05.05.2011, at 14:56, Paolo Bonzini wrote: On 05/05/2011 11:36 AM, Alexander Graf wrote: When running qemu-system on Darwin, the vcpu process

Re: [Qemu-devel] Allow ARMv7M to be started without a kernel

2011-05-09 Thread Alexander Graf
On 05/08/2011 08:25 PM, Rob Landley wrote: On 05/08/2011 09:10 AM, Andreas Färber wrote: Am 06.05.2011 um 14:48 schrieb Alexander Graf: On 06.05.2011, at 01:50, Rob Landley wrote: On 05/05/2011 06:26 PM, Alexander Graf wrote: As an aside: I think QEMU should have an option which is "just lo

Re: [Qemu-devel] ahci: crash after duplicate bh registration

2011-05-09 Thread Alexander Graf
On 05/08/2011 09:10 PM, Jan Kiszka wrote: Hi Alex, I've seen crashes caused by ahci_check_cmd_bh unregistering a NULL bh. It looks like ahci_dma_set_inactive can a called while there is already a bh hanging around. Patch below cures the issue, but I have no clue if such an invocation order is va

Re: [Qemu-devel] [PATCH V4 00/10] Qemu Trusted Platform Module (TPM) integration

2011-05-09 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > The following series of patches adds a TPM (Trusted Platform Module) > TIS (TPM Interface Spec) interface to Qemu and with that provides > means to access a backend implementing the actual TPM functionality. > This frontend enables for example L

Re: [Qemu-devel] ahci: crash after duplicate bh registration

2011-05-09 Thread Kevin Wolf
Am 09.05.2011 16:12, schrieb Alexander Graf: > On 05/08/2011 09:10 PM, Jan Kiszka wrote: >> Hi Alex, >> >> I've seen crashes caused by ahci_check_cmd_bh unregistering a NULL bh. >> It looks like ahci_dma_set_inactive can a called while there is already >> a bh hanging around. Patch below cures the

Re: [Qemu-devel] [PULL] usb: build fixes.

2011-05-09 Thread Gerd Hoffmann
On 05/09/11 14:50, Peter Maydell wrote: On 9 May 2011 14:11, Gerd Hoffmann wrote: Here are the fixes. pleae pull, Stefan Weil (1): usb-linux: Add missing break statement The commit comment for this change looks like it still includes the remark: # Please check whether adding a brea

Re: [Qemu-devel] [PATCH V15 00/18] Xen device model support

2011-05-09 Thread Anthony Liguori
On 05/09/2011 08:58 AM, Alexander Graf wrote: On 05/05/2011 12:58 PM, anthony.per...@citrix.com wrote: From: Anthony PERARD Hi all, Here is an update on the series that add the support of a Xen HVM guest to QEMU. It doesn't introduce regressions and I really don't want to keep this patch set

Re: [Qemu-devel] ahci: crash after duplicate bh registration

2011-05-09 Thread Alexander Graf
On 05/09/2011 04:26 PM, Kevin Wolf wrote: Am 09.05.2011 16:12, schrieb Alexander Graf: On 05/08/2011 09:10 PM, Jan Kiszka wrote: Hi Alex, I've seen crashes caused by ahci_check_cmd_bh unregistering a NULL bh. It looks like ahci_dma_set_inactive can a called while there is already a bh hanging

Re: [Qemu-devel] ahci: crash after duplicate bh registration

2011-05-09 Thread Jan Kiszka
On 2011-05-09 16:31, Alexander Graf wrote: > On 05/09/2011 04:26 PM, Kevin Wolf wrote: >> Am 09.05.2011 16:12, schrieb Alexander Graf: >>> On 05/08/2011 09:10 PM, Jan Kiszka wrote: Hi Alex, I've seen crashes caused by ahci_check_cmd_bh unregistering a NULL bh. It looks like ahci

Re: [Qemu-devel] [RFC] live snapshot, live merge, live block migration

2011-05-09 Thread Anthony Liguori
On 05/09/2011 08:40 AM, Dor Laor wrote: No patch here (sorry) but collection of thoughts about these features and their potential building blocks. Please review (also on http://wiki.qemu.org/Features/LiveBlockMigration) Future qemu is expected to support these features (some already implemented)

[Qemu-devel] [PATCH replacement 1/1] Add documentation for qemu_progress_{init, print}()

2011-05-09 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-common.h |2 +- qemu-progress.c | 24 +--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index f9f705d..78b7a4a 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -

[Qemu-devel] [PATCH v2 1/2] qemu-tool: Stub out qemu-timer functions

2011-05-09 Thread Stefan Hajnoczi
Block drivers may use timers for flushing metadata to disk or reconnecting to a network drive. Stub out the following functions in qemu-tool.c: QEMUTimer *qemu_new_timer_ns(QEMUClock *clock, int scale, QEMUTimerCB *cb, void *opaque) void qemu_free_timer(QEMUTimer *ts)

[Qemu-devel] [PATCH v2 0/2] qed: Periodically flush and clear need check bit

2011-05-09 Thread Stefan Hajnoczi
This patch marks QED images as clean periodically when it is safe to do so. This reduces the chance of having to perform a consistency check at startup. Previously we left the image dirty even when it was consistent, therefore risking an unnecessary consistency check after crash. The first patch s

[Qemu-devel] [PATCH v2 2/2] qed: Periodically flush and clear need check bit

2011-05-09 Thread Stefan Hajnoczi
One strategy to limit the startup delay of consistency check when opening image files is to ensure that the file is marked dirty for as little time as possible. QED currently marks the image dirty when the first allocating write request is issued and clears the dirty bit again when the image is cl

[Qemu-devel] [PATCH] ahci: Fix crashes on duplicate BH registration

2011-05-09 Thread Jan Kiszka
If ahci_dma_set_inactive is called a while there is still a pending BH from a previous run, we will crash on the second run of ahci_check_cmd_bh as it overwrites AHCIDevice::check_bh. Avoid this broken and redundant duplicate registration. Signed-off-by: Jan Kiszka --- hw/ide/ahci.c |8 +

[Qemu-devel] [RFC] Specification for qcow2 version 3

2011-05-09 Thread Kevin Wolf
Hi all, this is a first draft for what I think could be added when we increase qcow2's version number to 3. This includes points that have been made by several people over the past few months. We're probably not going to implement this next week, but I think it's important to get discussions start

Re: [Qemu-devel] Allow ARMv7M to be started without a kernel

2011-05-09 Thread Peter Maydell
On 9 May 2011 16:11, Alexander Graf wrote: [about -kernel, unless I've got confused] > The issue is that this is not how it works on real hardware. Grub won't just > load a vmlinux file and boot it. I'm not even sure how much exactly the > early entry code handles in Linux before it jumps to the E

[Qemu-devel] [RFC PATCH] virtio-balloon: Re-register memory as balloon deflates

2011-05-09 Thread Alex Williamson
When we balloon a guest, we currently use madvise to let the underlying VM know our intentions for those pages. As the balloon inflates (pages given back to the host), MMU notifiers in the host let us detach the pages. When we deflate the balloon and retrieve pages back from the host, I'm not sur

Re: [Qemu-devel] [PATCH V4 00/10] Qemu Trusted Platform Module (TPM) integration

2011-05-09 Thread Stefan Berger
On 05/09/2011 10:21 AM, Serge E. Hallyn wrote: Quoting Stefan Berger (stef...@linux.vnet.ibm.com): The following series of patches adds a TPM (Trusted Platform Module) TIS (TPM Interface Spec) interface to Qemu and with that provides means to access a backend implementing the actual TPM function

[Qemu-devel] [PULL] Xen HVM support

2011-05-09 Thread Alexander Graf
Hi Anthony, These are Anthony's patches for Xen HVM support, nicely signed off, rebased to fit today's HEAD and compile tested. Please pull. Alex The following changes since commit 85097db6956bc86e2377b63a8309cb8b24d54139: Richard Henderson (1): irq: Privatize CPU_INTERRUPT_NMI. are

Re: [Qemu-devel] [PULL] usb: build fixes.

2011-05-09 Thread Anthony Liguori
On 05/09/2011 09:25 AM, Gerd Hoffmann wrote: On 05/09/11 14:50, Peter Maydell wrote: On 9 May 2011 14:11, Gerd Hoffmann wrote: Here are the fixes. pleae pull, Stefan Weil (1): usb-linux: Add missing break statement The commit comment for this change looks like it still includes the remark

Re: [Qemu-devel] [PATCH] target-lm32: Remove unused local variables

2011-05-09 Thread Michael Walle
Am Samstag 07 Mai 2011, 22:49:33 schrieb Stefan Weil: > cppcheck report: > target-lm32/translate.c:587: style: > Variable 't0' is assigned a value that is never used > target-lm32/translate.c:588: style: > Variable 'l1' is assigned a value that is never used > > Remove both variables. Plea

[Qemu-devel] Hi

2011-05-09 Thread silmara
how are you? i bought an iphone from this website, and received it, very amazing, they also sell blackberry.conon camera,laptop.tv and so on.the price is much lower. Web : eorol.com 2:43:24

Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU

2011-05-09 Thread Scott Wood
On Sat, 7 May 2011 23:36:29 +0200 Alexander Graf wrote: > On 07.05.2011, at 00:25, Scott Wood wrote: > >> +void helper_booke206_tlbsx(target_ulong address_hi, target_ulong > >> address_lo) > > > > What is address_hi? > > > > From gen_tlbsx_booke206() it looks like these two arguments correspon

Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU

2011-05-09 Thread Alexander Graf
On 09.05.2011, at 21:27, Scott Wood wrote: > On Sat, 7 May 2011 23:36:29 +0200 > Alexander Graf wrote: > >> On 07.05.2011, at 00:25, Scott Wood wrote: +void helper_booke206_tlbsx(target_ulong address_hi, target_ulong address_lo) >>> >>> What is address_hi? >>> >>> From gen_tlbsx_bo

Re: [Qemu-devel] [RFC 18/28] target-xtensa: implement exceptions

2011-05-09 Thread Max Filippov
> > This is a case where you almost certainly want to check this > > condition inside QEMU and translate the opcode differently. > > > > See cpu_get_tb_cpu_state, which sets bits in *flags. These > > flags can then be checked in tb->flags while translating. > > At which point you'd avoid all the

Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU

2011-05-09 Thread Scott Wood
On Mon, 9 May 2011 21:36:12 +0200 Alexander Graf wrote: > > On 09.05.2011, at 21:27, Scott Wood wrote: > > > On Sat, 7 May 2011 23:36:29 +0200 > > Alexander Graf wrote: > > > >> On 07.05.2011, at 00:25, Scott Wood wrote: > +void helper_booke206_tlbsx(target_ulong address_hi, target_ulong

Re: [Qemu-devel] [RFC 18/28] target-xtensa: implement exceptions

2011-05-09 Thread Richard Henderson
On 05/09/2011 12:38 PM, Max Filippov wrote: > do I understand it right that if I use tb->flags or mem_index to make > decisions during translation, then I must issue exit_tb on > instructions that can change state they reflect? Yes. Quite often it's some sort of branch instruction anyway, such as

Re: [Qemu-devel] [RFC] live snapshot, live merge, live block migration

2011-05-09 Thread Dor Laor
On 05/09/2011 06:23 PM, Anthony Liguori wrote: On 05/09/2011 08:40 AM, Dor Laor wrote: No patch here (sorry) but collection of thoughts about these features and their potential building blocks. Please review (also on http://wiki.qemu.org/Features/LiveBlockMigration) Future qemu is expected to s

[Qemu-devel] [PATCH 01/35] Export the unassigned_mem read/write functions.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- cpu-common.h |7 +++ exec.c | 12 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index 6410ccc..6e48917 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -56,6 +56,13 @@ static inline void

[Qemu-devel] [PATCH 02/35] target-alpha: Disassemble EV6 PALcode instructions.

2011-05-09 Thread Richard Henderson
The QEMU emulation PALcode will use EV6 PALcode insns regardless of the "real" cpu instruction set being emulated. Signed-off-by: Richard Henderson --- alpha-dis.c |4 dis-asm.h |3 +++ disas.c |2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/alpha-dis

[Qemu-devel] [PATCH 00/35] Alpha system emulation, v4

2011-05-09 Thread Richard Henderson
Since virtio devices intentionally access memory directly, we are not actually dependant on the iommu patches in order to make progress. Merely fixing the PCI interrupt setup was enough to get the virtio-pci interface working. We now make it quite a long way into the Debian Lenny install. At

[Qemu-devel] [PATCH 11/35] target-alpha: Add IPRs to be used by the emulation PALcode.

2011-05-09 Thread Richard Henderson
These aren't actually used yet, but we can at least access them via the HW_MFPR and HW_MTPR instructions. Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 13 +++ target-alpha/translate.c | 87 - 2 files changed, 98 insertions(+)

[Qemu-devel] [PATCH 03/35] pci: Export pci_to_cpu_addr.

2011-05-09 Thread Richard Henderson
This is, more or less, the read accessor to pci_bus_set_mem_base as a write accessor. It will be needed for implementing sparse memory spaces for Alpha. Signed-off-by: Richard Henderson --- hw/pci.c |3 +-- hw/pci.h |1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 04/35] target-alpha: Single-step properly across branches.

2011-05-09 Thread Richard Henderson
We were failing to generate EXC_DEBUG in the EXIT_PC_UPDATED path. This caused us not to stop at the instruction after a branch, but on the instruction afterward. Signed-off-by: Richard Henderson --- target-alpha/translate.c | 35 --- 1 files changed, 20 inserti

[Qemu-devel] [PATCH 14/35] target-alpha: Merge HW_REI and HW_RET implementations.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/translate.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 9e1576d..09edb0f 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@

[Qemu-devel] [PATCH 07/35] target-alpha: Tidy exception constants.

2011-05-09 Thread Richard Henderson
There's no need to attempt to match EXCP_* values with PALcode entry point offsets. Instead, compress all the values to make for more efficient switch statements within QEMU. We will be doing TLB fill within QEMU proper, not within the PALcode, so all of the ITB/DTB miss, double fault, and access

[Qemu-devel] [PATCH 09/35] target-alpha: Cleanup MMU modes.

2011-05-09 Thread Richard Henderson
Don't bother including executive and supervisor modes. Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 36 1 files changed, 28 insertions(+), 8 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 1fc21dc..bdd396c 100644 --- a/

[Qemu-devel] [PATCH 06/35] target-alpha: Enable the alpha-softmmu target.

2011-05-09 Thread Richard Henderson
Compiles, but no machine defined yet, so this will crash on startup. Signed-off-by: Richard Henderson --- Makefile.target |3 +- configure |1 + default-configs/alpha-softmmu.mak |9 target-alpha/machine.c| 87 +

[Qemu-devel] [PATCH 12/35] target-alpha: Tidy up arithmetic exceptions.

2011-05-09 Thread Richard Henderson
Introduce and use arith_excp, filling in the trap_arg[01] IPRs. Signed-off-by: Richard Henderson --- target-alpha/op_helper.c | 34 +- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index 73e5

[Qemu-devel] [PATCH 17/35] target-alpha: Add various symbolic constants.

2011-05-09 Thread Richard Henderson
The EXC_M_* constants were being set for the EV6, not as set for the Unix kernel entry point. Use PS_USER_MODE instead of hard-coding access to the PS register. Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 56 +++-- target-alpha/trans

[Qemu-devel] [PATCH 13/35] target-alpha: Use do_restore_state for arithmetic exceptions.

2011-05-09 Thread Richard Henderson
This gets the PC right after an arithmetic exception. Also tidies the code in the TLB fault handlers to use common code. Signed-off-by: Richard Henderson --- target-alpha/op_helper.c | 49 - 1 files changed, 30 insertions(+), 19 deletions(-) diff -

[Qemu-devel] [PATCH 10/35] target-alpha: Fixup translation of PALmode instructions.

2011-05-09 Thread Richard Henderson
All of the "raw" memory accesses should be "phys" instead. Fix some confusion about argument ordering of the store routines. Fix the implementation of store-conditional. Delete the "alt-mode" helpers. Because we only implement two mmu modes, let /a imply user-mode unconditionally. For the momen

[Qemu-devel] [PATCH 08/35] target-alpha: Rationalize internal processor registers.

2011-05-09 Thread Richard Henderson
Delete all the code that tried to emulate the real IPRs of some unnamed CPU. Replace those with just 3 slots that we can use to communicate trap information between the helper functions that signal exceptions and the OS trap handler. Signed-off-by: Richard Henderson --- linux-user/main.c

[Qemu-devel] [PATCH 18/35] target-alpha: Use kernel mmu_idx for pal_mode.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/cpu.h |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 50a8109..88281bb 100644 --- a/target-alpha/cpu.h +++ b/target-alpha/cpu.h @@ -357,7 +357,13 @@ enum { static inl

[Qemu-devel] [PATCH 15/35] target-alpha: Implement do_interrupt for system mode.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.c | 121 + 1 files changed, 111 insertions(+), 10 deletions(-) diff --git a/target-alpha/helper.c b/target-alpha/helper.c index c5479fd..a49f632 100644 --- a/target-alpha/helper.c +++ b/targ

[Qemu-devel] [PATCH 20/35] target-alpha: Disable interrupts properly.

2011-05-09 Thread Richard Henderson
Interrupts are disabled in PALmode, and when the PS IL is high enough. Signed-off-by: Richard Henderson --- cpu-exec.c | 33 ++--- target-alpha/cpu.h |5 + target-alpha/exec.h | 12 +++- 3 files changed, 46 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH 16/35] target-alpha: Swap shadow registers moving to/from PALmode.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/cpu.h |1 + target-alpha/helper.c| 37 - target-alpha/op_helper.c |5 - 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 60445

[Qemu-devel] [PATCH 05/35] target-alpha: Remove partial support for palcode emulation.

2011-05-09 Thread Richard Henderson
This code does not work, and will be replaced by a bios image. Signed-off-by: Richard Henderson --- Makefile.target |2 +- hw/alpha_palcode.c | 1048 -- target-alpha/cpu.h | 35 -- target-alpha/helper.c|2 +- target-a

[Qemu-devel] [PATCH 26/35] target-alpha: Use a fixed frequency for the RPCC in system mode.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/cpu.h |2 -- target-alpha/op_helper.c | 14 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index d26a870..c94becf 100644 --- a/target-alpha/cpu.h +++ b/target-alph

[Qemu-devel] [PATCH 23/35] target-alpha: Remap PIO space for 43-bit KSEG for EV6.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/target-alpha/helper.c b/target-alpha/helper.c index 96b407b..bd3af38 100644 --- a/target-alpha/helper.c +++ b/target-alpha/helper.c @@ -220,14 +220,18 @@ st

[Qemu-devel] [PATCH 33/35] target-alpha: Properly select the VGA controler to use.

2011-05-09 Thread Richard Henderson
The existing code for this really shouldn't be in pc.c. Signed-off-by: Richard Henderson --- hw/alpha_dp264.c |2 +- hw/alpha_pci.c | 33 - hw/alpha_sys.h |2 ++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/hw/alpha_dp264.c b/hw/al

[Qemu-devel] [PATCH 19/35] target-alpha: All ISA checks to use TB->FLAGS.

2011-05-09 Thread Richard Henderson
We had two different methods in use, both of which referenced ENV, and neither of which indicated to the generic code when different compilation modes are not compatible. Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 32 - target-alpha/translate.c | 396 +

[Qemu-devel] [PATCH 27/35] target-alpha: Implement TLB flush primitives.

2011-05-09 Thread Richard Henderson
Expose these via MTPR, more or less like the real HW does. Signed-off-by: Richard Henderson --- target-alpha/helper.h|3 +++ target-alpha/op_helper.c | 11 ++- target-alpha/translate.c | 32 +--- 3 files changed, 34 insertions(+), 12 deletions(-)

[Qemu-devel] [PATCH 25/35] target-alpha: Include the PCC_OFS in the RPCC return value.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/op_helper.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index 91ef90a..42fec07 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -66,7 +66,8 @

[Qemu-devel] [PATCH 21/35] target-alpha: Implement more CALL_PAL values inline.

2011-05-09 Thread Richard Henderson
In particular, SWPIPL is used quite a lot by the Linux kernel. Doing this inline makes it significantly easier to step through without the debugger getting confused by the mode switch. Signed-off-by: Richard Henderson --- target-alpha/translate.c | 141 --

[Qemu-devel] [PATCH 30/35] target-alpha: Implement WAIT IPR.

2011-05-09 Thread Richard Henderson
--- target-alpha/translate.c | 31 +-- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 8107d19..7b976be 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -1621,9 +1621,10

[Qemu-devel] [PATCH 35/35] target-alpha: Add ps2 keyboard.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- default-configs/alpha-softmmu.mak |1 + hw/alpha_dp264.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/default-configs/alpha-softmmu.mak b/default-configs/alpha-softmmu.mak index 32167cd..be86d0c 100644 --- a/de

[Qemu-devel] [PATCH 22/35] target-alpha: Implement cpu_alpha_handle_mmu_fault for system mode.

2011-05-09 Thread Richard Henderson
Reads the page table how PALcode would, except that the virtual page table base register is not used. Signed-off-by: Richard Henderson --- target-alpha/cpu.h| 13 + target-alpha/helper.c | 129 +++-- 2 files changed, 138 insertions(+), 4 del

  1   2   >