Skip to content

Commit

Permalink
drivers/virt: introduce Freescale hypervisor management driver
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Timur Tabi <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
Timur Tabi authored and kumargala committed Jul 8, 2011
1 parent 8dbb6bc commit 6db7199
Show file tree
Hide file tree
Showing 8 changed files with 1,222 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/ioctl/ioctl-number.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
Expand Down
2 changes: 2 additions & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,6 @@ source "drivers/hwspinlock/Kconfig"

source "drivers/clocksource/Kconfig"

source "drivers/virt/Kconfig"

endmenu
3 changes: 3 additions & 0 deletions drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ obj-y += ieee802154/
obj-y += clk/

obj-$(CONFIG_HWSPINLOCK) += hwspinlock/

# Virtualization drivers
obj-$(CONFIG_VIRT_DRIVERS) += virt/
32 changes: 32 additions & 0 deletions drivers/virt/Kconfig
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions drivers/virt/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for drivers that support virtualization
#

obj-$(CONFIG_FSL_HV_MANAGER) += fsl_hypervisor.o
Loading

0 comments on commit 6db7199

Please sign in to comment.