Drivers: hv: vmbus: Add hooks for per-CPU IRQ
Subsystems (2)
PATCH 1/1 Drivers: hv: vmbus: Add hooks for per-CPU IRQ
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V. They are being added as staging for upcoming code for Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ.
--- arch/x86/include/asm/mshyperv.h | 4 ++++ drivers/hv/hv.c | 2 ++ 2 files changed, 6 insertions(+)
arch/x86/include/asm/mshyperv.h +4 -0
@@ -168,6 +168,10 @@ void hyperv_vector_handler(struct pt_regs *regs);void hv_setup_vmbus_irq (void (*handler)(void ));void hv_remove_vmbus_irq (void ); +/* On x86/x64, there isn't a real IRQ to be enabled/disabled */ +static inline void hv_enable_vmbus_irq (void ) {} +static inline void hv_disable_vmbus_irq (void ) {} +void hv_setup_kexec_handler (void (*handler)(void ));void hv_remove_kexec_handler (void );void hv_setup_crash_handler (void (*handler)(struct pt_regs *regs));
drivers/hv/hv.c +2 -0
@@ -299,6 +299,7 @@ int hv_synic_init(unsigned int cpu)hv_set_siefp (siefp.as_uint64);/* Setup the shared SINT. */ +hv_enable_vmbus_irq ();hv_get_synint_state (HV_X64_MSR_SINT0 +VMBUS_MESSAGE_SINT , shared_sint.as_uint64);
@@ -433,6 +434,7 @@ int hv_synic_cleanup(unsigned int cpu)hv_get_synic_state (sctrl.as_uint64); sctrl.enable =0 ;hv_set_synic_state (sctrl.as_uint64); +hv_disable_vmbus_irq ();return 0 ; }
Signature · 6 lines
2.7.4 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Quoted 5 lines · Michael Kelley
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V. They are being added as staging for upcoming code for Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ.
Please submit this _with_ the new code that uses this "hook". We don't add new apis unless they are actually used.
thanks,
greg k-h
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel