Re: [Qemu-devel] Howto debug boot device not showing up in bios

2011-05-09 Thread Mulyadi Santosa
Hi On Tue, May 10, 2011 at 05:24, Adnan Khaleel wrote: > Can somebody give me some pointers on what the best way to debug the boot > process in Qemu and seabios? At first, I guess "-s" a.k.a qemu gdb stub of Qemu could help you...but uhm, on a second thought, I think it is the qemu itself th

[Qemu-devel] [PATCH] Fix off-by-one error in sizing pSeries hcall table

2011-05-09 Thread David Gibson
The pSeries machine uses two tables to look up guest hcalls for emulation. One of these is exactly one entry too small to hold all the hcalls it needs to, leading to memory corruption. This patch fixes the bug, and while we're at it, make both tables 'static' since they're never used from other mo

Re: [Qemu-devel] [PATCH] Fix off-by-one error in sizing pSeries hcall table

2011-05-09 Thread Alexander Graf
On 10.05.2011, at 08:06, David Gibson wrote: > The pSeries machine uses two tables to look up guest hcalls for emulation. > One of these is exactly one entry too small to hold all the hcalls it needs > to, leading to memory corruption. > > This patch fixes the bug, and while we're at it, make bo

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

2011-05-09 Thread Rob Landley
On 05/09/2011 10:50 AM, Peter Maydell wrote: > 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

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

2011-05-09 Thread Alexander Graf
On 10.05.2011, at 06:58, Rob Landley wrote: > On 05/09/2011 09:11 AM, Alexander Graf wrote: >>> C) requires more research, because I have to make sure the entry point >>> is either doing the 16->32 (or 64) bit startup dance or that it's being >>> launched in the right mode (which the bios isn't d

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

2011-05-09 Thread Rob Landley
On 05/09/2011 09:11 AM, Alexander Graf wrote: >> C) requires more research, because I have to make sure the entry point >> is either doing the 16->32 (or 64) bit startup dance or that it's being >> launched in the right mode (which the bios isn't doing), but vmlinux >> doesn't need to be decompress

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

2011-05-09 Thread Serge E. Hallyn
To get this to compile on top of qemu-kvm, I needed the following patch to force CONFIG_THREAD on so as to define things like qemu_mutex_lock: Index: qemu-kvm-tpm/configure === --- qemu-kvm-tpm.orig/configure 2011-05-09 21:19:10.92000

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-09 Thread David Gibson
On Thu, Apr 21, 2011 at 09:47:31PM +0300, Eduard - Gabriel Munteanu wrote: > On Thu, Apr 21, 2011 at 05:03:47PM +1000, David Gibson wrote: > > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > > implementing support for emulating the AMD PCI IOMMU > > (http://lists.nongnu.org

[Qemu-devel] Howto debug boot device not showing up in bios

2011-05-09 Thread Adnan Khaleel
Can somebody give me some pointers on what the best way to debug the boot process in Qemu and seabios? Seabios reports that no boot device is present even though I'm passing it the hda commandline argument. What I'm looking for in particular is what Qemu does to map the path to a device and h

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

2011-05-09 Thread Alexander Graf
Most of the code to support e500 style MMUs is already in place, but we're missing on some of the special TLB0-TLB1 handling code and slightly different TLB modification. This patch adds support for the FSL style MMU. Signed-off-by: Alexander Graf --- v1 -> v2: - fix linux-user build - op

[Qemu-devel] [PATCH 2/7] PPC: Make MPC8544DS emulation work w/o KVM

2011-05-09 Thread Alexander Graf
The MPC8544DS board emulation was only used with KVM so far, so some parts of the code didn't provide proper values for non-KVM execution. This patch makes the machine work without KVM enabled. To actually use this, you also need proper e500v2 MMU emulation. Signed-off-by: Alexander Graf --- v

[Qemu-devel] [PATCH 3/7] PPC: Add GS MSR definition

2011-05-09 Thread Alexander Graf
The BookE specification defines MSR bit 28 as Guest State. Add it to the list of MSR macros. Signed-off-by: Alexander Graf --- target-ppc/cpu.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 303f8ce..c6b2255 100644 --- a/target

[Qemu-devel] [PATCH 6/7] PPC MPC7544DS: Use new TLB helper function

2011-05-09 Thread Alexander Graf
Now that we have some nice helpers that can find us a TLB entry, let's use that on the machine initialization code, so we don't need to know about the internals of the TLB array. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH 4/7] PPC: Add another 64 bits to instruction feature mask

2011-05-09 Thread Alexander Graf
To enable quick runtime detection of instruction groups to the currently selected CPU emulation, we have a feature mask of what exactly the respective instruction supports. This feature mask is 64 bits long and we just successfully exceeded those 64 bits. To add more features, we need to think of

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

2011-05-09 Thread Alexander Graf
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. Reviewed-by: Paul Brook Signed-off-by: Alexander Graf --- v2 -> v3: - rebase to current code b

[Qemu-devel] [PATCH 0/7] PPC: Add FSL (e500) MMU emulation v6

2011-05-09 Thread Alexander Graf
In a global effort to get rid of KVM-only targets, this is the next important piece of the puzzle: e500 emulation :). We had support for running an e500 KVM guest for a while now, but the code could not be tested without a real e500 machine, because it required KVM to work. This patchset adds emul

[Qemu-devel] [PATCH 1/7] PPC: Make MPC8544DS obey -cpu switch

2011-05-09 Thread Alexander Graf
The MPC8544DS board emulation code ignored the user defined -cpu switch. This patch enables it to only provide a sane default, not force an e500v2 CPU inside. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 31/35] target-alpha: Implement HALT IPR.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.h|1 + target-alpha/op_helper.c | 10 ++ target-alpha/translate.c |5 + 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/target-alpha/helper.h b/target-alpha/helper.h index 2dec57e..c352c24 100644 --

[Qemu-devel] [PATCH 32/35] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-05-09 Thread Richard Henderson
The alarm is a fully general one-shot time comparator, which will be usable under Linux as a hrtimer source. It's much more flexible than the RTC source available on real hardware. The wall clock allows the guest access to the host timekeeping. Much like the KVM wall clock source for other guest

[Qemu-devel] [PATCH 34/35] target-alpha: Enable PCI IDE

2011-05-09 Thread Richard Henderson
The CMD646 is the candidate that might be closest to something that may have existed on real Alpha hardware. Signed-off-by: Richard Henderson --- default-configs/alpha-softmmu.mak |1 + hw/alpha_dp264.c | 10 ++ 2 files changed, 11 insertions(+), 0 deletions(-) di

[Qemu-devel] [PATCH 24/35] target-alpha: Trap for unassigned and unaligned addresses.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- exec-all.h |2 +- exec.c | 12 ++-- target-alpha/cpu.h |6 +- target-alpha/op_helper.c | 26 ++ 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/exec-all.h b/e

[Qemu-devel] [PATCH 28/35] target-alpha: Add custom PALcode image for CLIPPER emulation.

2011-05-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- .gitmodules |3 +++ Makefile|3 ++- configure |8 +++- pc-bios/README |3 +++ pc-bios/palcode-clipper | Bin 0 -> 176851 bytes roms/qemu-palcode |1 + 6 files changed, 16 inserti

[Qemu-devel] [PATCH 29/35] target-alpha: Add CLIPPER emulation.

2011-05-09 Thread Richard Henderson
This is a DP264 variant, SMP capable, no unusual hardware present. The emulation does not currently include any PCI IOMMU code. Hopefully the generic support for that can be merged to HEAD soon. Signed-off-by: Richard Henderson --- Makefile.target|1 + hw/alpha_dp264.c | 177

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

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

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] [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 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 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] [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

[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] 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

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

[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] [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] [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] 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] 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

[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] [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 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 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 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 @@ -

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)

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] 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] [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] [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] 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] [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 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] 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] [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] [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] [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 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

[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 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

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 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] [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] 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. > >

[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

[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 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

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,

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

[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] 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

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

[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

  1   2   >