Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood wrote: Currently, devices that are emulated inside KVM are configured in

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 09:50:44PM -0800, Christoffer Dall wrote: +static int kvm_ioctl_create_device(struct kvm *kvm, + struct kvm_create_device *cd) +{ + struct kvm_device *dev = NULL; + bool test = cd-flags KVM_CREATE_DEVICE_TEST;

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Christoffer Dall
On Tue, Feb 19, 2013 at 4:24 AM, Gleb Natapov g...@redhat.com wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Scott Wood
On 02/19/2013 06:24:18 AM, Gleb Natapov wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: The ability to set/get attributes is needed. Sorry, but get or set one blob of data, up to 512 bytes, for the entire irqchip is just not good enough -- assuming you don't want us to

Re: [PATCH 3/9] KVM: PPC: Book3S: Add kernel emulation for the XICS interrupt controller

2013-02-19 Thread Paul Mackerras
On Mon, Feb 18, 2013 at 04:43:27PM -0600, Scott Wood wrote: On 02/15/2013 10:51:16 PM, Paul Mackerras wrote: The KVM_CREATE_IRQCHIP_ARGS ioctl says that you want emulation of a specific interrupt controller architecture connected to the vcpus' external interrupt inputs. In that sense it's