mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-09-13 02:24:55 +00:00
vfio_user: Add TODOs for missing functionality
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
10531f052b
commit
aa502b3e41
@ -872,6 +872,7 @@ impl Server {
|
|||||||
return Err(Error::UnsupportedCommand(header.command));
|
return Err(Error::UnsupportedCommand(header.command));
|
||||||
}
|
}
|
||||||
Command::Version => {
|
Command::Version => {
|
||||||
|
// TODO: Make version/capabilities configurable
|
||||||
let mut client_version = Version {
|
let mut client_version = Version {
|
||||||
header,
|
header,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@ -1009,6 +1010,7 @@ impl Server {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
argsz: size_of::<DeviceGetInfo>() as u32,
|
argsz: size_of::<DeviceGetInfo>() as u32,
|
||||||
|
// TODO: Consider non-PCI devices
|
||||||
flags: VFIO_DEVICE_FLAGS_PCI
|
flags: VFIO_DEVICE_FLAGS_PCI
|
||||||
| if self.resettable {
|
| if self.resettable {
|
||||||
VFIO_DEVICE_FLAGS_RESET
|
VFIO_DEVICE_FLAGS_RESET
|
||||||
@ -1030,7 +1032,7 @@ impl Server {
|
|||||||
stream
|
stream
|
||||||
.read_exact(&mut cmd.as_mut_slice()[size_of::<Header>()..])
|
.read_exact(&mut cmd.as_mut_slice()[size_of::<Header>()..])
|
||||||
.map_err(Error::StreamRead)?;
|
.map_err(Error::StreamRead)?;
|
||||||
|
// TODO: Need to handle region capabilities e.g. sparse regions
|
||||||
let reply = DeviceGetRegionInfo {
|
let reply = DeviceGetRegionInfo {
|
||||||
header: Header {
|
header: Header {
|
||||||
message_id: cmd.header.message_id,
|
message_id: cmd.header.message_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user