openpic_kvm.c (bb2b04503497608cdc5fa4c990d26e936f9d2102) openpic_kvm.c (6f1834a2baa2f2688efaa7756d000876c7898d13)
1/*
2 * KVM in-kernel OpenPIC
3 *
4 * Copyright 2013 Freescale Semiconductor, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 186 unchanged lines hidden (view full) ---

195 return;
196 }
197 opp->fd = cd.fd;
198
199 sysbus_init_mmio(d, &opp->mem);
200 qdev_init_gpio_in(dev, kvm_openpic_set_irq, OPENPIC_MAX_IRQ);
201
202 opp->mem_listener.region_add = kvm_openpic_region_add;
1/*
2 * KVM in-kernel OpenPIC
3 *
4 * Copyright 2013 Freescale Semiconductor, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 186 unchanged lines hidden (view full) ---

195 return;
196 }
197 opp->fd = cd.fd;
198
199 sysbus_init_mmio(d, &opp->mem);
200 qdev_init_gpio_in(dev, kvm_openpic_set_irq, OPENPIC_MAX_IRQ);
201
202 opp->mem_listener.region_add = kvm_openpic_region_add;
203 opp->mem_listener.region_add = kvm_openpic_region_del;
203 opp->mem_listener.region_del = kvm_openpic_region_del;
204 memory_listener_register(&opp->mem_listener, &address_space_memory);
205
206 /* indicate pic capabilities */
207 msi_supported = true;
208 kvm_kernel_irqchip = true;
209 kvm_async_interrupts_allowed = true;
210
211 /* set up irq routing */

--- 53 unchanged lines hidden ---
204 memory_listener_register(&opp->mem_listener, &address_space_memory);
205
206 /* indicate pic capabilities */
207 msi_supported = true;
208 kvm_kernel_irqchip = true;
209 kvm_async_interrupts_allowed = true;
210
211 /* set up irq routing */

--- 53 unchanged lines hidden ---