|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/PCI: Intercept Dom0 MMCFG from dom0s in HVM containers
On 12/16/2015 04:04 AM, Jan Beulich wrote: On 15.12.15 at 22:02,<boris.ostrovsky@xxxxxxxxxx> wrote: Yes. I in fact first named it *_mmcfg() and then renamed it to _*mmio(). But then by the same logic wouldn't we want to rename mmio_intercept_write() as well, not necessarily because of arguments but because of what it actually does? I am not sure what you mean by your statement in parentheses about mmio_ro_emulate_ctxt. (The function naming in x86/mm.c is actually using mmio because its serving wider purpose than just MMCFG write interception. Which makes me wonder whether we don't actually need that other part for PVH too, in which case the naming would again be fine.) I don't think I understand what the other part is used for in PV so I don't know whether it is useful for PVH.
I used hvm_emulate_prepare() as a convenient way to initialize the context to a reasonable state, with definition of "reasonable" possibly changing at some point later. Other emulating routines have hvm_emulate_ctxt passed in so it may already have certain fields set. (Yes, .data needs to be set afterwards). -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |