refine io emulation#8864
Open
lifeix wants to merge 4 commits intoprojectacrn:multi-arch-devfrom
Open
Conversation
Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
For PIO and MMIO io request, the register and handler logic is almost the same. This patch tries to common the io req for PIO and MMIO by: 1) use the same lock, io_bitmap and io_node to maintain/protect PIO/MMIO request 2) common the io_node allocate, PIO/MMIO register and handler code This patch also touch some logic changes: 1) For PIO request, use a private_data to pass parameter for PIO request handler like MMIO request. Now the IO handler prototype is like int32_t io_handler(struct io_request *io_req, void *private_data); So the vCPU paramater is removed. 2) For guest pm and reset PIO request, since the vCPU paramater is removed, so use the vBSP to do the S3/S5 and reset for guest VM. Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patchset tries to common io emulation for PIO/MMIO.
However, this patchset doesn't emable mmio vuart for risc-v since virtual PLIC doesn't enabled.
Fei Li (4):
io_req: use bitmap to record free mmio node
io_req: try to common io req for pio and mmio
io_req: enable io_req for risc-v
enable HSM
Signed-off-by: Fei Li fei1.li@intel.com
Acked-by: Wang Yu1 yu1.wang@intel.com