Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174635086
D36987.id112179.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
D36987.id112179.diff
View Options
diff --git a/usr.sbin/bhyve/basl.h b/usr.sbin/bhyve/basl.h
--- a/usr.sbin/bhyve/basl.h
+++ b/usr.sbin/bhyve/basl.h
@@ -33,5 +33,6 @@
int basl_init();
int basl_table_append_bytes(struct basl_table *table, const void *bytes,
uint32_t len);
+int basl_table_append_int(struct basl_table *table, uint64_t val, uint8_t size);
int basl_table_create(struct basl_table **table, struct vmctx *ctx,
const uint8_t *name, uint32_t alignment, uint32_t off);
diff --git a/usr.sbin/bhyve/basl.c b/usr.sbin/bhyve/basl.c
--- a/usr.sbin/bhyve/basl.c
+++ b/usr.sbin/bhyve/basl.c
@@ -166,6 +166,16 @@
return (0);
}
+int
+basl_table_append_int(struct basl_table *const table, const uint64_t val,
+ const uint8_t size)
+{
+ assert(size <= sizeof(val));
+
+ const uint64_t val_le = htole64(val);
+ return (basl_table_append_bytes(table, &val_le, size));
+}
+
int
basl_table_create(struct basl_table **const table, struct vmctx *ctx,
const uint8_t *const name, const uint32_t alignment,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 5, 8:11 PM (16 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40257706
Default Alt Text
D36987.id112179.diff (991 B)
Attached To
Mode
D36987: [PATCH 4/19] bhyve: add basl support for int values
Attached
Detach File
Event Timeline
Log In to Comment