aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/i8259.c
diff options
context:
space:
mode:
authorHe, Qing <qing.he@intel.com>2007-07-26 04:05:18 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:25 -0400
commit6ceb9d791eeeb0a5493958f5d6d4dc7d91e59cf7 (patch)
tree8cef21acf9346fdbea36075029dc007fe969b51e /drivers/kvm/i8259.c
parent9cf98828d12285d1fb43e774c8c100a55f8f34e1 (diff)
KVM: Add get/set irqchip ioctls for in-kernel PIC live migration support
This patch adds two new ioctls to dump and write kernel irqchips for save/restore and live migration. PIC s/r and l/m is implemented in this patch. Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com> Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/i8259.c')
-rw-r--r--drivers/kvm/i8259.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/kvm/i8259.c b/drivers/kvm/i8259.c
index ee6030dc5c04..a679157bc599 100644
--- a/drivers/kvm/i8259.c
+++ b/drivers/kvm/i8259.c
@@ -119,6 +119,11 @@ static void pic_update_irq(struct kvm_pic *s)
119 s->irq_request(s->irq_request_opaque, 0); 119 s->irq_request(s->irq_request_opaque, 0);
120} 120}
121 121
122void kvm_pic_update_irq(struct kvm_pic *s)
123{
124 pic_update_irq(s);
125}
126
122void kvm_pic_set_irq(void *opaque, int irq, int level) 127void kvm_pic_set_irq(void *opaque, int irq, int level)
123{ 128{
124 struct kvm_pic *s = opaque; 129 struct kvm_pic *s = opaque;