Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Scott Wood
On 03/14/2013 05:19:17 PM, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 01:20:38PM -0500, Scott Wood wrote: > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: > >--- a/arch/powerpc/include/asm/kvm_host.h > >+++ b/arch/powerpc/include/asm/kvm_host.h > >@@ -373,6 +373,9 @@ struct kvmppc_booke_deb

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Scott Wood
On 03/14/2013 05:28:03 PM, Paul Mackerras wrote: On Thu, Mar 14, 2013 at 08:03:30PM +0100, Alexander Graf wrote: > > On 14.03.2013, at 19:35, Scott Wood wrote: > > > On 03/14/2013 01:33:30 PM, Alexander Graf wrote: > >> We also want int pic_fd, no? > > > > Not sure we really need that on the vcpu

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Paul Mackerras
On Thu, Mar 14, 2013 at 08:03:30PM +0100, Alexander Graf wrote: > > On 14.03.2013, at 19:35, Scott Wood wrote: > > > On 03/14/2013 01:33:30 PM, Alexander Graf wrote: > >> We also want int pic_fd, no? > > > > Not sure we really need that on the vcpu. We'll need it on the vm unless > > we add it

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Paul Mackerras
On Thu, Mar 14, 2013 at 01:20:38PM -0500, Scott Wood wrote: > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: > >--- a/arch/powerpc/include/asm/kvm_host.h > >+++ b/arch/powerpc/include/asm/kvm_host.h > >@@ -373,6 +373,9 @@ struct kvmppc_booke_debug_reg { > > struct kvm_vcpu_arch { > > ulong h

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 20:10, Scott Wood wrote: > On 03/14/2013 02:03:30 PM, Alexander Graf wrote: >> On 14.03.2013, at 19:35, Scott Wood wrote: >> > On 03/14/2013 01:33:30 PM, Alexander Graf wrote: >> >> On 14.03.2013, at 19:20, Scott Wood wrote: >> >> > On 03/13/2013 08:20:44 PM, Paul Mackerras wrot

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Scott Wood
On 03/14/2013 02:03:30 PM, Alexander Graf wrote: On 14.03.2013, at 19:35, Scott Wood wrote: > On 03/14/2013 01:33:30 PM, Alexander Graf wrote: >> On 14.03.2013, at 19:20, Scott Wood wrote: >> > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: >> >> Setting this capability on a vcpu connects tha

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 19:35, Scott Wood wrote: > On 03/14/2013 01:33:30 PM, Alexander Graf wrote: >> On 14.03.2013, at 19:20, Scott Wood wrote: >> > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: >> >> Setting this capability on a vcpu connects that vcpu to an interrupt >> >> controller device. Th

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Scott Wood
On 03/14/2013 01:33:30 PM, Alexander Graf wrote: On 14.03.2013, at 19:20, Scott Wood wrote: > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: >> Setting this capability on a vcpu connects that vcpu to an interrupt >> controller device. The args[0] field of the argument kvm_enable_cap >>

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 19:20, Scott Wood wrote: > On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: >> Setting this capability on a vcpu connects that vcpu to an interrupt >> controller device. The args[0] field of the argument kvm_enable_cap >> struct specifies the overall architecture of the interru

Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-14 Thread Scott Wood
On 03/13/2013 08:20:44 PM, Paul Mackerras wrote: Setting this capability on a vcpu connects that vcpu to an interrupt controller device. The args[0] field of the argument kvm_enable_cap struct specifies the overall architecture of the interrupt controller. The args[1] field specifies the CPU nu

[PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability

2013-03-13 Thread Paul Mackerras
Setting this capability on a vcpu connects that vcpu to an interrupt controller device. The args[0] field of the argument kvm_enable_cap struct specifies the overall architecture of the interrupt controller. The args[1] field specifies the CPU number for the vcpu from the interrupt controller's p