Review Board 2.0.15


kvm: Shutdown KVM and disconnect performance counters on fork

Review Request #3280 - Created Jan. 14, 2016 and submitted

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 11300:5d97d819326e
---------------------------
kvm: Shutdown KVM and disconnect performance counters on fork

We can't/shouldn't use KVM after a fork since the child and parent
probably point to the same VM. Knowing the exact effects of this is
hard, but they are likely to be messy. We also disconnect the
performance counters attached to the guest. This works around what
seems to be a kernel bug where spurious SIGIOs get delivered to the
forked child process.

Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
[sascha.bischoff@arm.com: Rebased patches onto a newer gem5 version]
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
[andreas.sandberg@arm.com: Fatal if entering KVM in child process ]
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>

   
Review request changed
Updated (March 4, 2016, 2:57 a.m.)

Status: Closed (submitted)