mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: move Kconfig IOREQ_POLLING to acrn vm config
Previously I/O emulation completion mode mode was configured in Kconfig: config IOREQ_NOTIFICATION bool "Notification mode" help When I/O request is completed, SOS will mark the completion status and notify hypervisor via hypercall. Hypervisor will finish the post work when notification is received. config IOREQ_POLLING bool "Polling mode" help When I/O request is completed, SOS will only mark completion status without notifying hypervisor. Hypervisor will poll the completion status and finish the post work. Now move this configuration to guest_flags of acrn_vm_config struct. if ((vm_config->guest_flags & IO_COMPLETION_POLLING) != 0U) { I/O with polling; } else { I/O with notification; } Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -40,28 +40,6 @@ config PARTITION_MODE
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
prompt "I/O emulation completion mode"
|
||||
default IOREQ_NOTIFICATION
|
||||
help
|
||||
Select the mode of I/O emulation completion
|
||||
|
||||
config IOREQ_NOTIFICATION
|
||||
bool "Notification mode"
|
||||
help
|
||||
When I/O request is completed, SOS will mark the completion status and
|
||||
notify hypervisor via hypercall. Hypervisor will finish the post work
|
||||
when notification is received.
|
||||
|
||||
config IOREQ_POLLING
|
||||
bool "Polling mode"
|
||||
help
|
||||
When I/O request is completed, SOS will only mark completion status
|
||||
without notifying hypervisor. Hypervisor will poll the completion
|
||||
status and finish the post work.
|
||||
|
||||
endchoice
|
||||
|
||||
config BOARD
|
||||
string "Target board"
|
||||
help
|
||||
|
Reference in New Issue
Block a user