master
Able 2022-02-18 02:24:10 -06:00
parent 93576c4e2f
commit 619e4061c7
Signed by untrusted user: able
GPG Key ID: D164AF5F5700BE51
2 changed files with 17 additions and 7 deletions

View File

@ -33,7 +33,14 @@ run-args = [
# A simple example of a boot image
"-drive",
"file=disk.qcow2,if=none,id=drive0",
"-device",
"virtio-rng",
"-qmp",
"unix:../qmp-sock,server,nowait"

View File

@ -24,16 +24,19 @@ pub fn scratchpad() {
for x in dev_list {
let device_name = format!("{:?}-{}", DeviceClass::from_u8(x.id.class), x.id.device_id);
device_table.devices.insert(device_name, Device::Pci(x));
}
for (key, _value) in device_table.devices.iter() {
debug!("{}", key);
device_table
.devices
.insert(device_name.clone(), Device::Pci(x));
}
/*
for (key, _value) in device_table.devices.iter() {
debug!("{}", key);
}
*/
// interp();
rhai_shell();
// rhai_shell();
}
pub struct PciIO {}