Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-08-03 Thread Pranavkumar Sawargaonkar
>> > bhelg...@google.com; a...@arndb.de; rob.herr...@linaro.org; >> > eric.au...@linaro.org; patc...@apm.com; Bhushan Bharat-R65777; Yoder >> > Stuart-B08248 >> > Subject: Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support. >> > >> > On Fri, 201

[RFC 2/2] drivers: vfio: pci: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
etween MSI IOVA term as a "virtual msi doorbell" (known by the userspace) and MSI PA (known by the kernel). 2. Set MSI/MSI-X vetcor with a virtual doorbell address instead of PA. Signed-off-by: Ankit Jindal Signed-off-by: Pranavkumar Sawargaonkar Cc: Alex Williamson Cc: Marc Zyngier

[RFC 1/2] drivers: vfio: iommu map and unmap device specific memory from kernel.

2015-07-24 Thread Pranavkumar Sawargaonkar
driver. Signed-off-by: Ankit Jindal Signed-off-by: Pranavkumar Sawargaonkar Cc: Alex Williamson Cc: Marc Zyngier Cc: Will Deacon Cc: Christoffer Dall --- drivers/vfio/vfio.c | 29 +++ drivers/vfio/vfio_iommu_type1.c | 60 +++

[RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-07-24 Thread Pranavkumar Sawargaonkar
FC is proposing a solution for MSI/MSI-X passthrough for ARM/ARM64. Pranavkumar Sawargaonkar (2): drivers: vfio: iommu map and unmap device specific memory from kernel. drivers: vfio: pci: Add virtual MSI doorbell support. drivers/vfio/pci/vfio_pci.c | 32 ++ dr

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-12 Thread Pranavkumar Sawargaonkar
Hi Grant, On 12 June 2013 18:58, Grant Likely wrote: > On Mon, 3 Jun 2013 21:21:11 +0530, Pranavkumar Sawargaonkar > wrote: >> This patch adds support for defining and passing earlyprintk >> related information i.e. device and address information via >> device tree by

Re: [PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-10 Thread Pranavkumar Sawargaonkar
Hi, On 3 June 2013 21:21, Pranavkumar Sawargaonkar wrote: > This patch adds support for defining and passing earlyprintk > related information i.e. device and address information via > device tree by adding it inside "chosen" node. > > This will help user to just s

[PATCH] arm64: Add support to pass earlyprintk argument via device tree

2013-06-03 Thread Pranavkumar Sawargaonkar
arlyprintk (without =...) then kernel will look for device tree earlyprintk parameter. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c |7 +++ arch/arm64/kernel/setup.c| 21 - 2 files changed, 27 insertions

Re: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-16 Thread Pranavkumar Sawargaonkar
On 17 May 2013 05:22, Rusty Russell wrote: > Amit Shah writes: >> On (Mon) 06 May 2013 [17:49:49], Pranavkumar Sawargaonkar wrote: >>> This patch adds an emerg_wr register (writeonly) in config space >>> of virtio console device which can be used for debugging. >>

Re: [PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-12 Thread Pranavkumar Sawargaonkar
Hi Rusty, On 13 May 2013 08:22, Rusty Russell wrote: > Pranavkumar Sawargaonkar writes: >> Signed-off-by: Pranavkumar Sawargaonkar >> Signed-off-by: Anup Patel >> --- >> Documentation/virtual/virtio-spec.txt |8 +++- >> 1 file changed, 7 insertions(+)

[PATCH V2 3/3] arm64: earlyprintk support for virtio-mmio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using emerg_wr config register. Kernel args for using this will be: earlyprintk=virtio-console, Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c | 35

[PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console.

2013-05-06 Thread Pranavkumar Sawargaonkar
Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- Documentation/virtual/virtio-spec.txt |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/virtio-spec.txt b/Documentation/virtual/virtio-spec.txt index 0d6ec85..3ca38f8 100644

[PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space

2013-05-06 Thread Pranavkumar Sawargaonkar
This patch adds an emerg_wr register (writeonly) in config space of virtio console device which can be used for debugging. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Signed-off-by: Rusty Russell --- include/uapi/linux/virtio_console.h |3 +++ 1 file changed, 3

[PATCH V2 0/3] Emergency write support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
capability in console device. Emergency write mechanism: 1. When a guest wants to out some character, it has to simply write the character to emerg_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (3): virtio: console: Add emergency writeonly register to co

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-05-06 Thread Pranavkumar Sawargaonkar
if (offset == offsetof(struct virtio_console_config, emerg_w) { > VirtIOSerial *vser; > vser = DO_UPCAST(VirtIOSerial, vdev, vdev); > VirtIOSerialPort *port; > > port = find_emerg_write_port(vser); > if (port) { > vsc->emer

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-04-29 Thread Pranavkumar Sawargaonkar
On 29 April 2013 17:52, Alexander Graf wrote: > > > Am 29.04.2013 um 05:09 schrieb Rusty Russell : > >> Alexander Graf writes: >>> On 26.04.2013, at 13:04, Pranavkumar Sawargaonkar wrote: >>> >>>> This patch-set implements early printk support fo

[PATCH 2/2] arm64: earlyprintk support for virtio-mmio console

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch implements earlyprintk based on virtio console using early_wr config register. Kernel args for using this will be: earlyprintk=virtio-console, Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- arch/arm64/kernel/early_printk.c | 35

[PATCH 1/2] virtio: console: Add early writeonly register to config space

2013-04-26 Thread Pranavkumar Sawargaonkar
This patch adds a early_wr register (writeonly) in config space of virtio console device which can be used for debugging. The patch also updates virtio-spec in Documentation to reflect this feature addition in virtio console. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel

[PATCH 0/2] Early printk support for virtio console devices.

2013-04-26 Thread Pranavkumar Sawargaonkar
guest wants to out some character, it has to simply write the character to early_wr register in config space of virtio console device. Pranavkumar Sawargaonkar (2): virtio: console: Add early writeonly register to config space arm64: earlyprintk support for virtio-mmio console Document

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-22 Thread Pranavkumar Sawargaonkar
On 22 April 2013 10:45, Rusty Russell wrote: > Anup Patel writes: >> On 22 April 2013 06:51, Rusty Russell wrote: >>> >>> Pranavkumar Sawargaonkar writes: >>> > On 18 April 2013 12:21, Rusty Russell wrote: >>> >> >>> >> Pra

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
On 19 April 2013 15:00, Peter Maydell wrote: > On 19 April 2013 10:27, Will Deacon wrote: >> On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: >>> I am not against using 8250 emulation (as far as it solves printk >>> issues for kernel booting

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Pranavkumar Sawargaonkar
Hi Will, On 19 April 2013 14:35, Will Deacon wrote: > Hello, > > On Thu, Apr 18, 2013 at 09:48:49AM +0100, Pranavkumar Sawargaonkar wrote: >> Actually i thought adding a config register will be easier to add a >> code than writing entire emulation as 8250 emulation will re

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 13:06, Marc Zyngier wrote: > On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar > wrote: >> Hi Marc, >> >> On 18 April 2013 12:19, Marc Zyngier wrote: >> >>> Hi Pranavkumar, >>> >>> On Thu, 18 Apr 2013 11:22

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 21:29, Marc Zyngier wrote: > On Thu, 18 Apr 2013 11:25:56 -0400, Christopher Covington > wrote: >> Hi Pranavkumar, >> >> On 04/18/2013 01:52 AM, PranavkumarSawargaonkar wrote: >>> From: Pranavkumar Sawargaonkar >>> >>> This pa

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi, On 18 April 2013 14:14, Alexander Graf wrote: > > > Am 18.04.2013 um 09:32 schrieb Pranavkumar Sawargaonkar > : > >> On 18 April 2013 12:21, Rusty Russell wrote: >>> >>> PranavkumarSawargaonkar writes: >>>> From: Pranavkumar Sawarga

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 13:06, Marc Zyngier wrote: > On Thu, 18 Apr 2013 12:47:18 +0530, Pranavkumar Sawargaonkar > wrote: >> Hi Marc, >> >> On 18 April 2013 12:19, Marc Zyngier wrote: >> >>> Hi Pranavkumar, >>> >>> On Thu, 18 Ap

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
On 18 April 2013 12:21, Rusty Russell wrote: > > PranavkumarSawargaonkar writes: > > From: Pranavkumar Sawargaonkar > > > > This patch implements early printk support for virtio-mmio console devices > > without using any hypercalls. > > This makes some sense

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-18 Thread Pranavkumar Sawargaonkar
Hi Marc, On 18 April 2013 12:19, Marc Zyngier wrote: > Hi Pranavkumar, > > On Thu, 18 Apr 2013 11:22:24 +0530, PranavkumarSawargaonkar > wrote: >> From: Pranavkumar Sawargaonkar >> >> This patch implements early printk support for virtio-mmio console > device