mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
HV: io: obsolete the valid field in vhm requests
As SOS has already adapted to the new state transition of VHM requests for a month, the old `valid` field can now be safely obsoleted. This patch changes the `valid` field as reserved and drops all the code that reads or modifies this field for backward compatibility. The embedded comments are updated accordingly, following the doxygen style. Tracked-On: #875 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
static void complete_ioreq(struct vhm_request *vhm_req)
|
||||
{
|
||||
vhm_req->valid = 0;
|
||||
atomic_store32(&vhm_req->processed, REQ_STATE_FREE);
|
||||
}
|
||||
|
||||
@@ -140,8 +139,7 @@ void emulate_io_post(struct acrn_vcpu *vcpu)
|
||||
req_buf = (union vhm_request_buffer *)vcpu->vm->sw.io_shared_page;
|
||||
vhm_req = &req_buf->req_queue[vcpu->vcpu_id];
|
||||
|
||||
if ((vhm_req->valid == 0) ||
|
||||
(atomic_load32(&vhm_req->processed) != REQ_STATE_COMPLETE)) {
|
||||
if (atomic_load32(&vhm_req->processed) != REQ_STATE_COMPLETE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user