Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172448580
D2429.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
481 B
Referenced Files
None
Subscribers
None
D2429.id.diff
View Options
Index: sys/amd64/include/vmm.h
===================================================================
--- sys/amd64/include/vmm.h
+++ sys/amd64/include/vmm.h
@@ -276,7 +276,13 @@
static int __inline
vcpu_should_yield(struct vm *vm, int vcpu)
{
- return (curthread->td_flags & (TDF_ASTPENDING | TDF_NEEDRESCHED));
+
+ if (curthread->td_flags & (TDF_ASTPENDING | TDF_NEEDRESCHED))
+ return (1);
+ else if (curthread->td_owepreempt)
+ return (1);
+ else
+ return (0);
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 1:21 PM (12 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39226520
Default Alt Text
D2429.id.diff (481 B)
Attached To
Mode
D2429: Check 'td_owepreempt' and yield the vcpu thread if it is set.
Attached
Detach File
Event Timeline
Log In to Comment