mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
add dirty ring command
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#include "hw/intc/intc.h"
|
||||
#include "qemu/log.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysemu/kvm.h"
|
||||
|
||||
bool hmp_handle_error(Monitor *mon, Error *err)
|
||||
{
|
||||
@ -443,3 +444,12 @@ void hmp_info_mtree(Monitor *mon, const QDict *qdict)
|
||||
|
||||
mtree_info(flatview, dispatch_tree, owner, disabled);
|
||||
}
|
||||
|
||||
void hmp_dirtyring(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
if (kvm_dirty_ring_enabled()) {
|
||||
printf("Dirty ring enabled.\n");
|
||||
} else {
|
||||
printf("Dirty ring disabled.\n");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user