diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:55 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:53 +0200 |
commit | b58c5c2dd29db0eae0bed800ac1a311e14007cec (patch) | |
tree | 0ab50dca3d25e92fe33439b82f40c0ff49383fc1 /include/sysemu/numa.h | |
parent | 7969dd9169f64493fa70b542d8ab65b275571ea6 (diff) |
numa: Move remaining NUMA declarations from sysemu.h to numa.h
Commit e35704ba9c "numa: Move NUMA declarations from sysemu.h to
numa.h" left a few NUMA-related macros behind. Move them now.
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190812052359.30071-26-armbru@redhat.com>
Diffstat (limited to 'include/sysemu/numa.h')
-rw-r--r-- | include/sysemu/numa.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h index 4c4c1dee9b..7a4ce89765 100644 --- a/include/sysemu/numa.h +++ b/include/sysemu/numa.h @@ -2,13 +2,18 @@ #define SYSEMU_NUMA_H #include "qemu/bitmap.h" -#include "sysemu/sysemu.h" -#include "sysemu/hostmem.h" #include "qapi/qapi-types-machine.h" #include "exec/cpu-common.h" struct CPUArchId; +#define MAX_NODES 128 +#define NUMA_NODE_UNASSIGNED MAX_NODES +#define NUMA_DISTANCE_MIN 10 +#define NUMA_DISTANCE_DEFAULT 20 +#define NUMA_DISTANCE_MAX 254 +#define NUMA_DISTANCE_UNREACHABLE 255 + extern int nb_numa_nodes; /* Number of NUMA nodes */ extern bool have_numa_distance; |