]> git.proxmox.com Git - qemu.git/commit
piix_pci: load path clean up
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 1 Apr 2011 11:43:24 +0000 (20:43 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Apr 2011 12:54:05 +0000 (15:54 +0300)
commitafe3ef1d01dd767b6824c0580ecb92f6a27b75cc
tree764af3e85b7d2642b0ed73c46f3f9efd28e61764
parentab431c283e7055bcd6fb622f212bb29e84a6a134
piix_pci: load path clean up

The previous patch didn't change the behavior when load,
it resulted in ugly code. This patch cleans it up.

With this patch, pic irq lines are manipulated when loaded.
It is expected that it won't change the behaviour because
the interrupts are level: at the moment e.g. pci devices already
reassert interrupts on load.

Test:
- rung linux as guest and use flooding ping (ping -f) to host
  in order to trigger interrupts for e1000 emulated.
- savevm/loadvm and see guest kept running after loadvm.

To be honest, I'm not sure that ping -f caused enough interrupts
because Linux e1000 driver supports NAPI.
TODO: test more OSes, stress test with save/load, live-migration

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/piix_pci.c