On Mon, Jul 15, 2013 at 01:17:33PM -0500, Scott Wood wrote:
> On 07/15/2013 06:30:20 AM, Gleb Natapov wrote:
> >On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
> >> KVM_HC_VM_RESET: Requests that the virtual machine be reset.
> >> KVM_HC_VM_SHUTDOWN: Requests that the virtual machin
> -Original Message-
> From: Wood Scott-B07421
> Sent: Monday, July 15, 2013 11:38 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; ag...@suse.de; Yoder
> Stuart-
> B08248; Bhushan Bharat-R65777; Bhushan Bharat-R65777
> Subject: Re: [PATCH 2/5] booke: e
The SOFT_DISABLE_INTS seems an odd name for something that updates the
software state to be consistent with interrupts being hard disabled, so
rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE to avoid this confusion.
Signed-off-by: Tiejun Chen
---
Ben,
Looks currently RECONCILE_IRQ_STATE is our
On 07/16/2013 01:27 AM, Scott Wood wrote:
On 07/14/2013 09:20:00 PM, tiejun.chen wrote:
On 07/13/2013 07:05 AM, Benjamin Herrenschmidt wrote:
On Fri, 2013-07-12 at 12:50 -0500, Scott Wood wrote:
[1] SOFT_DISABLE_INTS seems an odd name for something that updates the
software state to be consis
The existing TCE machine calls (tce_build and tce_free) only support
virtual mode as they call __raw_writeq for TCE invalidation what
fails in real mode.
This introduces tce_build_rm and tce_free_rm real mode versions
which do mostly the same but use "Store Doubleword Caching Inhibited
Indexed" in
The changes are:
1. rebased on v3.11-rc1 so the capability numbers changed again
2. fixed multiple comments from maintainers
3. "KVM: PPC: Add support for IOMMU in-kernel handling" is split into
2 patches, the new one is "powerpc/iommu: rework to support realmode".
4. IOMMU_API is now always enable
The current VFIO-on-POWER implementation supports only user mode
driven mapping, i.e. QEMU is sending requests to map/unmap pages.
However this approach is really slow, so we want to move that to KVM.
Since H_PUT_TCE can be extremely performance sensitive (especially with
network adapters where eac
This is to reserve a capablity number for upcoming support
of H_PUT_TCE_INDIRECT and H_STUFF_TCE pseries hypercalls
which support mulptiple DMA map/unmap operations per one call.
Signed-off-by: Alexey Kardashevskiy
---
Changes:
2013/07/16:
* changed the number
Signed-off-by: Alexey Kardashevskiy
It does not make much sense to have KVM in book3s-64bit and
not to have IOMMU bits for PCI pass through support as it costs little
and allows VFIO to function on book3s-kvm.
Having IOMMU_API enabled will make it unnecessary to have a lot of
IOMMU_API enabled, those files only accelerate user space
This is to reserve a capablity number for upcoming support
of VFIO-IOMMU DMA operations in real mode.
Signed-off-by: Alexey Kardashevskiy
---
Changes:
2013/07/16:
* changed the number
2013/07/11:
* changed order in a file, added comment about a gap in ioctl number
Signed-off-by: Alexey Kardash
This adds real mode handlers for the H_PUT_TCE_INDIRECT and
H_STUFF_TCE hypercalls for user space emulated devices such as IBMVIO
devices or emulated PCI. These calls allow adding multiple entries
(up to 512) into the TCE table in one call which saves time on
transition to/from real mode.
This ad
The TCE tables handling may differ for real and virtual modes so
additional ppc_md.tce_build_rm/ppc_md.tce_free_rm/ppc_md.tce_flush_rm
handlers were introduced earlier.
So this adds the following:
1. support for the new ppc_md calls;
2. ability to iommu_tce_build to process mupltiple entries per
c
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT
and H_STUFF_TCE requests targeted an IOMMU TCE table without passing
them to user space which saves time on switching to user space and back.
Both real and virtual modes are supported. The kernel tries to
handle a TCE request in t
This adds special support for huge pages (16MB) in real mode.
The reference counting cannot be easily done for such pages in real
mode (when MMU is off) so we added a hash table of huge pages.
It is populated in virtual mode and get_page is called just once
per a huge page. Real mode handlers chec
VFIO is designed to be used via ioctls on file descriptors
returned by VFIO.
However in some situations support for an external user is required.
The first user is KVM on PPC64 (SPAPR TCE protocol) which is going to
use the existing VFIO groups for exclusive access in real/virtual mode
on a host t
On 07/15/2013 03:55:08 PM, Alexander Graf wrote:
On 15.07.2013, at 22:52, Scott Wood wrote:
> On 07/15/2013 03:28:46 PM, Alexander Graf wrote:
>> On 15.07.2013, at 20:21, Scott Wood wrote:
>> > On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote:
>> >> > >>> + printk("error: system reset ret
On 15.07.2013, at 22:52, Scott Wood wrote:
> On 07/15/2013 03:28:46 PM, Alexander Graf wrote:
>> On 15.07.2013, at 20:21, Scott Wood wrote:
>> > On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote:
>> >> > >>> + printk("error: system reset returned with error %ld\n", ret);
>> >> > >>
>> >> >
On 07/15/2013 03:28:46 PM, Alexander Graf wrote:
On 15.07.2013, at 20:21, Scott Wood wrote:
> On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote:
>> > >>> + printk("error: system reset returned with error %ld\n",
ret);
>> > >>
>> > >> So we should fall back to the normal reset handler he
On 15.07.2013, at 20:21, Scott Wood wrote:
> On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote:
>> > -Original Message-
>> > From: Alexander Graf [mailto:ag...@suse.de]
>> > Sent: Monday, July 15, 2013 8:40 PM
>> > To: Bhushan Bharat-R65777
>> > Cc: k...@vger.kernel.org; kvm-ppc@vger
On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote:
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 8:40 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood
Scott-B07421; Yoder
> Stuart-B08248
>
On 07/15/2013 06:30:20 AM, Gleb Natapov wrote:
On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
> KVM_HC_VM_RESET: Requests that the virtual machine be reset.
> KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be
powered-off/halted.
>
> These hcalls are handled by guest use
On 07/15/2013 06:11:16 AM, Bharat Bhushan wrote:
Exit to guest user space if kvm does not implement the hcall.
Signed-off-by: Bharat Bhushan
---
arch/powerpc/kvm/booke.c | 47
+--
arch/powerpc/kvm/powerpc.c |1 +
include/uapi/linux/kvm.h |
On 15.07.2013, at 17:35, Bhushan Bharat-R65777 wrote:
>
>
>> -Original Message-
>> From: Alexander Graf [mailto:ag...@suse.de]
>> Sent: Monday, July 15, 2013 8:59 PM
>> To: Bhushan Bharat-R65777
>> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
>> Stuart-B08
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 8:59 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248
> Subject: Re: [PATCH 2/5] booke: exit to guest userspace for
On 15.07.2013, at 17:13, Bhushan Bharat-R65777 wrote:
>
>
>> -Original Message-
>> From: Alexander Graf [mailto:ag...@suse.de]
>> Sent: Monday, July 15, 2013 8:27 PM
>> To: Bhushan Bharat-R65777
>> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
>> Stuart-B08
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 8:40 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248
> Subject: Re: [PATCH 5/5] powerpc: using reset hcall when kvm
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 8:27 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248
> Subject: Re: [PATCH 2/5] booke: exit to guest userspace for
On 15.07.2013, at 17:05, Bhushan Bharat-R65777 wrote:
>
>
>> -Original Message-
>> From: Alexander Graf [mailto:ag...@suse.de]
>> Sent: Monday, July 15, 2013 5:20 PM
>> To: Bhushan Bharat-R65777
>> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
>> Stuart-B08
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 5:20 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248; Bhushan Bharat-R65777
> Subject: Re: [PATCH 5/5] powerpc: usi
On 15.07.2013, at 16:50, Bhushan Bharat-R65777 wrote:
>
>
>> -Original Message-
>> From: Alexander Graf [mailto:ag...@suse.de]
>> Sent: Monday, July 15, 2013 5:16 PM
>> To: Bhushan Bharat-R65777
>> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
>> Stuart-B08
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 5:16 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248
> Subject: Re: [PATCH 2/5] booke: exit to guest userspace for
On Mon, Jul 15, 2013 at 02:26:38PM +0200, Alexander Graf wrote:
>
> On 15.07.2013, at 14:24, Gleb Natapov wrote:
>
> > On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote:
> >>
> >> On 15.07.2013, at 14:15, Gleb Natapov wrote:
> >>
> >>> On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alex
On 15.07.2013, at 14:24, Gleb Natapov wrote:
> On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote:
>>
>> On 15.07.2013, at 14:15, Gleb Natapov wrote:
>>
>>> On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:
On 15.07.2013, at 13:30, Gleb Natapov wrote:
On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote:
>
> On 15.07.2013, at 14:15, Gleb Natapov wrote:
>
> > On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:
> >>
> >> On 15.07.2013, at 13:30, Gleb Natapov wrote:
> >>
> >>> On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bhar
On 15.07.2013, at 14:15, Gleb Natapov wrote:
> On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:
>>
>> On 15.07.2013, at 13:30, Gleb Natapov wrote:
>>
>>> On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
KVM_HC_VM_RESET: Requests that the virtual machine be res
On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:
>
> On 15.07.2013, at 13:30, Gleb Natapov wrote:
>
> > On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
> >> KVM_HC_VM_RESET: Requests that the virtual machine be reset.
> >> KVM_HC_VM_SHUTDOWN: Requests that the virtu
On 15.07.2013, at 13:11, Bharat Bhushan wrote:
> Detect the availability of the reset hcalls by looking at kvm,has-reset
> property on the /hypervisor node in the device tree passed to the VM and
> patches the reset mechanism to use reset hcall.
>
> This patch uses the reser hcall when kvm,has-r
On 15.07.2013, at 13:11, Bharat Bhushan wrote:
> arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h
> for KVM_HC_FEATURES
>
> Signed-off-by: Bharat Bhushan
> ---
> arch/powerpc/include/asm/kvm_para.h |1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff
On 15.07.2013, at 13:38, Bhushan Bharat-R65777 wrote:
>
>
>> -Original Message-
>> From: Alexander Graf [mailto:ag...@suse.de]
>> Sent: Monday, July 15, 2013 5:02 PM
>> To: Bhushan Bharat-R65777
>> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
>> Stuart-B08
On 15.07.2013, at 13:30, Gleb Natapov wrote:
> On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
>> KVM_HC_VM_RESET: Requests that the virtual machine be reset.
>> KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted.
>>
>> These hcalls are handled by guest u
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 5:02 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248; Bhushan Bharat-R65777
> Subject: Re: [PATCH 2/5] booke: exit
On 15.07.2013, at 13:11, Bharat Bhushan wrote:
> Exit to guest user space if kvm does not implement the hcall.
>
> Signed-off-by: Bharat Bhushan
> ---
> arch/powerpc/kvm/booke.c | 47 +--
> arch/powerpc/kvm/powerpc.c |1 +
> include/uapi/linux/kvm.h
On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:
> KVM_HC_VM_RESET: Requests that the virtual machine be reset.
> KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted.
>
> These hcalls are handled by guest userspace.
>
> Signed-off-by: Bharat Bhushan
> ---
>
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Monday, July 15, 2013 4:51 PM
> To: Bhushan Bharat-R65777
> Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder
> Stuart-B08248; Bhushan Bharat-R65777
> Subject: Re: [PATCH 1/5] powerpc: def
On 15.07.2013, at 13:11, Bharat Bhushan wrote:
> This patch defines the ePAPR hcall exit interface to guest user space.
The subject line is misleading. This is a kvm patch. Same applies for most
other patches.
>
> Signed-off-by: Bharat Bhushan
> ---
> Documentation/virtual/kvm/api.txt | 20
Detect the availability of the reset hcalls by looking at kvm,has-reset
property on the /hypervisor node in the device tree passed to the VM and
patches the reset mechanism to use reset hcall.
This patch uses the reser hcall when kvm,has-reset is there in
Signed-off-by: Bharat Bhushan
---
arch/
From: Bharat Bhushan
This patchset implements the hcall exit interface to userspace.
Also we added reset and shutdown hcall
Bharat Bhushan (5):
powerpc: define ePAPR hcall exit interface
booke: exit to guest userspace for unimplemented hcalls in kvm
booke: define reset and shutdown hcalls
KVM_HC_VM_RESET: Requests that the virtual machine be reset.
KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted.
These hcalls are handled by guest userspace.
Signed-off-by: Bharat Bhushan
---
Documentation/virtual/kvm/hypercalls.txt | 16
include/uapi
This patch defines the ePAPR hcall exit interface to guest user space.
Signed-off-by: Bharat Bhushan
---
Documentation/virtual/kvm/api.txt | 20
include/uapi/linux/kvm.h |7 +++
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/Documentation/
arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h
for KVM_HC_FEATURES
Signed-off-by: Bharat Bhushan
---
arch/powerpc/include/asm/kvm_para.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/kvm_para.h
b/arch/powerpc/incl
Exit to guest user space if kvm does not implement the hcall.
Signed-off-by: Bharat Bhushan
---
arch/powerpc/kvm/booke.c | 47 +--
arch/powerpc/kvm/powerpc.c |1 +
include/uapi/linux/kvm.h |1 +
3 files changed, 42 insertions(+), 7 deletions(
51 matches
Mail list logo