From 71a4c6ddd4156ea7f5eb2359f351ee567d85601f Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 21 Sep 2018 01:25:48 -0700 Subject: [PATCH] haxm: Add hax_ram_block_removed notify handler QEMU core will call this handler when a RAM block is removed (no surprises there), but it does _not_ check to see if this handler is non-NULL. Add a dummy handler for now. --- target/i386/hax-mem.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/target/i386/hax-mem.c b/target/i386/hax-mem.c index 5c37e94caa..87bdbfd6b8 100644 --- a/target/i386/hax-mem.c +++ b/target/i386/hax-mem.c @@ -310,8 +310,17 @@ static void hax_ram_block_added(RAMBlockNotifier *n, void *host, size_t size) } } +#ifdef XBOX +static void hax_ram_block_removed(RAMBlockNotifier *n, void *host, size_t size) +{ +} +#endif + static struct RAMBlockNotifier hax_ram_notifier = { .ram_block_added = hax_ram_block_added, +#ifdef XBOX + .ram_block_removed = hax_ram_block_removed, +#endif }; void hax_memory_init(void)