|
Re: In kernel PIC support: kernel patch: msg#00678emulators.kvm.devel
Gregory Haskins wrote: > On Fri, 2007-06-22 at 13:50 +0300, Avi Kivity wrote: > >> Dong, Eddie wrote: >> >> >>> +#include "kvm.h" >>> +#include "virq.h" >>> + >>> +/* >>> + * check if there is pending interrupt without >>> + * intack. >>> + */ >>> +int cpu_has_interrupt(struct kvm_vcpu *v) >>> +{ >>> + struct pic_state2 *s = kernel_pic(v->kvm); >>> + >>> >>> >> Isn't the PIC connected to just one cpu? >> > > I agree with Eddie here. Its true that only one CPU would ever > associate with PIC (and its usually hardwired to the BSP, but it > technically doesn't have to be depending on the architecture). But the > PIC(s) are really a system wide resource that should hang off the kvm > struct, IMHO. > > In fact, my own implementation puts the ISA-userint model as hanging off > the kvm structure as well (which would be replaced with a similar PIC > model for layer-2 mode in the future). > > The PIC is certainly a system resource, but at least in qemu it's connected to cpu 0 only. We want to preserve that. I guess it doesn't really matter because smp configurations will use the ioapic. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: In kernel PIC support: kernel patch: 00678, Avi Kivity |
|---|---|
| Next by Date: | Re: KVM ABAT Test Result, a37b5887afcf6f1ee8cfd885ec9c7279ac14fa30: 00678, Zhao, Yunfeng |
| Previous by Thread: | Re: In kernel PIC support: kernel patchi: 00678, Gregory Haskins |
| Next by Thread: | In kernel PIC support: user side: 00678, Dong, Eddie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |