* ABI change proposal before the 2.6.22 freeze
@ 2007-05-10 21:09 Gregory Haskins
[not found] ` <4643518D.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Gregory Haskins @ 2007-05-10 21:09 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
(assuming that hasn't happened already?)
One thing that would make my life easier going forward would be if we could separate out the interrupt related state from the [gs]et_sregs() calls. What I propose is that we make two new calls (say [gs]et_pic). For "level-0" mode this will be saving/restoring the 256-bit "userint" array. For other modes, it will be saving whatever is relevant for the APIC (registers, etc). The userspace code would be aware of which mode it is operating under anyway, since it has to enable the feature.
The benefit here is that this is a simple change that we can slip in now before the ABI is frozen. IIUC, we have already been changing the ABI in the trunk recently anyway. I am just thinking that the LAPIC work I am doing probably wont make it in before the freeze, but this small change surely could.
Thoughts? I can put together a patch if there is acceptance of the idea.
-Greg
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <4643518D.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>]
* Re: ABI change proposal before the 2.6.22 freeze [not found] ` <4643518D.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org> @ 2007-05-13 8:17 ` Dor Laor 2007-05-13 12:17 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Dor Laor @ 2007-05-13 8:17 UTC (permalink / raw) To: Gregory Haskins, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f >(assuming that hasn't happened already?) You're right on time.. > >One thing that would make my life easier going forward would be if we could >separate out the interrupt related state from the [gs]et_sregs() calls. >What I propose is that we make two new calls (say [gs]et_pic). For "level- >0" mode this will be saving/restoring the 256-bit "userint" array. For >other modes, it will be saving whatever is relevant for the APIC >(registers, etc). The userspace code would be aware of which mode it is >operating under anyway, since it has to enable the feature. > >The benefit here is that this is a simple change that we can slip in now >before the ABI is frozen. IIUC, we have already been changing the ABI in >the trunk recently anyway. I am just thinking that the LAPIC work I am >doing probably wont make it in before the freeze, but this small change >surely could. Sounds logical and helpful. >Thoughts? I can put together a patch if there is acceptance of the idea. - In that case, the kvm_run should be checked too, the apic_base, cr8 are synced there. I believe that when running with level-1, there won't be a need of them no more. The reason we added them there is to stop calling [gs]et_pic every run ioctl. - A Patch is always welcomed ;) >-Greg > >----------------------------------------------------------------------- -- >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/ >_______________________________________________ >kvm-devel mailing list >kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ABI change proposal before the 2.6.22 freeze [not found] ` <4643518D.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org> 2007-05-13 8:17 ` Dor Laor @ 2007-05-13 12:17 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Avi Kivity @ 2007-05-13 12:17 UTC (permalink / raw) To: Gregory Haskins; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Gregory Haskins wrote: > (assuming that hasn't happened already?) > > One thing that would make my life easier going forward would be if we could separate out the interrupt related state from the [gs]et_sregs() calls. What I propose is that we make two new calls (say [gs]et_pic). For "level-0" mode this will be saving/restoring the 256-bit "userint" array. For other modes, it will be saving whatever is relevant for the APIC (registers, etc). The userspace code would be aware of which mode it is operating under anyway, since it has to enable the feature. > While we can slip in such a change to mainline, we're committed to supporting the current ABI for Fedora 7, so there's not much point. However, I don't see an issue. You could specify that when the feature is enabled, the irq state in get/set sregs is ignored, and the new functions are to be used. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-13 12:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 21:09 ABI change proposal before the 2.6.22 freeze Gregory Haskins
[not found] ` <4643518D.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
2007-05-13 8:17 ` Dor Laor
2007-05-13 12:17 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox