Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161475273
D2430.id5244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
496 B
Referenced Files
None
Subscribers
None
D2430.id5244.diff
View Options
Index: head/sys/amd64/include/vmm.h
===================================================================
--- head/sys/amd64/include/vmm.h
+++ head/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
Sun, Jul 5, 4:01 AM (1 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34657844
Default Alt Text
D2430.id5244.diff (496 B)
Attached To
Mode
D2430: Check 'td_owepreempt' and yield the vcpu thread if it is set.
Attached
Detach File
Event Timeline
Log In to Comment