mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv:add dump_guest_mem
add shell command to support dump dump guest memory e.g. dump_guest_mem vm_id, gva, length Tracked-On: #4144 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -263,6 +263,12 @@ struct vcpu_dump {
|
||||
uint32_t str_max;
|
||||
};
|
||||
|
||||
struct guest_mem_dump {
|
||||
struct acrn_vcpu *vcpu;
|
||||
uint64_t gva;
|
||||
uint64_t len;
|
||||
};
|
||||
|
||||
static inline bool is_vcpu_bsp(const struct acrn_vcpu *vcpu)
|
||||
{
|
||||
return (vcpu->vcpu_id == BOOT_CPU_ID);
|
||||
|
Reference in New Issue
Block a user