Re: [PATCH] KVM: arm/arm64: remove kvm_vgic_*early_init() functions

2016-07-26 Thread Christoffer Dall
On Tue, Jul 05, 2016 at 02:50:43PM +0100, Andre Przywara wrote: > kvm_vgic_early_init() and kvm_vgic_vcpu_early_init() were only used > with the old VGIC, on the new VGIC these functions do nothing. > Follow the comment in vgic-init.c and remove those functions and > their calls. > >

[PATCH v6] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2016-07-26 Thread Christoffer Dall
Factor out the GICv3 and ITS-specific documentation into a separate documentation file. Add description for how to access distributor, redistributor, and CPU interface registers for GICv3 in this new file, and add a group for accessing level triggered IRQ information for GICv3 as well.

Re: [PATCH v5] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2016-07-26 Thread Christoffer Dall
On Tue, Jul 26, 2016 at 12:03:46PM +0100, Peter Maydell wrote: > On 26 July 2016 at 11:39, Christoffer Dall > wrote: > > Factor out the GICv3 and ITS-specific documentation into a separate > > documentation file. Add description for how to access distributor, > >

Re: [PATCH v5] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2016-07-26 Thread Peter Maydell
On 26 July 2016 at 11:39, Christoffer Dall wrote: > Factor out the GICv3 and ITS-specific documentation into a separate > documentation file. Add description for how to access distributor, > redistributor, and CPU interface registers for GICv3 in this new file, > and

[PATCH v5] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2016-07-26 Thread Christoffer Dall
Factor out the GICv3 and ITS-specific documentation into a separate documentation file. Add description for how to access distributor, redistributor, and CPU interface registers for GICv3 in this new file, and add a group for accessing level triggered IRQ information for GICv3 as well.

Re: [RESEND PATCH v4] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2016-07-26 Thread Christoffer Dall
On Wed, Jul 06, 2016 at 01:03:18PM +0100, Peter Maydell wrote: > On 6 July 2016 at 12:37, Christoffer Dall wrote: > > Factor out the GICv3-specific documentation into a separate > > documentation file. Add description for how to access distributor, > > redistributor,

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Auger Eric
Hi Thomas, On 26/07/2016 11:00, Thomas Gleixner wrote: > B1;2802;0cEric, > > On Mon, 25 Jul 2016, Auger Eric wrote: >> On 20/07/2016 11:04, Thomas Gleixner wrote: >>> On Tue, 19 Jul 2016, Eric Auger wrote: + if (ret) { + for (; i >= 0; i--) { +

Re: [PATCH v11 10/10] genirq/msi: use the MSI doorbell's IOVA when requested

2016-07-26 Thread Thomas Gleixner
Eric, On Mon, 25 Jul 2016, Auger Eric wrote: > On 20/07/2016 11:09, Thomas Gleixner wrote: > > On Tue, 19 Jul 2016, Eric Auger wrote: > >> @@ -63,10 +63,18 @@ static int msi_compose(struct irq_data *irq_data, > >> { > >>int ret = 0; > >> > >> - if (erase) > >> + if (erase) { > >>

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Thomas Gleixner
B1;2802;0cEric, On Mon, 25 Jul 2016, Auger Eric wrote: > On 20/07/2016 11:04, Thomas Gleixner wrote: > > On Tue, 19 Jul 2016, Eric Auger wrote: > >> + if (ret) { > >> + for (; i >= 0; i--) { > >> + struct irq_data *d = irq_get_irq_data(virq + i);

Re: usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Shannon Zhao
On 2016/7/26 16:07, Ard Biesheuvel wrote: > On 26 July 2016 at 09:34, Shannon Zhao wrote: >> > Hi, >> > >> > Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. >> > Below is my QEMU command line, >> > host and guest kernel both are 4.7.0-rc7+, and I

Re: usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Ard Biesheuvel
On 26 July 2016 at 09:34, Shannon Zhao wrote: > Hi, > > Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. Below > is my QEMU command line, > host and guest kernel both are 4.7.0-rc7+, and I ran it on Hikey board. > > qemu-system-aarch64 \ >

usb keyboard and mouse can't work on QEMU ARM64 with KVM

2016-07-26 Thread Shannon Zhao
Hi, Recently I'm trying to use usb keyboard and mouse with QEMU on ARM64. Below is my QEMU command line, host and guest kernel both are 4.7.0-rc7+, and I ran it on Hikey board. qemu-system-aarch64 \ -smp 1 -cpu host -enable-kvm \ -m 256 -M virt \ -k en-us \ -nographic \