Skip to content

Commit 6db7199

Browse files
Timur Tabikumargala
authored andcommitted
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. Signed-off-by: Timur Tabi <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
1 parent 8dbb6bc commit 6db7199

File tree

8 files changed

+1222
-0
lines changed

8 files changed

+1222
-0
lines changed

Documentation/ioctl/ioctl-number.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ Code Seq#(hex) Include File Comments
301301
302302
0xAE all linux/kvm.h Kernel-based Virtual Machine
303303
304+
0xAF 00-1F linux/fsl_hypervisor.h Freescale hypervisor
304305
0xB0 all RATIO devices in development:
305306
306307
0xB1 00-1F PPPoX <mailto:[email protected]>

drivers/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,6 @@ source "drivers/hwspinlock/Kconfig"
126126

127127
source "drivers/clocksource/Kconfig"
128128

129+
source "drivers/virt/Kconfig"
130+
129131
endmenu

drivers/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,6 @@ obj-y += ieee802154/
122122
obj-y += clk/
123123

124124
obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
125+
126+
# Virtualization drivers
127+
obj-$(CONFIG_VIRT_DRIVERS) += virt/

drivers/virt/Kconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Virtualization support drivers
3+
#
4+
5+
menuconfig VIRT_DRIVERS
6+
bool "Virtualization drivers"
7+
---help---
8+
Say Y here to get to see options for device drivers that support
9+
virtualization environments.
10+
11+
If you say N, all options in this submenu will be skipped and disabled.
12+
13+
if VIRT_DRIVERS
14+
15+
config FSL_HV_MANAGER
16+
tristate "Freescale hypervisor management driver"
17+
depends on FSL_SOC
18+
help
19+
The Freescale hypervisor management driver provides several services
20+
to drivers and applications related to the Freescale hypervisor:
21+
22+
1) An ioctl interface for querying and managing partitions.
23+
24+
2) A file interface to reading incoming doorbells.
25+
26+
3) An interrupt handler for shutting down the partition upon
27+
receiving the shutdown doorbell from a manager partition.
28+
29+
4) A kernel interface for receiving callbacks when a managed
30+
partition shuts down.
31+
32+
endif

drivers/virt/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for drivers that support virtualization
3+
#
4+
5+
obj-$(CONFIG_FSL_HV_MANAGER) += fsl_hypervisor.o

0 commit comments

Comments
 (0)