diff --git a/README.md b/README.md index 0467420..4917ae9 100644 --- a/README.md +++ b/README.md @@ -197,4 +197,21 @@ the PTE mapping that page will not be used to map the `map_type::src` page.
Figure 2. demo VDM example and read/write virtual memory...
-The demo code demonstrates bluepill integration with VDM and a read/write physical memory, and virtual memory of other address spaces. \ No newline at end of file +The demo code demonstrates bluepill integration with VDM and a read/write physical memory, and virtual memory of other address spaces. + +```cpp +// use the hypervisor to read and write physical memory... +vdm::read_phys_t _read_phys = + [&](void* addr, void* buffer, std::size_t size) -> bool +{ + return bluepill::read_phys( + reinterpret_cast