Skip to contentSkip to conversation

drivers/virt: introduce Freescale hypervisor management driver

PATCH In review Timur Tabi 3 participants 7 messages Jun 9, 2011 – Jul 1, 2011

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

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
index a0a5d82..9b8a8bd 100644
@@ -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
index 557a469..0371680 100644
@@ -122,4 +122,6 @@ source "drivers/hwspinlock/Kconfig"
 
 source "drivers/clocksource/Kconfig"
 
+source "drivers/virt/Kconfig"
+
 endmenu
drivers/Makefile +3 -0
index 3f135b6..bbe2918 100644
@@ -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
new file mode 100644
index 0000000..2dcdbc9
@@ -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
new file mode 100644
index 0000000..c47f04d
@@ -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
index 75cf611..68c341a 100644
@@ -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
Acked-by on v6 7/7
#1 lore raw
Quoted 11 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:

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

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.

#2 lore raw
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:

Add the drivers/virt directory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.

....

Quoted 4 lines
Quoted 2 lines

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
#3 lore raw
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/virt directory, 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

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

#4 lore raw
In reply to Tabi Timur-B04825
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/virt directory, 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

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

#5 lore raw
In reply to Arnd Bergmann
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:

Add the drivers/virt directory, which houses drivers that support virtualization environments, and add the Freescale hypervisor management driver.

....

Quoted 4 lines
Quoted 2 lines

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
Acked-by on v6 7/7
#6 lore raw
In reply to Timur Tabi
Quoted 11 lines · On Thursday 09 June 2011 22:52:06 Timur Tabi wrote:

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

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.