summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/os/lgrpplat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/i86pc/os/lgrpplat.c')
-rw-r--r--usr/src/uts/i86pc/os/lgrpplat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/os/lgrpplat.c b/usr/src/uts/i86pc/os/lgrpplat.c
index a7a285fb6c..ad031c6782 100644
--- a/usr/src/uts/i86pc/os/lgrpplat.c
+++ b/usr/src/uts/i86pc/os/lgrpplat.c
@@ -526,6 +526,12 @@ plat_build_mem_nodes(struct memlist *list)
void
lgrp_plat_init(void)
{
+#if defined(__xpv)
+ /*
+ * XXPV For now, the hypervisor treats all memory equally.
+ */
+ lgrp_plat_node_cnt = max_mem_nodes = 1;
+#else /* __xpv */
uint_t bus;
uint_t dev;
uint_t node;
@@ -707,6 +713,7 @@ lgrp_plat_init(void)
*/
lgrp_expand_proc_thresh = LGRP_LOADAVG_THREAD_MAX / 2;
lgrp_expand_proc_diff = 0;
+#endif /* __xpv */
}