Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Scott Wood
On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: On Wed, Mar 13, 2013 at 07:14:48PM -0500, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote:

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Paul Mackerras
On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to indicate XICS. Why is it called KVM_CAP_whatever if it's not a capability? Because it's associated

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 23:02, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to indicate XICS. Why is it called KVM_CAP_whatever if

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Scott Wood
On 03/14/2013 05:44:39 PM, Alexander Graf wrote: On 14.03.2013, at 23:02, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Scott Wood
On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: On Wed, Mar 13, 2013 at 07:14:48PM -0500, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote:

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Paul Mackerras
On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to indicate XICS. Why is it called KVM_CAP_whatever if it's not a capability? Because it's associated

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 23:02, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to indicate XICS. Why is it called KVM_CAP_whatever if

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-14 Thread Scott Wood
On 03/14/2013 05:44:39 PM, Alexander Graf wrote: On 14.03.2013, at 23:02, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 01:15:35PM -0500, Scott Wood wrote: On 03/13/2013 08:26:20 PM, Paul Mackerras wrote: I arbitrarily assigned 0x58494353 for KVM_CAP_IRQ_XICS as the args[0] value to

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Scott Wood
On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting the IRQ arch (using enable_cap) after the

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Alexander Graf
On 14.03.2013, at 01:14, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Paul Mackerras
On Wed, Mar 13, 2013 at 07:14:48PM -0500, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way)

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Scott Wood
On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting the IRQ arch (using enable_cap) after the

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Alexander Graf
On 14.03.2013, at 01:14, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-13 Thread Paul Mackerras
On Wed, Mar 13, 2013 at 07:14:48PM -0500, Scott Wood wrote: On 03/08/2013 05:04:30 AM, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way)

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-11 Thread Alexander Graf
Am 09.03.2013 um 03:26 schrieb Paul Mackerras pau...@samba.org: On Fri, Mar 08, 2013 at 12:04:30PM +0100, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: I have used the first argument (cap-args[0]) to specify which interrupt controller you want

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-11 Thread Alexander Graf
Am 09.03.2013 um 03:26 schrieb Paul Mackerras pau...@samba.org: On Fri, Mar 08, 2013 at 12:04:30PM +0100, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: I have used the first argument (cap-args[0]) to specify which interrupt controller you want

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-08 Thread Paul Mackerras
On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting the IRQ arch (using enable_cap) after the vcpu got created would work for you? That enable_cap would then have to loop through all devices and notify irq

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-08 Thread Alexander Graf
Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: On Thu, Mar 07, 2013 at 03:00:52PM +0100, Alexander Graf wrote: Could you please (in a quick and drafty way) try and see if setting the IRQ arch (using enable_cap) after the vcpu got created would work for you? That

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-08 Thread Paul Mackerras
On Fri, Mar 08, 2013 at 12:04:30PM +0100, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: I have used the first argument (cap-args[0]) to specify which interrupt controller you want to connect the vcpu to. Ah, nice idea. So you basically make

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-08 Thread Paul Mackerras
On Fri, Mar 08, 2013 at 12:04:30PM +0100, Alexander Graf wrote: Am 08.03.2013 um 11:37 schrieb Paul Mackerras pau...@samba.org: I have used the first argument (cap-args[0]) to specify which interrupt controller you want to connect the vcpu to. Ah, nice idea. So you basically make

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-07 Thread Alexander Graf
On 07.03.2013, at 04:29, Paul Mackerras wrote: This adds a new ioctl, KVM_SET_IRQ_ARCHITECTURE, which is intended to be called by userspace to specify that it wishes the kernel to emulate a specific interrupt controller architecture. This doesn't imply the creation of any specific device,

Re: [STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-07 Thread Alexander Graf
On 07.03.2013, at 04:29, Paul Mackerras wrote: This adds a new ioctl, KVM_SET_IRQ_ARCHITECTURE, which is intended to be called by userspace to specify that it wishes the kernel to emulate a specific interrupt controller architecture. This doesn't imply the creation of any specific device,

[STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-06 Thread Paul Mackerras
This adds a new ioctl, KVM_SET_IRQ_ARCHITECTURE, which is intended to be called by userspace to specify that it wishes the kernel to emulate a specific interrupt controller architecture. This doesn't imply the creation of any specific device, but does indicate that when vcpus are created, space

[STRAWMAN PATCH] KVM: PPC: Add ioctl to specify interrupt controller architecture to emulate

2013-03-06 Thread Paul Mackerras
This adds a new ioctl, KVM_SET_IRQ_ARCHITECTURE, which is intended to be called by userspace to specify that it wishes the kernel to emulate a specific interrupt controller architecture. This doesn't imply the creation of any specific device, but does indicate that when vcpus are created, space