acrn-hypervisor/hypervisor/include
Junjie Mao 17771c0ac2 HV: io: refine state transitions of VHM requests
Instead of using two members for maintaining the state of a VHM request, this
patch replaces the transitions with a single state. Basically the lifecycle of a
VHM request shall be:

    FREE -> PENDING -> PROCESSING -> COMPLETE -> FREE -> ...

The structure header of vhm_request has more details of the transitions access
limitations under different states.

Also drop the set but unused member vcpu.ioreq_pending.

For backward-compatibility, the obsolete 'valid' member is still kept and
maintained before SOS and DM adapts to the new state transitions.

v2 -> v3:

    * Use complete_ioreq to mark an I/O request finished in
      dm_emulate_(pio|mmio)_post.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-31 10:22:03 +08:00
..
arch/x86 HV: io: refine state transitions of VHM requests 2018-07-31 10:22:03 +08:00
common HV: io: add post-work for PCICFG and WP requests 2018-07-31 10:22:03 +08:00
debug hv:Delete serial files 2018-07-30 16:25:16 +08:00
lib HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
public HV: io: refine state transitions of VHM requests 2018-07-31 10:22:03 +08:00
hv_debug.h hv:Reshuffle console/uart code 2018-07-30 16:25:16 +08:00
hv_lib.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hypervisor.h hv: mmu: revisit mmu modify page table attributes 2018-07-19 11:11:32 +08:00