Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141941874
D40555.id123291.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40555.id123291.diff
View Options
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -112,8 +112,6 @@
#include "rtc.h"
#include "vmgenc.h"
-#define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */
-
#define MB (1024UL * 1024)
#define GB (1024UL * MB)
@@ -564,36 +562,17 @@
return (CPU_EMPTY(&cpumask));
}
-static int
-vmexit_handle_notify(struct vmctx *ctx __unused, struct vcpu *vcpu __unused,
- struct vm_exit *vme __unused, uint32_t eax __unused)
-{
-#if BHYVE_DEBUG
- /*
- * put guest-driven debug here
- */
-#endif
- return (VMEXIT_CONTINUE);
-}
-
static int
vmexit_inout(struct vmctx *ctx, struct vcpu *vcpu, struct vm_run *vmrun)
{
struct vm_exit *vme;
int error;
- int bytes, port, in, out;
+ int bytes, port, in;
vme = vmrun->vm_exit;
port = vme->u.inout.port;
bytes = vme->u.inout.bytes;
in = vme->u.inout.in;
- out = !in;
-
- /* Extra-special case of host notifications */
- if (out && port == GUEST_NIO_PORT) {
- error = vmexit_handle_notify(ctx, vcpu, vme, vme->u.inout.eax);
- return (error);
- }
error = emulate_inout(ctx, vcpu, vme);
if (error) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 14, 6:25 PM (7 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27630330
Default Alt Text
D40555.id123291.diff (1 KB)
Attached To
Mode
D40555: bhyve: Remove special no-op handling for I/O port 0x488
Attached
Detach File
Event Timeline
Log In to Comment