Skip to content

Commit 6c90a4d

Browse files
committed
Rename old "qemu_procfs" connector name to new "qemu" connector name
1 parent 82ac4e3 commit 6c90a4d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

doc/src/reference/drivers/memflow.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[memflow](https://github.com/memflow/memflow) is a live memory introspection framework with a modular architecture.
44

55
It has multiple connectors which can be used to access physical memory:
6-
- [qemu_procfs](https://github.com/memflow/memflow-qemu-procfs): access QEMU physical memory
6+
- [qemu](https://github.com/memflow/memflow-qemu): access QEMU physical memory
77
- [kvm](https://github.com/memflow/memflow-kvm)
88
- [pcileech](https://github.com/memflow/memflow-pcileech): access pcileech interface
99
- [coredump](https://github.com/memflow/memflow-coredump): access Microsoft Windows Coredump files
@@ -18,4 +18,4 @@ It has multiple connectors which can be used to access physical memory:
1818

1919
- `memflow_connector_name`: required
2020
- `memflow_connector_args`: optional
21-
- `vm_name`: optional, will be used if `memflow_connector_name=qemu_procfs`
21+
- `vm_name`: optional, will be used if `memflow_connector_name=qemu`

doc/src/tutorial/libvmi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ cmake --build build
3737

3838
The following example is based on `memflow`, but any libmicrovmi driver can be used.
3939

40-
Assuming memflow connector `qemu_procfs` is installed and a QEMU VM is running:
40+
Assuming memflow connector `qemu` is installed and a QEMU VM is running:
4141
~~~
4242
sudo -E ./examples/vmi-win-guid name <vm name>
4343
~~~
4444

45-
Note: memflow `qemu_procfs` connector requires to be root.
45+
Note: memflow `qemu` connector requires to be root.
4646
Note2: `RUST_LOG=info` or `RUST_LOG=debug` will give you extra info about libmicrovmi searching for available drivers.
47-
Note3: at this point, the `qemu_procfs` connector is hardcoded in LibVMI, but extending the command line argument and `vmi_init` function should be an easy task.
47+
Note3: at this point, the `qemu` connector is hardcoded in LibVMI, but extending the command line argument and `vmi_init` function should be an easy task.

python/noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_volatility_kvm(session):
109109
def test_volatility_memflow(session):
110110
"""Run the PsList volatility plugin on the memflow connector specified by the URL"""
111111
# example:
112-
# nox -r -s test_volatility_memflow -- vmi:///?memflow_connector_name=qemu_procfs
112+
# nox -r -s test_volatility_memflow -- vmi:///?memflow_connector_name=qemu
113113
args = session.posargs
114114
if not args:
115115
raise RuntimeError("URL required. Example: nox -r -s test_volatility_memflow -- vmi:///...")

src/api/params.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub enum KVMInitParams {
1818
/// This enumeration reflects the possibilities to initialize Memflow
1919
/// - default: will simply forward the string arguments to the connector
2020
// TODO
21-
// - [`qemu_procfs`](https://github.com/memflow/memflow-qemu-procfs)
21+
// - [`qemu`](https://github.com/memflow/memflow-qemu)
2222
// - [`kvm`](https://github.com/memflow/memflow-kvm)
2323
// - [`pcileech`](https://github.com/memflow/memflow-pcileech)
2424
// - [`coredump`](https://github.com/memflow/memflow-coredump)
@@ -97,7 +97,7 @@ pub struct CommonInitParams {
9797
/// // memflow.connector_name: mandatory
9898
/// // memflow.connector_args: optional
9999
/// let init_params = DriverInitParams {
100-
/// memflow: Some(MemflowInitParams { connector_name: String::from("qemu_procfs"), ///
100+
/// memflow: Some(MemflowInitParams { connector_name: String::from("qemu"), ///
101101
/// ..Default::default()}),
102102
/// ..Default::default()
103103
/// };

src/driver/memflow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum MemflowDriverError {
1515
InvalidConnectorArgument(String),
1616
}
1717

18-
const QEMU_PROCFS_CONNECTOR_NAME: &str = "qemu_procfs";
18+
const QEMU_PROCFS_CONNECTOR_NAME: &str = "qemu";
1919

2020
pub struct Memflow {
2121
// refcell required because read methods are mutable
@@ -36,7 +36,7 @@ impl Memflow {
3636
#[allow(clippy::single_match)]
3737
match memflow_init_params.connector_name.as_str() {
3838
QEMU_PROCFS_CONNECTOR_NAME => {
39-
// if init_params.common.vm_name exists and connector_name is qemu_procfs
39+
// if init_params.common.vm_name exists and connector_name is qemu
4040
// then insert vm_name value as 'name' connector args
4141
if init_params.common.is_some() {
4242
extra_args = extra_args.insert("name", &init_params.common.unwrap().vm_name);

0 commit comments

Comments
 (0)