RE: [PATCH 2/7] Initial skeleton of VFIO support for Device Tree based devices

2013-10-29 Thread Yoder Stuart-B08248
; Yoder Stuart-B08248; io...@lists.linux-foundation.org; t...@virtualopensystems.com Subject: Re: [PATCH 2/7] Initial skeleton of VFIO support for Device Tree based devices On 09/30/2013 11:37 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: iommu-boun...@lists.linux

RE: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

2013-10-29 Thread Yoder Stuart-B08248
-Original Message- From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] Sent: Wednesday, October 02, 2013 6:14 AM To: Yoder Stuart-B08248 Cc: Alex Williamson; kvm...@lists.cs.columbia.edu; iommu@lists.linux- foundation.org; linux-samsung-...@vger.kernel.org; kvm

RE: [PATCH 2/7] Initial skeleton of VFIO support for Device Tree based devices

2013-10-29 Thread Yoder Stuart-B08248
: linux-samsung-...@vger.kernel.org; kvm@vger.kernel.org; ag...@suse.de; Yoder Stuart-B08248; io...@lists.linux-foundation.org; Antonios Motakis; t...@virtualopensystems.com Subject: [PATCH 2/7] Initial skeleton of VFIO support for Device Tree based devices Platform devices in the Linux

RE: [PATCH 3/4] VFIO: pci: amend vfio-pci for explicit binding via sysfs only

2013-10-14 Thread Yoder Stuart-B08248
-Original Message- From: Kim Phillips [mailto:kim.phill...@linaro.org] Sent: Friday, October 11, 2013 6:17 PM To: Wood Scott-B07421 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; Yoder Stuart-B08248; christoffer.d...@linaro.org; alex.william...@redhat.com; linux- ker

RE: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-10 Thread Yoder Stuart-B08248
I am trying to understand what you are proposing here (example DEVICE can be handled by DRIVER1 and VFIO-PLATFORM-DRIVER): - By default drv-explicit_bind_only will be clear in all drivers. - By default device-explicit_bind_only will also be clear for all devices. - On boot, matching

RE: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-09 Thread Yoder Stuart-B08248
Have been thinking about this issue some more. As Scott mentioned, 'wildcard' matching for a driver can be fairly done in the platform bus driver. We could add a new flag to the platform driver struct: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 4f8bef3..4d6cf14 100644

RE: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-09 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, October 09, 2013 2:22 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Kim Phillips; Christoffer Dall; Alex Williamson; linux-ker...@vger.kernel.org; a.mota...@virtualopensystems.com; ag...@suse.de; Sethi Varun-B16395

RE: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-10-02 Thread Yoder Stuart-B08248
-Original Message- From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] Sent: Wednesday, October 02, 2013 6:22 AM To: Yoder Stuart-B08248 Cc: Alex Williamson; kvm-arm; Linux IOMMU; Linux Samsung SOC; KVM devel mailing list; Alexander Graf; VirtualOpenSystems Technical

RE: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

2013-10-02 Thread Yoder Stuart-B08248
-Original Message- From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] Sent: Wednesday, October 02, 2013 6:14 AM To: Yoder Stuart-B08248 Cc: Alex Williamson; kvm...@lists.cs.columbia.edu; iommu@lists.linux- foundation.org; linux-samsung-...@vger.kernel.org; kvm

RE: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Yoder Stuart-B08248
-Original Message- From: Christoffer Dall [mailto:christoffer.d...@linaro.org] Sent: Wednesday, October 02, 2013 10:14 AM To: Alex Williamson Cc: Kim Phillips; gre...@linuxfoundation.org; linux- ker...@vger.kernel.org; a.mota...@virtualopensystems.com; ag...@suse.de; Yoder Stuart

RE: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

2013-10-01 Thread Yoder Stuart-B08248
static int __init vfio_iommu_type1_init(void) { - if (!iommu_present(pci_bus_type)) +#ifdef CONFIG_PCI + if (iommu_present(pci_bus_type)) { + iommu_bus_type = pci_bus_type; + /* For PCI targets, IOMMU_CAP_INTR_REMAP is required */ +

RE: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-10-01 Thread Yoder Stuart-B08248
Antonios Motakis wrote Alex Williamson alex.william...@redhat.com wrote: I notice all the open firmware calls here and I'm curious, will all platform devices be making use of open firmware? I don't know if this is synonymous with device tree or not. Thanks, This VFIO driver will

RE: vfio for platform devices - 9/5/2012 - minutes

2013-09-11 Thread Yoder Stuart-B08248
-Original Message- From: Yoder Stuart-B08248 Sent: Thursday, September 05, 2013 12:51 PM To: Wood Scott-B07421; Sethi Varun-B16395; Bhushan Bharat-R65777; 'Peter Maydell'; 'Santosh Shukla'; 'Alex Williamson'; 'Alexander Graf'; 'Antonios Motakis'; 'Christoffer Dall'; 'kim.phill

RE: vfio for platform devices - 9/5/2012 - minutes

2013-09-06 Thread Yoder Stuart-B08248
Adding Will... -Original Message- From: Sethi Varun-B16395 Sent: Friday, September 06, 2013 11:56 AM To: Yoder Stuart-B08248; Wood Scott-B07421; Bhushan Bharat-R65777; 'Peter Maydell'; 'Santosh Shukla'; 'Alex Williamson'; 'Alexander Graf'; 'Antonios Motakis'; 'Christoffer Dall

vfio for platform devices - 9/5/2012 - minutes

2013-09-05 Thread Yoder Stuart-B08248
We had a call with those interested and/or working on vfio for platform devices. Participants: Scott Wood, Varun Sethi, Bharat Bhushan, Peter Maydell, Santosh Shukla, Alex Williamson, Alexander Graf, Antonios Motakis, Christoffer Dall, Kim Phillips,

RE: [RFC 0/3] WIP VFIO for device tree devices on Arndale

2013-08-05 Thread Yoder Stuart-B08248
-foundation.org; linux-samsung-...@vger.kernel.org; kvm@vger.kernel.org; ag...@suse.de; Yoder Stuart-B08248; Antonios Motakis Subject: [RFC 0/3] WIP VFIO for device tree devices on Arndale I think we should call this infrastructure vfio for platform devices. These devices are on a platform bus, as can

RE: [PATCH 2/3] Initial skeleton of VFIO support for Device Tree based devices

2013-08-05 Thread Yoder Stuart-B08248
+MODULE_VERSION(DRIVER_VERSION); +MODULE_LICENSE(GPL v2); +MODULE_AUTHOR(DRIVER_AUTHOR); +MODULE_DESCRIPTION(DRIVER_DESC); diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 284ff24..1e4bef2 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h @@

RE: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-17 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 17, 2013 7:19 AM To: Gleb Natapov Cc: Wood Scott-B07421; Bhushan Bharat-R65777; kvm@vger.kernel.org; kvm-...@vger.kernel.org; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/5

RE: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-17 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 17, 2013 10:21 AM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Bhushan Bharat-R65777; kvm@vger.kernel.org; kvm-...@vger.kernel.org; Gleb Natapov Subject: Re: [PATCH 3/5] booke: define reset

RE: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-17 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 17, 2013 7:19 AM To: Gleb Natapov Cc: Wood Scott-B07421; Bhushan Bharat-R65777; k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/5

RE: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-17 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 17, 2013 10:21 AM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Bhushan Bharat-R65777; k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Gleb Natapov Subject: Re: [PATCH 3/5] booke: define reset

RE: RFC: vfio interface for platform devices (v2)

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Mario Smarduch [mailto:mario.smard...@huawei.com] Sent: Thursday, July 04, 2013 9:45 AM To: Yoder Stuart-B08248 Cc: Alex Williamson; Alexander Graf; Wood Scott-B07421; kvm@vger.kernel.org list; Bhushan Bharat-R65777; kvm-...@vger.kernel.org; virtualizat

RE: RFC: vfio interface for platform devices

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 03, 2013 5:32 PM To: Yoder Stuart-B08248 Cc: Alex Williamson; Alexander Graf; Wood Scott-B07421; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; kvm

RE: RFC: vfio interface for platform devices (v2)

2013-07-16 Thread Yoder Stuart-B08248
(sorry for the delayed response, but I've been on PTO) 1. VFIO_GROUP_GET_DEVICE_FD User space knows by out-of-band means which device it is accessing and will call VFIO_GROUP_GET_DEVICE_FD passing a specific sysfs path to get the device information: fd = ioctl(group,

RE: RFC: vfio interface for platform devices

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 16, 2013 5:01 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Alex Williamson; Alexander Graf; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; kvm

RE: RFC: vfio interface for platform devices (v2)

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Mario Smarduch [mailto:mario.smard...@huawei.com] Sent: Thursday, July 04, 2013 9:45 AM To: Yoder Stuart-B08248 Cc: Alex Williamson; Alexander Graf; Wood Scott-B07421; k...@vger.kernel.org list; Bhushan Bharat-R65777; kvm-ppc@vger.kernel.org; virtualizat

RE: RFC: vfio interface for platform devices

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 03, 2013 5:32 PM To: Yoder Stuart-B08248 Cc: Alex Williamson; Alexander Graf; Wood Scott-B07421; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; k

RE: RFC: vfio interface for platform devices (v2)

2013-07-16 Thread Yoder Stuart-B08248
(sorry for the delayed response, but I've been on PTO) 1. VFIO_GROUP_GET_DEVICE_FD User space knows by out-of-band means which device it is accessing and will call VFIO_GROUP_GET_DEVICE_FD passing a specific sysfs path to get the device information: fd = ioctl(group,

RE: RFC: vfio interface for platform devices

2013-07-16 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 16, 2013 5:01 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Alex Williamson; Alexander Graf; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; k

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
[cut] So overall the interface and extension makes sense. My only question is whether it's better to get complete reuse out of GET_REGION_INFO and GET_IRQ_INFO and then add another device tree specific ioctl or is it better to add a device tree index and path to the existing GET_*_INFO

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 03, 2013 1:52 PM To: Alexander Graf Cc: Yoder Stuart-B08248; Alex Williamson; Wood Scott-B07421; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; kvm

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
[cut] So overall the interface and extension makes sense. My only question is whether it's better to get complete reuse out of GET_REGION_INFO and GET_IRQ_INFO and then add another device tree specific ioctl or is it better to add a device tree index and path to the existing GET_*_INFO

PPC: RFC: proposal for VM reset shutdown hcall (v4)

2013-07-03 Thread Yoder Stuart-B08248
Version 4 changes -clarified that KVM zeros the upper half of the struct fields if the VM is not in 64-bit mode KVM_CAP_EXIT_EPAPR_HCALL Capability A new capability KVM_CAP_EXIT_EPAPR_HCALL is defined to advertise

RE: PPC: RFC: proposal for VM reset shutdown hcall (v4)

2013-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 03, 2013 2:32 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm-...@vger.kernel.org Subject: Re: PPC: RFC: proposal for VM reset shutdown

RFC: vfio interface for platform devices (v2)

2013-07-03 Thread Yoder Stuart-B08248
Version 2 -VFIO_GROUP_GET_DEVICE_FD-- specified that the path is a sysfs path -VFIO_DEVICE_GET_INFO-- defined 2 flags instead of 1 -deleted VFIO_DEVICE_GET_DEVTREE_INFO ioctl -VFIO_DEVICE_GET_REGION_INFO-- updated as per AlexW's suggestion, defined 5 new flags and associated structs

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
[cut] So overall the interface and extension makes sense. My only question is whether it's better to get complete reuse out of GET_REGION_INFO and GET_IRQ_INFO and then add another device tree specific ioctl or is it better to add a device tree index and path to the existing GET_*_INFO

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, July 03, 2013 1:52 PM To: Alexander Graf Cc: Yoder Stuart-B08248; Alex Williamson; Wood Scott-B07421; Bhushan Bharat-R65777; Sethi Varun-B16395; virtualizat...@lists.linux-foundation.org; Antonios Motakis; k

RE: RFC: vfio interface for platform devices

2013-07-03 Thread Yoder Stuart-B08248
[cut] So overall the interface and extension makes sense. My only question is whether it's better to get complete reuse out of GET_REGION_INFO and GET_IRQ_INFO and then add another device tree specific ioctl or is it better to add a device tree index and path to the existing GET_*_INFO

PPC: RFC: proposal for VM reset shutdown hcall (v4)

2013-07-03 Thread Yoder Stuart-B08248
Version 4 changes -clarified that KVM zeros the upper half of the struct fields if the VM is not in 64-bit mode KVM_CAP_EXIT_EPAPR_HCALL Capability A new capability KVM_CAP_EXIT_EPAPR_HCALL is defined to advertise

RE: PPC: RFC: proposal for VM reset shutdown hcall (v4)

2013-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, July 03, 2013 2:32 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm-ppc@vger.kernel.org Subject: Re: PPC: RFC: proposal for VM reset shutdown

RFC: vfio interface for platform devices (v2)

2013-07-03 Thread Yoder Stuart-B08248
Version 2 -VFIO_GROUP_GET_DEVICE_FD-- specified that the path is a sysfs path -VFIO_DEVICE_GET_INFO-- defined 2 flags instead of 1 -deleted VFIO_DEVICE_GET_DEVTREE_INFO ioctl -VFIO_DEVICE_GET_REGION_INFO-- updated as per AlexW's suggestion, defined 5 new flags and associated structs

binding/unbinding devices to vfio-pci

2013-07-02 Thread Yoder Stuart-B08248
Alex, I'm trying to think through how binding/unbinding of devices will work with VFIO for platform devices and have a couple of questions about how vfio-pci works. When you bind a device to vfio-pci, e.g.: # echo 1102 0002 /sys/bus/pci/drivers/vfio-pci/new_id ...I understand that the echo

RFC: proposal for VM reset shutdown hcall (v2)

2013-07-02 Thread Yoder Stuart-B08248
Version 2 changes -remove advertising via KVM_HC_FEATURES -define a new exit type (KVM_EXIT_EPAPR_HCALL) for user space handled hcalls -advertise KVM_EXIT_EPAPR_HCALL to user space via new capability flag -defined device tree properties to advertise the existence of reset

RE: binding/unbinding devices to vfio-pci

2013-07-02 Thread Yoder Stuart-B08248
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday, July 02, 2013 9:46 AM To: Yoder Stuart-B08248 Cc: kvm@vger.kernel.org list; Alexander Graf; Bhushan Bharat-R65777; a.mota...@virtualopensystems.com; virtualizat...@lists.linux

RE: RFC: proposal for VM reset shutdown hcall (v2)

2013-07-02 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, July 02, 2013 10:23 AM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm-...@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall (v2

RE: RFC: proposal for VM reset shutdown hcall (v2)

2013-07-02 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 02, 2013 11:56 AM To: Yoder Stuart-B08248 Cc: Alexander Graf; Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm- p...@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall (v2

RFC: proposal for VM reset shutdown hcall (v3)

2013-07-02 Thread Yoder Stuart-B08248
Version 3 changes -added kvm, prefix to hcall properties in device tree -specified which registers ret and args will end up in -removed e500-specific comments KVM_CAP_EXIT_EPAPR_HCALL Capability A new capability

RFC: vfio interface for platform devices

2013-07-02 Thread Yoder Stuart-B08248
The write-up below is the first draft of a proposal for how the kernel can expose platform devices to user space using vfio. In short, I'm proposing a new ioctl VFIO_DEVICE_GET_DEVTREE_INFO which allows user space to correlate regions and interrupts to the corresponding device tree node

RE: RFC: proposal for VM reset shutdown hcall (v2)

2013-07-02 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, July 02, 2013 10:23 AM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm-ppc@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall

RE: RFC: proposal for VM reset shutdown hcall (v2)

2013-07-02 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, July 02, 2013 11:56 AM To: Yoder Stuart-B08248 Cc: Alexander Graf; Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm- p...@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall (v2

RFC: proposal for VM reset shutdown hcall (v3)

2013-07-02 Thread Yoder Stuart-B08248
Version 3 changes -added kvm, prefix to hcall properties in device tree -specified which registers ret and args will end up in -removed e500-specific comments KVM_CAP_EXIT_EPAPR_HCALL Capability A new capability

RFC: vfio interface for platform devices

2013-07-02 Thread Yoder Stuart-B08248
The write-up below is the first draft of a proposal for how the kernel can expose platform devices to user space using vfio. In short, I'm proposing a new ioctl VFIO_DEVICE_GET_DEVTREE_INFO which allows user space to correlate regions and interrupts to the corresponding device tree node

RFC: proposal for VM reset hcall

2013-07-01 Thread Yoder Stuart-B08248
For the e500 PV platform we need a VM reset mechanisms. Hypercall: KVM_HC_VM_RESET Description: Requests that the virtual machine be reset. The hcall takes no arguments. If successful the hcall does not return. Arguments: r11hcall-token KVM_HC_VM_RESET

RE: RFC: proposal for VM reset hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 01, 2013 11:49 AM To: Yoder Stuart-B08248 Cc: Alexander Graf; Wood Scott-B07421; Bhushan Bharat-R65777; kvm@vger.kernel.org Subject: Re: RFC: proposal for VM reset hcall On 07/01/2013 10:56:54 AM, Yoder Stuart

RE: RFC: proposal for VM reset hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 01, 2013 12:32 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Alexander Graf; Bhushan Bharat-R65777; kvm@vger.kernel.org Subject: Re: RFC: proposal for VM reset hcall On 07/01/2013 12:28:34 PM, Yoder Stuart

RE: RFC: proposal for VM reset hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 01, 2013 2:46 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Bhushan Bharat-R65777; kvm@vger.kernel.org Subject: Re: RFC: proposal for VM reset hcall Am 01.07.2013 um 19:44 schrieb Yoder

RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
For the e500 PV platform we need a VM reset and shutdown mechanisms. Hypercall: KVM_HC_VM_RESET Description: Requests that the virtual machine be reset. The hcall takes no arguments. If successful the hcall

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, July 01, 2013 5:14 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm-...@vger.kernel.org

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Yoder Stuart-B08248 Sent: Monday, July 01, 2013 5:59 PM To: 'Alexander Graf' Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm-...@vger.kernel.org Subject: RE: RFC: proposal for VM reset shutdown hcall -Original

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 01, 2013 6:01 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; kvm@vger.kernel.org list; kvm-...@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, July 01, 2013 5:14 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm-ppc@vger.kernel.org

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Yoder Stuart-B08248 Sent: Monday, July 01, 2013 5:59 PM To: 'Alexander Graf' Cc: Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm-ppc@vger.kernel.org Subject: RE: RFC: proposal for VM reset shutdown hcall -Original

RE: RFC: proposal for VM reset shutdown hcall

2013-07-01 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 01, 2013 6:01 PM To: Yoder Stuart-B08248 Cc: Bhushan Bharat-R65777; Wood Scott-B07421; k...@vger.kernel.org list; kvm-ppc@vger.kernel.org Subject: Re: RFC: proposal for VM reset shutdown hcall

RE: RFC: vfio API changes needed for powerpc (v3)

2013-04-11 Thread Yoder Stuart-B08248
-Original Message- From: Joerg Roedel [mailto:j...@8bytes.org] Sent: Thursday, April 11, 2013 7:57 AM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; kvm@vger.kernel.org; qemu-de...@nongnu.org; io...@lists.linux-foundation.org; ag...@suse.de; Bhushan Bharat-R65777 Subject: Re: RFC

RE: [PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Yoder Stuart-B08248
-Original Message- From: Yoder Stuart-B08248 Sent: Tuesday, April 09, 2013 3:36 PM To: ag...@suse.de Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: [PATCH] KVM: PPC: emulate dcbst From: Stuart Yoder stuart.yo...@freescale.com Signed-off

RE: RFC: vfio API changes needed for powerpc (v3)

2013-04-08 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Friday, April 05, 2013 5:17 PM To: Yoder Stuart-B08248 Cc: Alex Williamson; Wood Scott-B07421; ag...@suse.de; Bhushan Bharat-R65777; Sethi Varun-B16395; kvm@vger.kernel.org; qemu-de...@nongnu.org; io...@lists.linux-foundation.org

RFC: vfio API changes needed for powerpc (v2)

2013-04-04 Thread Yoder Stuart-B08248
Based on the email thread over the last couple of days, I have below an more concrete proposal (v2) for new ioctls supporting vfio-pci on SoCs with the Freescale PAMU. Example usage is as described by Scott: count = VFIO_IOMMU_GET_MSI_BANK_COUNT VFIO_IOMMU_SET_ATTR(ATTR_GEOMETRY)

RE: RFC: vfio API changes needed for powerpc (v2)

2013-04-04 Thread Yoder Stuart-B08248
/* * VFIO_PAMU_MAP_MSI_BANK * * Maps the MSI bank at the specified index and iova. User space must * call this ioctl once for each MSI bank (count of banks is returned by * VFIO_IOMMU_GET_MSI_BANK_COUNT). * Caller provides struct vfio_pamu_msi_bank_map with all fields set.

RFC: vfio API changes needed for powerpc (v3)

2013-04-04 Thread Yoder Stuart-B08248
-v3 updates -made vfio_pamu_attr a union, added flags -s/VFIO_PAMU_/VFIO_IOMMU_PAMU_/ for the ioctls to make it more clear which fd is being operated on -added flags to vfio_pamu_msi_bank_map/umap -VFIO_PAMU_GET_MSI_BANK_COUNT now just returns a __u32 not a struct -fixed

RE: RFC: vfio API changes needed for powerpc (v2)

2013-04-04 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Thursday, April 04, 2013 5:52 PM To: Yoder Stuart-B08248 Cc: Alex Williamson; Wood Scott-B07421; ag...@suse.de; Bhushan Bharat-R65777; Sethi Varun-B16395; kvm@vger.kernel.org; qemu-de...@nongnu.org; io...@lists.linux-foundation.org

RFC: vfio API changes needed for powerpc

2013-04-02 Thread Yoder Stuart-B08248
Alex, We are in the process of implementing vfio-pci support for the Freescale IOMMU (PAMU). It is an aperture/window-based IOMMU and is quite different than x86, and will involve creating a 'type 2' vfio implementation. For each device's DMA mappings, PAMU has an overall aperture and a number

RE: [PATCH][v2] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-24 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Thursday, January 24, 2013 12:22 PM To: Yoder Stuart-B08248 Cc: ag...@suse.de; b...@kernel.crashing.org; linuxppc-...@ozlabs.org; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH][v2] KVM: PPC

RE: [PATCH][v2] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-24 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Thursday, January 24, 2013 12:22 PM To: Yoder Stuart-B08248 Cc: ag...@suse.de; b...@kernel.crashing.org; linuxppc-...@ozlabs.org; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH][v2] KVM: PPC

RE: [PATCH v11 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, July 02, 2012 7:18 AM To: Yoder Stuart-B08248 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH v11 4/8] KVM: PPC: Add

RE: [PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 02, 2012 12:25 PM To: Alexander Graf Cc: Yoder Stuart-B08248; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Tabi Timur-B04825 Subject: Re: [PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

RE: [PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, July 03, 2012 2:34 PM To: Yoder Stuart-B08248 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel On 03.07.2012

RE: [PATCH v11 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, July 02, 2012 7:18 AM To: Yoder Stuart-B08248 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org Subject: Re: [PATCH v11 4/8] KVM: PPC: Add

RE: [PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 02, 2012 12:25 PM To: Alexander Graf Cc: Yoder Stuart-B08248; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Tabi Timur-B04825 Subject: Re: [PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

RE: [PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, July 03, 2012 2:34 PM To: Yoder Stuart-B08248 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org Subject: Re: [PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel On 03.07.2012

RE: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, March 07, 2012 5:39 PM To: Wood Scott-B07421 Cc: Yoder Stuart-B08248; kvm-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

RE: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, March 07, 2012 5:39 PM To: Wood Scott-B07421 Cc: Yoder Stuart-B08248; kvm-ppc@vger.kernel.org; k...@vger.kernel.org Subject: Re: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

RE: [PATCH v2 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-01-09 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, January 09, 2012 8:15 AM To: Liu Yu-B13201 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; ga...@kernel.crashing.org; Wood Scott- B07421;

RE: [PATCH v2 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-01-09 Thread Yoder Stuart-B08248
Hrm. This will return on signal. So if the guest sends an idle hcall, then user space gets a random signal, we'll continue executing the guest CPU, getting us out of idle even though the guest didn't expect it, since the guest really wants to get an interrupt after the idle hcall.

RE: [PATCH v2 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-01-09 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Monday, January 09, 2012 8:15 AM To: Liu Yu-B13201 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ga...@kernel.crashing.org; Wood Scott- B07421;

RE: [PATCH] KVM: PPC: Apply paravirt to all vcpu

2011-11-22 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Tuesday, November 22, 2011 2:45 PM To: Wood Scott-B07421 Cc: Liu Yu-B13201; kvm-ppc@vger.kernel.org Subject: Re: [PATCH] KVM: PPC: Apply paravirt to

RE: [PATCH] KVM: PPC: Apply paravirt to all vcpu

2011-11-22 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, November 22, 2011 3:28 PM To: Yoder Stuart-B08248 Cc: Wood Scott-B07421; Liu Yu-B13201; kvm-ppc@vger.kernel.org Subject: Re: [PATCH] KVM: PPC: Apply paravirt to all vcpu On 22.11.2011, at 22:11

magic page API

2011-10-17 Thread Yoder Stuart-B08248
The magic page hcall API and related data structure fields has the following: unsigned long magic_page_pa; /* phys addr to map the magic page to */ unsigned long magic_page_ea; /* effect. addr to map the magic page to */ Shouldn't the PA be 64-bits? Or some phys addr type. Not

RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Yoder Stuart-B08248
Alex Graf, Scott Wood, and I met last week to try to flesh out some details as to how vfio could work for non-PCI devices, like we have in embedded systems. This most likely will require a different kernel driver than vfio-- for now we are calling it dtio (for device tree I/O) as there is no way

RE: qemu-kvm 0.15 usb problem

2011-08-09 Thread Yoder Stuart-B08248
unsubscribe kvm -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: RFC: New API for PPC for vcpu mmu access

2011-02-07 Thread Yoder Stuart-B08248
A fixed array does mean you wouldn't have to worry about whether qemu supports the more advanced struct format if fields are added -- you can just unconditionally write it, as long as it's backwards compatible. Unless you hit the limit of the pre-determined array size, that is. And if

RE: RFC: New API for PPC for vcpu mmu access

2011-02-07 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Avi Kivity Sent: Monday, February 07, 2011 11:14 AM To: Alexander Graf Cc: Wood Scott-B07421; Yoder Stuart-B08248; kvm-...@vger.kernel.org; kvm@vger.kernel.org; qemu-de

RE: RFC: New API for PPC for vcpu mmu access

2011-02-07 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Monday, February 07, 2011 12:52 PM To: Alexander Graf Cc: Yoder Stuart-B08248; Wood Scott-B07421; kvm-...@vger.kernel.org; kvm@vger.kernel.org; qemu-de...@nongnu.org Subject: Re: RFC: New API for PPC for vcpu mmu access On Mon, 7

RFC: New API for PPC for vcpu mmu access

2011-02-02 Thread Yoder Stuart-B08248
Below is a proposal for a new API for PPC to allow KVM clients to set MMU state in a vcpu. BookE processors have one or more software managed TLBs and currently there is no mechanism for Qemu to initialize or access them. This is needed for normal initialization as well as debug. There are 4

RE: RFC: New API for PPC for vcpu mmu access

2011-02-02 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, February 02, 2011 3:34 PM To: Yoder Stuart-B08248 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; qemu-de...@nongnu.org Subject: Re: RFC: New API for PPC for vcpu mmu access On 02.02.2011, at 21

RE: RFC: New API for PPC for vcpu mmu access

2011-02-02 Thread Yoder Stuart-B08248
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, February 02, 2011 3:34 PM To: Yoder Stuart-B08248 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; qemu-de...@nongnu.org Subject: Re: RFC: New API for PPC for vcpu mmu access On 02.02.2011, at 21

RE: kvm ppc timing stats

2010-12-07 Thread Yoder Stuart-B08248
:38 PM To: Yoder Stuart-B08248 Cc: kvm-ppc@vger.kernel.org Subject: Re: kvm ppc timing stats I don't think the numbers added up like that for us either. We treated them as relative data, not absolute. I don't remember how early/late the timestamps were recorded, but obviously they cannot

kvm ppc timing stats

2010-12-01 Thread Yoder Stuart-B08248
Hollis, Am looking at some performance data and want to make sure that I'm understanding things correctly with your CONFIG_KVM_EXIT_TIMING stuff. If I reset the timing counters, run a workload under for a fixed duration (e.g. 30 seconds), and then look at the exit stats, I should see 30 seconds

RE: Software breakpoint in kvmppc guest debug

2010-11-09 Thread Yoder Stuart-B08248
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Tuesday, November 09, 2010 12:50 PM To: Wood Scott-B07421 Cc: Hollis Blanchard; Liu Yu-B13201; kvm-ppc@vger.kernel.org; Jan Kiszka Subject: Re: Software