summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mooney <pmooney@pfmooney.com>2019-08-14 17:37:09 +0000
committerPatrick Mooney <pmooney@pfmooney.com>2019-08-14 17:37:09 +0000
commit3e051af8006ac01d74d6bad54d487ccc88089bee (patch)
treec596536dcd702b652c4fe356474e2e2dcb60746b
parent8eac8f9f2de7ea48fca516bc9a7f03d13a4adc3f (diff)
downloadillumos-joyent-dev-bhyve-config.tar.gz
XXX: a bunch of renamesdev-bhyve-config
-rw-r--r--usr/src/cmd/bhyve/bhyverun.c146
-rw-r--r--usr/src/cmd/bhyve/config.h14
-rw-r--r--usr/src/cmd/bhyve/config_sol.c52
-rw-r--r--usr/src/cmd/bhyve/inout.c2
-rw-r--r--usr/src/cmd/bhyve/pci_e82545.c2
-rw-r--r--usr/src/cmd/bhyve/rtc.c2
-rw-r--r--usr/src/cmd/bhyve/smbiostbl.c6
7 files changed, 112 insertions, 112 deletions
diff --git a/usr/src/cmd/bhyve/bhyverun.c b/usr/src/cmd/bhyve/bhyverun.c
index 6cb67214a6..2e914afa4d 100644
--- a/usr/src/cmd/bhyve/bhyverun.c
+++ b/usr/src/cmd/bhyve/bhyverun.c
@@ -286,10 +286,10 @@ topology_parse(const char *opt)
char *cp, *str;
if (*opt == '\0') {
- set_config_value("sockets", "1");
- set_config_value("cores", "1");
- set_config_value("threads", "1");
- set_config_value("cpus", "1");
+ config_set_value("sockets", "1");
+ config_set_value("cores", "1");
+ config_set_value("threads", "1");
+ config_set_value("cpus", "1");
return (0);
}
@@ -299,21 +299,21 @@ topology_parse(const char *opt)
while ((cp = strsep(&str, ",")) != NULL) {
if (strncmp(cp, "cpus=", strlen("cpus=")) == 0)
- set_config_value("cpus", cp + strlen("cpus="));
+ config_set_value("cpus", cp + strlen("cpus="));
else if (strncmp(cp, "sockets=", strlen("sockets=")) == 0)
- set_config_value("sockets", cp + strlen("sockets="));
+ config_set_value("sockets", cp + strlen("sockets="));
else if (strncmp(cp, "cores=", strlen("cores=")) == 0)
- set_config_value("cores", cp + strlen("cores="));
+ config_set_value("cores", cp + strlen("cores="));
else if (strncmp(cp, "threads=", strlen("threads=")) == 0)
- set_config_value("threads", cp + strlen("threads="));
+ config_set_value("threads", cp + strlen("threads="));
#ifdef notyet /* Do not expose this until vmm.ko implements it */
else if (strncmp(cp, "maxcpus=", strlen("maxcpus=")) == 0)
- set_config_value("maxcpus", cp + strlen("maxcpus="));
+ config_set_value("maxcpus", cp + strlen("maxcpus="));
#endif
else if (strchr(cp, '=') != NULL)
goto out;
else
- set_config_value("cpus", cp);
+ config_set_value("cpus", cp);
}
free(str);
return (0);
@@ -351,7 +351,7 @@ calc_topolopgy(void)
bool explicit_cpus;
uint64_t ncpus;
- value = get_config_value("cpus");
+ value = config_get_value("cpus");
if (value != NULL) {
guest_ncpus = parse_int_value("cpus", value, 1, UINT16_MAX);
explicit_cpus = true;
@@ -359,17 +359,17 @@ calc_topolopgy(void)
guest_ncpus = 1;
explicit_cpus = false;
}
- value = get_config_value("cores");
+ value = config_get_value("cores");
if (value != NULL)
cores = parse_int_value("cores", value, 1, UINT16_MAX);
else
cores = 1;
- value = get_config_value("threads");
+ value = config_get_value("threads");
if (value != NULL)
threads = parse_int_value("threads", value, 1, UINT16_MAX);
else
threads = 1;
- value = get_config_value("sockets");
+ value = config_get_value("sockets");
if (value != NULL)
sockets = parse_int_value("sockets", value, 1, UINT16_MAX);
else
@@ -457,7 +457,7 @@ pincpu_parse(const char *opt)
}
snprintf(key, sizeof(key), "vcpu.%d.cpuset", vcpu);
- value = get_config_value(key);
+ value = config_get_value(key);
if (asprintf(&newval, "%s%s%d", value != NULL ? value : "",
value != NULL ? "," : "", pcpu) == -1) {
@@ -465,7 +465,7 @@ pincpu_parse(const char *opt)
return (-1);
}
- set_config_value(key, newval);
+ config_set_value(key, newval);
free(newval);
return (0);
}
@@ -525,7 +525,7 @@ build_vcpumaps(void)
for (vcpu = 0; vcpu < guest_ncpus; vcpu++) {
snprintf(key, sizeof(key), "vcpu.%d.cpuset", vcpu);
- value = get_config_value(key);
+ value = config_get_value(key);
if (value == NULL)
continue;
vcpumap[vcpu] = malloc(sizeof(cpuset_t));
@@ -562,7 +562,7 @@ int
fbsdrun_virtio_msix(void)
{
- return (get_config_bool("virtio.msix"));
+ return (config_get_bool("virtio.msix"));
}
static void *
@@ -701,7 +701,7 @@ vmexit_rdmsr(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu)
if (error != 0) {
fprintf(stderr, "rdmsr to register %#x on vcpu %d\n",
vme->u.msr.code, *pvcpu);
- if (get_config_bool("x86.strict_msr")) {
+ if (config_get_bool("hvm.x86.strict_msr")) {
vm_inject_gp(ctx, *pvcpu);
return (VMEXIT_CONTINUE);
}
@@ -727,7 +727,7 @@ vmexit_wrmsr(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu)
if (error != 0) {
fprintf(stderr, "wrmsr to register %#x(%#lx) on vcpu %d\n",
vme->u.msr.code, vme->u.msr.wval, *pvcpu);
- if (get_config_bool("x86.strict_msr")) {
+ if (config_get_bool("hvm.x86.strict_msr")) {
vm_inject_gp(ctx, *pvcpu);
return (VMEXIT_CONTINUE);
}
@@ -1032,7 +1032,7 @@ fbsdrun_set_capabilities(struct vmctx *ctx, int cpu)
{
int err, tmp;
- if (get_config_bool("hvm.vmexit_on_hlt")) {
+ if (config_get_bool("hvm.x86.vmexit_on_hlt")) {
err = vm_get_capability(ctx, cpu, VM_CAP_HALT_EXIT, &tmp);
if (err < 0) {
fprintf(stderr, "VM exit on HLT not supported\n");
@@ -1043,7 +1043,7 @@ fbsdrun_set_capabilities(struct vmctx *ctx, int cpu)
handler[VM_EXITCODE_HLT] = vmexit_hlt;
}
- if (get_config_bool("hvm.vmexit_on_pause")) {
+ if (config_get_bool("hvm.x86.vmexit_on_pause")) {
/*
* pause exit support required for this mode
*/
@@ -1058,7 +1058,7 @@ fbsdrun_set_capabilities(struct vmctx *ctx, int cpu)
handler[VM_EXITCODE_PAUSE] = vmexit_pause;
}
- if (get_config_bool("x86.x2apic"))
+ if (config_get_bool("x86.x2apic"))
err = vm_set_x2apic_state(ctx, cpu, X2APIC_ENABLED);
else
err = vm_set_x2apic_state(ctx, cpu, X2APIC_DISABLED);
@@ -1182,7 +1182,7 @@ parse_config_option(const char *option)
path = strndup(option, value - option);
if (path == NULL)
err(4, "Failed to allocate memory");
- set_config_value(path, value + 1);
+ config_set_value(path, value + 1);
return (true);
}
@@ -1219,25 +1219,25 @@ set_defaults(void)
{
/* default is xAPIC */
- set_config_bool("x86.x2apic", false);
- set_config_bool("x86.acpi_tables", false);
- set_config_bool("x86.strict_io", false);
- set_config_bool("x86.strict_msr", true);
- set_config_bool("x86.mptable", true);
+ config_set_bool("x86.x2apic", false);
+ config_set_bool("x86.acpi_tables", false);
+ config_set_bool("hvm.x86.strict_io", false);
+ config_set_bool("hvm.x86.strict_msr", true);
+ config_set_bool("x86.mptable", true);
- set_config_bool("bvmconsole", false);
- set_config_bool("gdb.wait", false);
+ config_set_bool("bvmconsole", false);
+ config_set_bool("gdb.wait", false);
- set_config_bool("memory.guest_in_core", false);
- set_config_value("memory.size", "256M");
- set_config_bool("memory.wired", false);
+ config_set_bool("memory.guest_in_core", false);
+ config_set_value("memory.size", "256M");
+ config_set_bool("memory.wired", false);
- set_config_bool("rtc.use_localtime", true);
+ config_set_bool("rtc.use_localtime", true);
- set_config_bool("virtio.msix", true);
+ config_set_bool("virtio.msix", true);
- set_config_bool("hvm.vmexit_on_hlt", false);
- set_config_bool("hvm.vmexit_on_pause", false);
+ config_set_bool("hvm.x86.vmexit_on_hlt", false);
+ config_set_bool("hvm.x86.vmexit_on_pause", false);
}
static void
@@ -1256,13 +1256,13 @@ parse_args(int argc, char *argv[])
while ((c = getopt(argc, argv, optstr)) != -1) {
switch (c) {
case 'a':
- set_config_bool("x86.x2apic", false);
+ config_set_bool("x86.x2apic", false);
break;
case 'A':
- set_config_bool("x86.acpi_tables", true);
+ config_set_bool("x86.acpi_tables", true);
break;
case 'b':
- set_config_bool("bvmconsole", true);
+ config_set_bool("bvmconsole", true);
break;
case 'B':
if (smbios_parse(optarg) != 0) {
@@ -1272,7 +1272,7 @@ parse_args(int argc, char *argv[])
break;
#ifndef __FreeBSD__
case 'd':
- set_config_bool("hvm.suspend_at_boot", true);
+ config_set_bool("hvm.suspend_at_boot", true);
break;
#else
case 'p':
@@ -1289,20 +1289,20 @@ parse_args(int argc, char *argv[])
}
break;
case 'C':
- set_config_bool("memory.guest_in_core", true);
+ config_set_bool("memory.guest_in_core", true);
break;
case 'f':
parse_simple_config_file(optarg);
break;
case 'g':
- set_config_value("bvmdebug.port", optarg);
+ config_set_value("bvmdebug.port", optarg);
break;
case 'G':
if (optarg[0] == 'w') {
- set_config_bool("gdb.wait", true);
+ config_set_bool("gdb.wait", true);
optarg++;
}
- set_config_value("gdb.port", optarg);
+ config_set_value("gdb.port", optarg);
break;
case 'l':
if (strncmp(optarg, "help", strlen(optarg)) == 0) {
@@ -1322,17 +1322,17 @@ parse_args(int argc, char *argv[])
else
break;
case 'S':
- set_config_bool("memory.wired", true);
+ config_set_bool("memory.wired", true);
break;
case 'm':
- set_config_value("memory.size", optarg);
+ config_set_value("memory.size", optarg);
break;
case 'o':
if (!parse_config_option(optarg))
errx(EX_USAGE, "invalid configuration option '%s'", optarg);
break;
case 'H':
- set_config_bool("hvm.vmexit_on_hlt", true);
+ config_set_bool("hvm.x86.vmexit_on_hlt", true);
break;
case 'I':
/*
@@ -1344,28 +1344,28 @@ parse_args(int argc, char *argv[])
*/
break;
case 'P':
- set_config_bool("hvm.vmexit_on_pause", true);
+ config_set_bool("hvm.x86.vmexit_on_pause", true);
break;
case 'e':
- set_config_bool("x86.strict_io", true);
+ config_set_bool("hvm.x86.strict_io", true);
break;
case 'u':
- set_config_bool("rtc.use_localtime", false);
+ config_set_bool("rtc.use_localtime", false);
break;
case 'U':
- set_config_value("uuid", optarg);
+ config_set_value("uuid", optarg);
break;
case 'w':
- set_config_bool("x86.strict_msr", false);
+ config_set_bool("hvm.x86.strict_msr", false);
break;
case 'W':
- set_config_bool("virtio.msix", false);
+ config_set_bool("virtio.msix", false);
break;
case 'x':
- set_config_bool("x86.x2apic", true);
+ config_set_bool("x86.x2apic", true);
break;
case 'Y':
- set_config_bool("x86.mptable", false);
+ config_set_bool("x86.mptable", false);
break;
case 'h':
usage(0);
@@ -1380,7 +1380,7 @@ parse_args(int argc, char *argv[])
usage(1);
if (argc == 1)
- set_config_value("name", argv[0]);
+ config_set_value("name", argv[0]);
}
int
@@ -1393,19 +1393,19 @@ main(int argc, char *argv[])
size_t memsize;
const char *value, *vmname;
- init_config();
+ config_init();
set_defaults();
parse_args(argc, argv);
- finish_config();
+ config_finish();
- vmname = get_config_value("name");
+ vmname = config_get_value("name");
if (vmname == NULL)
usage(1);
#if 1
- if (get_config_value("config.dump")) {
- dump_config(get_config_value("config.dump_expand") != NULL);
+ if (config_get_value("config.dump")) {
+ config_dump(config_get_value("config.dump_expand") != NULL);
exit(1);
}
#endif
@@ -1415,7 +1415,7 @@ main(int argc, char *argv[])
build_vcpumaps();
#endif
- value = get_config_value("memory.size");
+ value = config_get_value("memory.size");
error = vm_parse_memsize(value, &memsize);
if (error)
errx(EX_USAGE, "invalid memsize '%s'", value);
@@ -1432,9 +1432,9 @@ main(int argc, char *argv[])
fbsdrun_set_capabilities(ctx, BSP);
memflags = 0;
- if (get_config_bool("memory.wired"))
+ if (config_get_bool("memory.wired"))
memflags |= VM_MEM_F_WIRED;
- if (get_config_bool("memory.guest_in_core"))
+ if (config_get_bool("memory.guest_in_core"))
memflags |= VM_MEM_F_INCORE;
vm_set_memflags(ctx, memflags);
#ifdef __FreeBSD__
@@ -1479,15 +1479,15 @@ main(int argc, char *argv[])
exit(4);
}
- value = get_config_value("bvmdebug.port");
+ value = config_get_value("bvmdebug.port");
if (value != NULL)
init_dbgport(atoi(value));
- value = get_config_value("gdb.port");
+ value = config_get_value("gdb.port");
if (value != NULL)
- init_gdb(ctx, atoi(value), get_config_bool("gdb.wait"));
+ init_gdb(ctx, atoi(value), config_get_bool("gdb.wait"));
- if (get_config_bool("bvmconsole"))
+ if (config_get_bool("bvmconsole"))
init_bvmcons();
vga_init(1);
@@ -1508,7 +1508,7 @@ main(int argc, char *argv[])
/*
* build the guest tables, MP etc.
*/
- if (get_config_bool("x86.mptable")) {
+ if (config_get_bool("x86.mptable")) {
error = mptable_build(ctx, guest_ncpus);
if (error) {
perror("error to build the guest tables");
@@ -1519,7 +1519,7 @@ main(int argc, char *argv[])
error = smbios_build(ctx);
assert(error == 0);
- if (get_config_bool("x86.acpi_tables")) {
+ if (config_get_bool("x86.acpi_tables")) {
error = acpi_build(ctx, guest_ncpus);
assert(error == 0);
}
@@ -1564,7 +1564,7 @@ main(int argc, char *argv[])
fbsdrun_addcpu(ctx, BSP, BSP, rip);
#else
fbsdrun_addcpu(ctx, BSP, BSP, rip,
- get_config_bool("hvm.suspend_at_boot"));
+ config_get_bool("hvm.suspend_at_boot"));
mark_provisioned();
#endif
diff --git a/usr/src/cmd/bhyve/config.h b/usr/src/cmd/bhyve/config.h
index 5d5da5ceef..49978517bb 100644
--- a/usr/src/cmd/bhyve/config.h
+++ b/usr/src/cmd/bhyve/config.h
@@ -46,16 +46,16 @@
*/
/* Initializes the tree to an empty state. */
-void init_config(void);
-void finish_config(void);
+void config_init(void);
+void config_finish(void);
-const char *get_config_value(const char *path);
-void set_config_value(const char *path, const char *value);
+const char *config_get_value(const char *path);
+void config_set_value(const char *path, const char *value);
/* Convenience wrappers for boolean variables. */
-boolean_t get_config_bool(const char *path);
-void set_config_bool(const char *path, boolean_t value);
+boolean_t config_get_bool(const char *path);
+void config_set_bool(const char *path, boolean_t value);
-void dump_config(boolean_t);
+void config_dump(boolean_t);
#endif /* !__CONFIG_H__ */
diff --git a/usr/src/cmd/bhyve/config_sol.c b/usr/src/cmd/bhyve/config_sol.c
index 98e9878fb7..a916e9937c 100644
--- a/usr/src/cmd/bhyve/config_sol.c
+++ b/usr/src/cmd/bhyve/config_sol.c
@@ -65,8 +65,8 @@ typedef struct config_node {
const char *cn_value_expanded;
} config_node_t;
-static const char *expand_config_value(config_node_t *, uint_t);
-static config_node_t *find_config_path(const char *, avl_index_t *);
+static const char *config_expand_value(config_node_t *, uint_t);
+static config_node_t *config_find_path(const char *, avl_index_t *);
static int
config_node_compare(const void *a, const void *b)
@@ -84,7 +84,7 @@ config_node_compare(const void *a, const void *b)
}
void
-init_config(void)
+config_init(void)
{
VERIFY0(pthread_mutex_init(&config_lock, NULL));
avl_create(&config_tree, config_node_compare, sizeof (config_node_t),
@@ -93,7 +93,7 @@ init_config(void)
}
void
-finish_config(void)
+config_finish(void)
{
pthread_mutex_lock(&config_lock);
VERIFY(!config_finished);
@@ -102,7 +102,7 @@ finish_config(void)
}
static size_t
-process_config_value(const char *orig, char *buf, size_t buflen, uint_t depth)
+config_process_value(const char *orig, char *buf, size_t buflen, uint_t depth)
{
const char *vp;
size_t len = 0;
@@ -143,7 +143,7 @@ process_config_value(const char *orig, char *buf, size_t buflen, uint_t depth)
errx(4, "Failed to allocate memory");
}
strlcpy(namebuf, vp, namelen);
- cn = find_config_path(namebuf, NULL);
+ cn = config_find_path(namebuf, NULL);
free(namebuf);
/* subtract length for name and %() delimiters */
len -= namelen + 2;
@@ -152,7 +152,7 @@ process_config_value(const char *orig, char *buf, size_t buflen, uint_t depth)
namelen = strlen(vp);
/* use the rest of the value as the key */
- cn = find_config_path(vp, NULL);
+ cn = config_find_path(vp, NULL);
/* subtract length for name and % delimiter */
len -= namelen + 1;
}
@@ -161,7 +161,7 @@ process_config_value(const char *orig, char *buf, size_t buflen, uint_t depth)
size_t reflen;
const char *ref;
- ref = expand_config_value(cn, depth + 1);
+ ref = config_expand_value(cn, depth + 1);
reflen = strlen(ref);
len += reflen;
if (buf != NULL && buflen >= reflen) {
@@ -181,7 +181,7 @@ process_config_value(const char *orig, char *buf, size_t buflen, uint_t depth)
}
static const char *
-expand_config_value(config_node_t *cn, uint_t depth)
+config_expand_value(config_node_t *cn, uint_t depth)
{
const char *result = NULL;
char *buf;
@@ -217,7 +217,7 @@ expand_config_value(config_node_t *cn, uint_t depth)
goto done;
}
- len = process_config_value(cn->cn_value_raw, NULL, 0, depth);
+ len = config_process_value(cn->cn_value_raw, NULL, 0, depth);
if (len == 0) {
/* Special case where expansion evaluates to empty */
cn->cn_flags = CF_EXPANDED;
@@ -227,7 +227,7 @@ expand_config_value(config_node_t *cn, uint_t depth)
}
buf = malloc(len);
- done_len = process_config_value(cn->cn_value_raw, buf, len, depth);
+ done_len = config_process_value(cn->cn_value_raw, buf, len, depth);
VERIFY3U(len, ==, done_len);
cn->cn_flags = CF_EXPANDED;
@@ -242,19 +242,19 @@ done:
}
const char *
-get_config_value(const char *path)
+config_get_value(const char *path)
{
config_node_t *cn;
- cn = find_config_path(path, NULL);
+ cn = config_find_path(path, NULL);
if (cn != NULL) {
- return (expand_config_value(cn, 0));
+ return (config_expand_value(cn, 0));
}
return (NULL);
}
static config_node_t *
-find_config_path(const char *path, avl_index_t *idx)
+config_find_path(const char *path, avl_index_t *idx)
{
config_node_t search;
@@ -263,7 +263,7 @@ find_config_path(const char *path, avl_index_t *idx)
}
static config_node_t *
-set_config_raw(const char *path, const char *value)
+config_set_raw(const char *path, const char *value)
{
config_node_t *cn;
avl_index_t idx;
@@ -271,7 +271,7 @@ set_config_raw(const char *path, const char *value)
ASSERT(pthread_mutex_isowned_np(&config_lock));
VERIFY(!config_finished);
- cn = find_config_path(path, &idx);
+ cn = config_find_path(path, &idx);
if (cn != NULL) {
/* overwrite node */
@@ -309,31 +309,31 @@ alloc_err:
}
void
-set_config_value(const char *path, const char *value)
+config_set_value(const char *path, const char *value)
{
pthread_mutex_lock(&config_lock);
- (void) set_config_raw(path, value);
+ (void) config_set_raw(path, value);
pthread_mutex_unlock(&config_lock);
}
void
-set_config_bool(const char *path, boolean_t value)
+config_set_bool(const char *path, boolean_t value)
{
config_node_t *cn;
pthread_mutex_lock(&config_lock);
- cn = set_config_raw(path, value ? "true" : "false");
+ cn = config_set_raw(path, value ? "true" : "false");
cn->cn_bool = value;
cn->cn_flags |= CF_BOOL_CHECKED;
pthread_mutex_unlock(&config_lock);
}
boolean_t
-get_config_bool(const char *path)
+config_get_bool(const char *path)
{
config_node_t *cn;
- cn = find_config_path(path, NULL);
+ cn = config_find_path(path, NULL);
if (cn == NULL) {
/* XXX: strictness? */
return (B_FALSE);
@@ -346,7 +346,7 @@ get_config_bool(const char *path)
boolean_t valid = B_FALSE;
boolean_t bval = B_FALSE;
- value = expand_config_value(cn, 0);
+ value = config_expand_value(cn, 0);
if (strcasecmp(value, "true") == 0 ||
strcasecmp(value, "on") == 0 ||
strcasecmp(value, "yes") == 0 ||
@@ -375,7 +375,7 @@ get_config_bool(const char *path)
}
void
-dump_config(boolean_t do_expand)
+config_dump(boolean_t do_expand)
{
avl_tree_t *tree = &config_tree;
config_node_t *cn;
@@ -384,7 +384,7 @@ dump_config(boolean_t do_expand)
const char *value;
if (do_expand) {
- value = expand_config_value(cn, 0);
+ value = config_expand_value(cn, 0);
} else {
value = cn->cn_value_raw;
}
diff --git a/usr/src/cmd/bhyve/inout.c b/usr/src/cmd/bhyve/inout.c
index a00b5d58fa..006aaeaea7 100644
--- a/usr/src/cmd/bhyve/inout.c
+++ b/usr/src/cmd/bhyve/inout.c
@@ -125,7 +125,7 @@ emulate_inout(struct vmctx *ctx, int vcpu, struct vm_exit *vmexit)
handler = inout_handlers[port].handler;
- if (handler == default_inout && get_config_bool("x86.strict_io"))
+ if (handler == default_inout && config_get_bool("x86.strict_io"))
return (-1);
flags = inout_handlers[port].flags;
diff --git a/usr/src/cmd/bhyve/pci_e82545.c b/usr/src/cmd/bhyve/pci_e82545.c
index 20f2fdb5f7..13fa788cf9 100644
--- a/usr/src/cmd/bhyve/pci_e82545.c
+++ b/usr/src/cmd/bhyve/pci_e82545.c
@@ -2389,7 +2389,7 @@ e82545_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
*/
if (!mac_provided) {
snprintf(nstr, sizeof(nstr), "%d-%d-%s", pi->pi_slot,
- pi->pi_func, get_config_value("name"));
+ pi->pi_func, config_get_value("name"));
MD5Init(&mdctx);
MD5Update(&mdctx, nstr, strlen(nstr));
diff --git a/usr/src/cmd/bhyve/rtc.c b/usr/src/cmd/bhyve/rtc.c
index e1d1ec0e02..a45c139862 100644
--- a/usr/src/cmd/bhyve/rtc.c
+++ b/usr/src/cmd/bhyve/rtc.c
@@ -66,7 +66,7 @@ rtc_time(struct vmctx *ctx)
time_t t;
time(&t);
- if (get_config_bool("rtc.use_localtime")) {
+ if (config_get_bool("rtc.use_localtime")) {
localtime_r(&t, &tm);
t = timegm(&tm);
}
diff --git a/usr/src/cmd/bhyve/smbiostbl.c b/usr/src/cmd/bhyve/smbiostbl.c
index 85b69b89ab..ae63e5e9b6 100644
--- a/usr/src/cmd/bhyve/smbiostbl.c
+++ b/usr/src/cmd/bhyve/smbiostbl.c
@@ -591,7 +591,7 @@ smbios_type1_initializer(struct smbios_structure *template_entry,
curaddr, endaddr, n, size);
type1 = (struct smbios_table_type1 *)curaddr;
- guest_uuid_str = get_config_value("uuid");
+ guest_uuid_str = config_get_value("uuid");
if (guest_uuid_str != NULL) {
uuid_t uuid;
uint32_t status;
@@ -616,7 +616,7 @@ smbios_type1_initializer(struct smbios_structure *template_entry,
return (-1);
MD5Init(&mdctx);
- vmname = get_config_value("name");
+ vmname = config_get_value("name");
MD5Update(&mdctx, vmname, strlen(vmname));
MD5Update(&mdctx, hostname, sizeof(hostname));
MD5Final(digest, &mdctx);
@@ -853,7 +853,7 @@ smbios_parse(const char *opts)
char *token;
char *end;
long type;
- const char *guest_uuid_str = get_config_value("uuid");
+ const char *guest_uuid_str = config_get_value("uuid");
struct {
const char *key;