Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151125096
D45480.id141910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
D45480.id141910.diff
View Options
diff --git a/usr.sbin/bhyve/amd64/e820.c b/usr.sbin/bhyve/amd64/e820.c
--- a/usr.sbin/bhyve/amd64/e820.c
+++ b/usr.sbin/bhyve/amd64/e820.c
@@ -210,7 +210,19 @@
(base < element->base || end > element->end))
return (ENOMEM);
- if (base == element->base) {
+ if (base == element->base && end == element->end) {
+ /*
+ * The new entry replaces an existing one.
+ *
+ * Old table:
+ * [ 0x1000, 0x4000] RAM <-- element
+ * New table:
+ * [ 0x1000, 0x4000] Reserved
+ */
+ TAILQ_INSERT_BEFORE(element, new_element, chain);
+ TAILQ_REMOVE(&e820_table, element, chain);
+ free(element);
+ } else if (base == element->base) {
/*
* New element at system memory base boundary. Add new
* element before current and adjust the base of the old
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 6:22 AM (7 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31015209
Default Alt Text
D45480.id141910.diff (773 B)
Attached To
Mode
D45480: bhyve: remove empty E820 entries
Attached
Detach File
Event Timeline
Log In to Comment