mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
virnuma: Add some more comments
Well, in fact only add comments to mark ifdef, else and endif sections. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b1674ad5a9
commit
dda1a235c1
@ -74,7 +74,7 @@ virNumaGetAutoPlacementAdvice(unsigned short vcpus,
|
|||||||
virCommandFree(cmd);
|
virCommandFree(cmd);
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
#else
|
#else /* !HAVE_NUMAD */
|
||||||
char *
|
char *
|
||||||
virNumaGetAutoPlacementAdvice(unsigned short vcpus ATTRIBUTE_UNUSED,
|
virNumaGetAutoPlacementAdvice(unsigned short vcpus ATTRIBUTE_UNUSED,
|
||||||
unsigned long long balloon ATTRIBUTE_UNUSED)
|
unsigned long long balloon ATTRIBUTE_UNUSED)
|
||||||
@ -83,7 +83,7 @@ virNumaGetAutoPlacementAdvice(unsigned short vcpus ATTRIBUTE_UNUSED,
|
|||||||
_("numad is not available on this host"));
|
_("numad is not available on this host"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* !HAVE_NUMAD */
|
||||||
|
|
||||||
#if WITH_NUMACTL
|
#if WITH_NUMACTL
|
||||||
int
|
int
|
||||||
@ -339,7 +339,8 @@ virNumaGetNodeCPUs(int node,
|
|||||||
# undef MASK_CPU_ISSET
|
# undef MASK_CPU_ISSET
|
||||||
# undef n_bits
|
# undef n_bits
|
||||||
|
|
||||||
#else
|
#else /* !WITH_NUMACTL */
|
||||||
|
|
||||||
int
|
int
|
||||||
virNumaSetupMemoryPolicy(virDomainNumatunePtr numatune,
|
virNumaSetupMemoryPolicy(virDomainNumatunePtr numatune,
|
||||||
virBitmapPtr nodemask ATTRIBUTE_UNUSED)
|
virBitmapPtr nodemask ATTRIBUTE_UNUSED)
|
||||||
@ -404,8 +405,7 @@ virNumaGetNodeCPUs(int node ATTRIBUTE_UNUSED,
|
|||||||
_("NUMA isn't available on this host"));
|
_("NUMA isn't available on this host"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* !WITH_NUMACTL */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virNumaGetMaxCPUs:
|
* virNumaGetMaxCPUs:
|
||||||
@ -494,8 +494,8 @@ virNumaGetDistances(int node,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* !(WITH_NUMACTL && HAVE_NUMA_BITMASK_ISBITSET) */
|
||||||
|
|
||||||
#else
|
|
||||||
bool
|
bool
|
||||||
virNumaNodeIsAvailable(int node)
|
virNumaNodeIsAvailable(int node)
|
||||||
{
|
{
|
||||||
@ -519,7 +519,7 @@ virNumaGetDistances(int node ATTRIBUTE_UNUSED,
|
|||||||
VIR_DEBUG("NUMA distance information isn't available on this host");
|
VIR_DEBUG("NUMA distance information isn't available on this host");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* !(WITH_NUMACTL && HAVE_NUMA_BITMASK_ISBITSET) */
|
||||||
|
|
||||||
|
|
||||||
/* currently all the huge page stuff below is linux only */
|
/* currently all the huge page stuff below is linux only */
|
||||||
|
Loading…
Reference in New Issue
Block a user