On Thu, 14 Sep 2017 20:13:49 +0200 David Hildenbrand <da...@redhat.com> wrote:
> FWIW, I started factoring out today KVM SIGP code to make it usable by TCG. > > I also started adding the missing SIGP instructions the kernel handles > for KVM. I dropped the old TCG SIGP handling code and completely reuse > the new SIGP code. I already got boot/reboot/shutdown properly running > (implementing STOP and RESTART interrupts like KVM has). Cool! > > But its still quite hacky and there are is a bunch of stuff to clean up, > especially: > - external interrupt handling (the queue approach we have right now is > no good for external calls and emergency signals) > - floating interrupt support (io interrupts always going to CPU 0 is a > hack) > > I think I can at least implement SIGP properly and fix the external call > stuff. floating interrupts might require more thought. I'm wondering whether something should move into the qemu version of the flic. I'm also wondering whether we should look to the kvm floating interrupt code for inspiration. (I have 'look at floating interrupts with tcg' on my todo list as well :)