diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-09 09:14:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-09 09:14:17 -0700 |
commit | 39a3478c1c0122640b1a0ead0d7cccd0804b1750 (patch) | |
tree | 6d6468eaf5b98f5a9ec46d2ac2d9014e4d1b9bdc /drivers | |
parent | 1c91ffc896cf839a3a0923c0062ff61c930a21e0 (diff) | |
parent | 6db6a5f3ae2ca6b874b0fd97ae16fdc9b5cdd6cc (diff) | |
download | op-kernel-dev-39a3478c1c0122640b1a0ead0d7cccd0804b1750.zip op-kernel-dev-39a3478c1c0122640b1a0ead0d7cccd0804b1750.tar.gz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
lguest: fix for CONFIG_SPARSE_IRQ=y
lguest: fix crash 'unhandled trap 13 at <native_read_msr_safe>'
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/lguest/lguest_device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index b4d44e5..8132533 100644 --- a/drivers/lguest/lguest_device.c +++ b/drivers/lguest/lguest_device.c @@ -212,6 +212,9 @@ static void lg_notify(struct virtqueue *vq) hcall(LHCALL_NOTIFY, lvq->config.pfn << PAGE_SHIFT, 0, 0); } +/* An extern declaration inside a C file is bad form. Don't do it. */ +extern void lguest_setup_irq(unsigned int irq); + /* This routine finds the first virtqueue described in the configuration of * this device and sets it up. * @@ -266,6 +269,9 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev, goto unmap; } + /* Make sure the interrupt is allocated. */ + lguest_setup_irq(lvq->config.irq); + /* Tell the interrupt for this virtqueue to go to the virtio_ring * interrupt handler. */ /* FIXME: We used to have a flag for the Host to tell us we could use |