Re: [PATCH V2 0/2] kvm tools: PPC64 basic support

2011-12-13 Thread Sasha Levin
On Tue, 2011-12-13 at 18:00 +1100, Matt Evans wrote: The second patch is a small fix for generic virtio code (now that we have a PPC build) which removes reliance on ioeventfds for PPC, which doesn't provide them. Hm... ioeventfds are located in the generic code and should be available on all

Re: [PATCH V2 1/2] kvm tools: Add initial SPAPR PPC64 architecture support

2011-12-13 Thread Pekka Enberg
On Tue, Dec 13, 2011 at 9:00 AM, Matt Evans m...@ozlabs.org wrote: +int irq__register_device(u32 dev, u8 *num, u8 *pin, u8 *line) +{ +       fprintf(stderr, irq__register_device(%d, [%d], [%d], [%d]\n, +               dev, *num, *pin, *line); +       return 0; +} + +void irq__init(struct

Re: [PATCH 1/4] KVM: PPC: Book3s: PR: Disable preemption in vcpu_run

2011-12-13 Thread Scott Wood
On 12/09/2011 05:18 PM, Alexander Graf wrote: On 09.12.2011, at 19:19, Scott Wood wrote: Shouldn't you really have interrupts disabled here, as booke does? Ah, thanks for the reminder. Yeah, we probably want to disable interrupts in parallel to checking for signals (basically from one

Re: [PATCH V2 1/2] kvm tools: Add initial SPAPR PPC64 architecture support

2011-12-13 Thread Matt Evans
On 14 Dec 2011, at 04:43, Pekka Enberg penb...@kernel.org wrote: On Tue, Dec 13, 2011 at 9:00 AM, Matt Evans m...@ozlabs.org wrote: +int irq__register_device(u32 dev, u8 *num, u8 *pin, u8 *line) +{ + fprintf(stderr, irq__register_device(%d, [%d], [%d], [%d]\n, + dev,

Re: [PATCH V3 1/2] kvm tools: Add ability to map guest RAM from hugetlbfs

2011-12-13 Thread David Evensky
On an x86 32bit system (and using the 32bit CodeSourcery toolchain on a x86_64 system) I get: evensky@machine:~/.../linux-kvm/tools/kvm$ make CC util/util.o util/util.c: In function 'mmap_hugetlbfs': util/util.c:93:17: error: comparison between signed and unsigned integer expressions

Re: [PATCH V2 0/2] kvm tools: PPC64 basic support

2011-12-13 Thread Matt Evans
On 13/12/11 21:23, Sasha Levin wrote: On Tue, 2011-12-13 at 18:00 +1100, Matt Evans wrote: The second patch is a small fix for generic virtio code (now that we have a PPC build) which removes reliance on ioeventfds for PPC, which doesn't provide them. Hm... ioeventfds are located in the

Re: [PATCH V2 4/6] kvm tools: Add PPC64 XICS interrupt controller support

2011-12-13 Thread David Gibson
On Tue, Dec 13, 2011 at 06:10:48PM +1100, Matt Evans wrote: This patch adds XICS emulation code (heavily borrowed from QEMU), and wires this into kvm_cpu__irq() to fire a CPU IRQ via KVM. A device tree entry is also added. IPIs work, xics_alloc_irqnum() is added to allocate an external IRQ

Re: [PATCH V2 2/6] kvm tools: Add SPAPR PPC64 hcall rtascall structure

2011-12-13 Thread David Gibson
On Tue, Dec 13, 2011 at 06:10:46PM +1100, Matt Evans wrote: This patch adds the basic structure for HV calls, their registration and some of the simpler calls. A similar layout for RTAS calls is also added, again with some of the simpler RTAS calls used by the guest. The SPAPR RTAS stub is

Re: [PATCH V2 1/6] kvm tools: Generate SPAPR PPC64 guest device tree

2011-12-13 Thread David Gibson
On Tue, Dec 13, 2011 at 06:10:45PM +1100, Matt Evans wrote: The generated DT is the bare minimum structure required for SPAPR (on which subsequent patches for VIO, XICS, PCI etc. will build); root node, cpus, memory. Some aspects are currently hardwired for simplicity, for example

Re: [PATCH V2 0/2] kvm tools: PPC64 basic support

2011-12-13 Thread Sasha Levin
On Wed, 2011-12-14 at 11:34 +1100, Matt Evans wrote: On 13/12/11 21:23, Sasha Levin wrote: On Tue, 2011-12-13 at 18:00 +1100, Matt Evans wrote: The second patch is a small fix for generic virtio code (now that we have a PPC build) which removes reliance on ioeventfds for PPC, which doesn't