Skip to content

Commit

Permalink
rename HVPP_WITH_STATS to HVPP_ENABLE_STATS
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed Aug 30, 2018
1 parent d2edc0e commit c291914
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ read and navigate through 5000 pages with browser's built-in PDF reader.
and any memory in first 4GB range which is not backed by actual physical memory.
- Simple pass-through VM-exit handler, which can handle:
- exceptions or [NMIs][nmi]
- `CPUID`, `(WB)INVD`, `RDTSC(P)`, `MOV CR`, `MOV DR`, `IN/OUT`, `RDMSR`, `WRMSR`, `SGDT`, `SIDT`, `LGDT`, `LIDT`,
`SLDT`, `STR`, `LLDT`, `LTR` and `XSETBV` instructions
- `CPUID`, `(WB)INVD`, `INVLPG`, `RDTSC(P)`, `MOV CR`, `MOV DR`, `IN/OUT`, `RDMSR`, `WRMSR`, `SGDT`, `SIDT`, `LGDT`,
`LIDT`, `SLDT`, `STR`, `LLDT`, `LTR`, `XSETBV` and `INVPCID` instructions
- `VMCALL` instruction (used for termination of **hvpp**)
- `VMCLEAR`, `VMLAUNCH`, `VMRESUME`, `VMPTRLD`, `VMPTRST`, `VMREAD`, `VMWRITE`, `VMFUNC`, `VMXOFF`, `VMXON`, `INVEPT`
and `INVVPID` instructions raise **#UD** (invalid opcode exception)
Expand All @@ -70,7 +70,7 @@ read and navigate through 5000 pages with browser's built-in PDF reader.
frequency logging (10'000+ per second) and it can be used from any IRQL - which makes it a perfect candidate even
for logging in VM-exit handlers.
- **hvpp** already includes tracing VM-exit handler (see [vmexit_stats.cpp](src/hvpp/hvpp/vmexit_stats.cpp)). You can
enable it by uncommenting line with `#define HVPP_WITH_STATS` in [config.h](src/hvpp/hvpp/config.h).
enable it by uncommenting line with `#define HVPP_ENABLE_STATS` in [config.h](src/hvpp/hvpp/config.h).
- Various reimplemented classes and functions - such as bitmaps and spinlocks - to avoid calling kernel functions.
- Included simple application (**hvppctrl**) which should demonstrate `CPUID` instruction interception, hiding hooks
in user-mode applications via EPT and communication with **hvpp** via `VMCALL`
Expand Down
2 changes: 1 addition & 1 deletion src/hvpp/custom_vmexit.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using namespace ia32;
using namespace hvpp;

#ifdef HVPP_WITH_STATS
#ifdef HVPP_ENABLE_STATS
using vmexit_base_handler = vmexit_stats_handler;
#else
using vmexit_base_handler = vmexit_handler;
Expand Down
2 changes: 1 addition & 1 deletion src/hvpp/hvpp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
// Use vmexit_stats_handler instead of vmexit_handler as a base class for
// custom_vmexit_handler.
//
#define HVPP_WITH_STATS
#define HVPP_ENABLE_STATS

0 comments on commit c291914

Please sign in to comment.