@@ -17,6 +17,8 @@
#include <Hypervisor/hv.h>
#endif
+#define HVF_MAX_SLOTS 512
+
/* hvf_slot flags */
#define HVF_SLOT_LOG (1 << 0)
@@ -40,7 +42,7 @@ typedef struct hvf_vcpu_caps {
struct HVFState {
AccelState parent;
- hvf_slot slots[32];
+ hvf_slot slots[HVF_MAX_SLOTS];
int num_slots;
hvf_vcpu_caps *hvf_caps;
@@ -88,7 +88,7 @@ struct mac_slot {
uint64_t gva;
};
-struct mac_slot mac_slots[32];
+struct mac_slot mac_slots[HVF_MAX_SLOTS];
static int do_hvf_set_memory(hvf_slot *slot, hv_memory_flags_t flags)
{
For PVG we will need more than the current 32 possible memory slots. Bump the limit to 512 instead. Signed-off-by: Alexander Graf <graf@amazon.com> --- v1 -> v2: - Move max slot number to define --- include/sysemu/hvf_int.h | 4 +++- accel/hvf/hvf-accel-ops.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)