Skip to content

Conversation

@liujing2
Copy link

@liujing2 liujing2 commented Dec 16, 2019

This is just a copy of rust-vmm PR rust-vmm#12, used for later dragonball merging.

@liujing2 liujing2 force-pushed the devmgr-v1 branch 6 times, most recently from 4a11790 to e637f98 Compare December 20, 2019 02:52
Jing Liu and others added 3 commits January 14, 2020 22:03
Use u64 for guest memory address type since this can make
vm-device independent from on vm-memory.

Signed-off-by: Jing Liu <[email protected]>
Change DeviceIo interface parameters to base and offset, so that
devices with several IO ranges can use it to locate right range.

Signed-off-by: Jing Liu <[email protected]>
As suggested from
rust-vmm#18 (comment)

Suggested-by: Andreea Florescu <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Jing Liu added 6 commits January 20, 2020 18:13
Signed-off-by: Jing Liu <[email protected]>
In order to get a real multiple threads handling to enhance
performance, the DeviceIo trait need adopt interior mutability
pattern.

Signed-off-by: Jing Liu <[email protected]>
Based on resources definition, this adds device IO manager to manage
all devices IO ranges.

Signed-off-by: Jing Liu <[email protected]>
IO manager is responsible for handling IO operation when VMExit.
It works out the specific device according to the address range and
hand over to DeviceIo trait.

Signed-off-by: Jing Liu <[email protected]>
Unit tests for IO manager.

Signed-off-by: Jing Liu <[email protected]>
Append missing tests for resources and fix some typo.

Signed-off-by: Jing Liu <[email protected]>
@sameo
Copy link
Member

sameo commented Jul 1, 2020

This code was merged upstream (commit ef21cf1)

@sameo sameo closed this Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants