Page MenuHomeFreeBSD
Feed Advanced Search

Aug 7 2016

badger added a member for DTrace: badger.
Aug 7 2016, 7:03 PM
badger added a member for manpages: badger.
Aug 7 2016, 7:01 PM

Jul 13 2016

badger closed D7172: Add explicit detection of KVM hypervisor.
Jul 13 2016, 9:35 PM
badger committed rS302783: Add explicit detection of KVM hypervisor.
Add explicit detection of KVM hypervisor
Jul 13 2016, 7:19 PM

Jul 12 2016

badger added a reviewer for D7172: Add explicit detection of KVM hypervisor: alc.
Jul 12 2016, 2:30 AM
badger updated the diff for D7172: Add explicit detection of KVM hypervisor.
  • Test vm_guest != VM_GUEST_NO rather than vm_guest == VM_GUEST_VM
Jul 12 2016, 2:30 AM
badger added a comment to D7172: Add explicit detection of KVM hypervisor.

On line 797 of sys/amd64/amd64/pmap.c, we currently test vm_guest == VM_GUEST_VM. Should we test for != VM_GUEST_NO instead? That code seems to apply to all hypervisors. (Ditto for the i386 equivalent.)

Jul 12 2016, 2:25 AM

Jul 10 2016

badger added reviewers for D7172: Add explicit detection of KVM hypervisor: vangyzen, kib.
Jul 10 2016, 7:30 PM
badger retitled D7172: Add explicit detection of KVM hypervisor from to Add explicit detection of KVM hypervisor.
Jul 10 2016, 7:06 PM

Jun 21 2016

badger added a comment to D6859: A kludge to work around the knlist_remove_inevent() making the process exit non-synced with the NOTE_EXIT delivery..
In D6859#144877, @kib wrote:

Remove racy check for KN_INFLUX, which is additionally buggy by not chechking KN_SCAN.

Jun 21 2016, 9:41 PM

Jun 20 2016

badger added a comment to D6859: A kludge to work around the knlist_remove_inevent() making the process exit non-synced with the NOTE_EXIT delivery..

I tested the 17676 patch with my original script. Haven't seen any crashes, but I am seeing spurious NOTE_EXEC events. That is, I might encounter >4000 NOTE_EXECs even though only 4000 occurred. The number of extra NOTE_EXECs is the same as the number of events where both NOTE_EXEC and NOTE_CHILD are in fflags. I think the extra knote that is created for NOTE_CHILD as well as the normal knote are both getting NOTE_EXEC added to fflags.

Jun 20 2016, 4:56 PM

Jun 17 2016

badger added a comment to D6859: A kludge to work around the knlist_remove_inevent() making the process exit non-synced with the NOTE_EXIT delivery..

To make my last comment slightly more specific, I think what happens is:

Jun 17 2016, 9:02 PM
badger added a comment to D6859: A kludge to work around the knlist_remove_inevent() making the process exit non-synced with the NOTE_EXIT delivery..

The race is between the exiting process (who runs knote(..., NOTE_EXIT), then filt_proc(), then knlist_remove_inevent()) and another thread in kqueue_scan(), processing possibly a NOTE_EXEC for the same process (I've only been able to reproduce this with short lived processes). I could try to track it down more precisely, though even KTR messages can close the timing window, depending on where I put them.

Jun 17 2016, 8:57 PM