X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fio_apic.c;h=b0e9584142bd19e07db874942f38fd99cbbe9e6a;hb=16745fa0dd0900263d4d92315cd17e0ed9ccae91;hp=31169f4e5e8d10f768726fb3fd85b1093111f569;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios.git diff --git a/palacios/src/devices/io_apic.c b/palacios/src/devices/io_apic.c index 31169f4..b0e9584 100644 --- a/palacios/src/devices/io_apic.c +++ b/palacios/src/devices/io_apic.c @@ -307,15 +307,20 @@ static struct intr_router_ops router_ops = { -static int io_apic_free(struct vm_device * dev) { - // struct guest_info * info = dev->vm; +static int io_apic_free(struct io_apic_state * ioapic) { + + // unregister intr router + + // unhook memory + + V3_Free(ioapic); return 0; } static struct v3_device_ops dev_ops = { - .free = io_apic_free, + .free = (int (*)(void *))io_apic_free, };