Page MenuHomeFreeBSD

D2430.id5244.diff
No OneTemporary

D2430.id5244.diff

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

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)

Event Timeline