drivers/virt: introduce Freescale hypervisor management driver
Subsystems (2)
PATCH v6 7/7 drivers/virt: introduce Freescale hypervisor management driver
Add the drivers/virt directory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.
The Freescale hypervisor management driver provides several services to drivers and applications related to the Freescale hypervisor:
1. An ioctl interface for querying and managing partitions
2. A file interface to reading incoming doorbells
3. An interrupt handler for shutting down the partition upon receiving the shutdown doorbell from a manager partition
4. A kernel interface for receiving callbacks when a managed partition shuts down.
--- Documentation/ioctl/ioctl-number.txt | 1 + drivers/Kconfig | 2 + drivers/Makefile | 3 + drivers/virt/Kconfig | 32 ++ drivers/virt/Makefile | 5 + drivers/virt/fsl_hypervisor.c | 937 ++++++++++++++++++++++++++++++++++ include/linux/Kbuild | 1 + include/linux/fsl_hypervisor.h | 241 +++++++++ 8 files changed, 1222 insertions(+), 0 deletions(-) create mode 100644 drivers/virt/Kconfig create mode 100644 drivers/virt/Makefile create mode 100644 drivers/virt/fsl_hypervisor.c create mode 100644 include/linux/fsl_hypervisor.h
Documentation/ioctl/ioctl-number.txt +1 -0
@@ -301,6 +301,7 @@ Code Seq#(hex) Include File Comments <mailto:[email protected]> 0xAE all linux/kvm.h Kernel-based Virtual Machine <mailto:[email protected]> +0xAF 00-1F linux/fsl_hypervisor.h Freescale hypervisor 0xB0 all RATIO devices in development: <mailto:[email protected]> 0xB1 00-1F PPPoX <mailto:[email protected]>
drivers/Kconfig +2 -0
@@ -122,4 +122,6 @@ source "drivers/hwspinlock/Kconfig" source "drivers/clocksource/Kconfig" +source "drivers/virt/Kconfig" + endmenu
drivers/Makefile +3 -0
@@ -119,3 +119,6 @@ obj-y += ieee802154/ obj-y += clk/ obj-$(CONFIG_HWSPINLOCK) += hwspinlock/ + +# Virtualization drivers +obj-$(CONFIG_VIRT_DRIVERS) += virt/
drivers/virt/Kconfig new file +32 -0
@@ -0,0 +1,32 @@ +# +# Virtualization support drivers +# + +menuconfig VIRT_DRIVERS + bool "Virtualization drivers" + ---help--- + Say Y here to get to see options for device drivers that support + virtualization environments. + + If you say N, all options in this submenu will be skipped and disabled. + +if VIRT_DRIVERS + +config FSL_HV_MANAGER + tristate "Freescale hypervisor management driver" + depends on FSL_SOC + help + The Freescale hypervisor management driver provides several services + to drivers and applications related to the Freescale hypervisor: + + 1) An ioctl interface for querying and managing partitions. + + 2) A file interface to reading incoming doorbells. + + 3) An interrupt handler for shutting down the partition upon + receiving the shutdown doorbell from a manager partition. + + 4) A kernel interface for receiving callbacks when a managed + partition shuts down. + +endif
drivers/virt/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for drivers that support virtualization +# + +obj-$(CONFIG_FSL_HV_MANAGER) += fsl_hypervisor.o
drivers/virt/fsl_hypervisor.c new file +937 -0
937 lines not on this page · raw message
include/linux/Kbuild +1 -0
@@ -134,6 +134,7 @@ header-y += firewire-cdev.h header-y += firewire-constants.h header-y += flat.h header-y += fs.h +header-y += fsl_hypervisor.h header-y += fuse.h header-y += futex.h header-y += gameport.h
include/linux/fsl_hypervisor.h new file +241 -0
241 lines not on this page · raw message
Signature · 1 line
1.7.3.4
Quoted 11 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.The Freescale hypervisor management driver provides several services to drivers and applications related to the Freescale hypervisor:
1. An ioctl interface for querying and managing partitions
2. A file interface to reading incoming doorbells
Quoted 7 lines
3. An interrupt handler for shutting down the partition upon receiving the shutdown doorbell from a manager partition
4. A kernel interface for receiving callbacks when a managed partition shuts down.
Signed-off-by Timur Tabi <[email protected]>
Quoted 11 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.The Freescale hypervisor management driver provides several services to drivers and applications related to the Freescale hypervisor:
1. An ioctl interface for querying and managing partitions
2. A file interface to reading incoming doorbells
Quoted 7 lines
3. An interrupt handler for shutting down the partition upon receiving the shutdown doorbell from a manager partition
4. A kernel interface for receiving callbacks when a managed partition shuts down.
Signed-off-by Timur Tabi <[email protected]>
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.
....
Quoted 4 lines
Quoted 2 lines
Signed-off-by Timur Tabi <[email protected]>Acked-by Arnd Bergmann <[email protected]>
So I've made the changes that people have asked for, and Arnd has acked this driver. Who's going to pick it up? Who will be the maintainer for drivers/virt? I'd really like to see this driver in 3.1, and there's not much time left.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.
....
Quoted 4 lines
Quoted 2 lines
Signed-off-by Timur Tabi <[email protected]>Acked-by Arnd Bergmann <[email protected]>
So I've made the changes that people have asked for, and Arnd has acked this driver. Who's going to pick it up? Who will be the maintainer for drivers/virt? I'd really like to see this driver in 3.1, and there's not much time left.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 7 lines · On Friday 01 July 2011, Tabi Timur-B04825 wrote:
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.....
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Timur Tabi <[email protected]>Acked-by Arnd Bergmann <[email protected]>So I've made the changes that people have asked for, and Arnd has acked this driver. Who's going to pick it up? Who will be the maintainer for
drivers/virt? I'd really like to see this driver in 3.1, and there's not much time left.
I'd say merge it through the powerpc tree, and list yourself for the driver, but not the entire directory.
Arnd
Quoted 7 lines · On Friday 01 July 2011, Tabi Timur-B04825 wrote:
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:
Add the
drivers/virtdirectory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.....
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Timur Tabi <[email protected]>Acked-by Arnd Bergmann <[email protected]>So I've made the changes that people have asked for, and Arnd has acked this driver. Who's going to pick it up? Who will be the maintainer for
drivers/virt? I'd really like to see this driver in 3.1, and there's not much time left.
I'd say merge it through the powerpc tree, and list yourself for the driver, but not the entire directory.
Arnd