|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.
On Thursday 30 July 2015 03:24 PM, Ian Campbell wrote: I have been trying to get the flow of caller of libxl__device_pci_add during pci device assignemnt from cfg file(cold boot). It should be called form xl create flow. Is it called from C code or Python code.On Wed, 2015-07-29 at 15:07 +0530, Manish Jaggi wrote:On Monday 06 July 2015 03:50 PM, Ian Campbell wrote:On Mon, 2015-07-06 at 15:36 +0530, Manish Jaggi wrote:On Monday 06 July 2015 02:41 PM, Ian Campbell wrote:On Sun, 2015-07-05 at 11:25 +0530, Manish Jaggi wrote:On Monday 29 June 2015 04:01 PM, Julien Grall wrote:Hi Manish, On 28/06/15 19:38, Manish Jaggi wrote:4.1 Holes in guest memory space ---------------------------- Holes are added in the guest memory space for mapping pci device's BAR regions. These are defined in arch-arm.h /* For 32bit */ GUEST_MMIO_HOLE0_BASE, GUEST_MMIO_HOLE0_SIZE/* For 64bit */GUEST_MMIO_HOLE1_BASE , GUEST_MMIO_HOLE1_SIZEThe memory layout for 32bit and 64bit are exactly the same. Why do you need to differ here?I think Ian has already replied. I will change the name of macro4.2 New entries in xenstore for device BARs -------------------------------------------- toolkit also updates the xenstore information for the device (virtualbar:physical bar). This information is read by xenpciback and returned to the pcifront driver configuration space accesses.Can you details what do you plan to put in xenstore and how?It is implementation . But I plan to put under domU / device / heirarchyActually, xenstore is an API of sorts which needs to be maintained going forward (since front and backend can evolve separately, so it does need some level of design and documentation.What about the expansion ROM?Do you want to put some restriction on not using expansion ROM as a passthrough device."expansion ROM as a passthrough device" doesn't make sense to me, passthrough devices may _have_ an expansion ROM. The expansion ROM is just another BAR. I don't know how pcifront/back deal with those today on PV x86, but I see no reason for ARM to deviate. libxl__device_pci_add calls xc_assign_deviceSecondly, the vdev-X entry is created async by dom0 watching on event. So how the tools could read back and call assign device again.
static void xen_pcibk_be_watch(struct xenbus_watch *watch,
const char **vec, unsigned int len)
{
...
switch (xenbus_read_driver_state(pdev->xdev->nodename)) {
case XenbusStateInitWait:
xen_pcibk_setup_backend(pdev);
break;
}
Or you could change things such that vdevfn is always chosen by the toolstack for ARM, not optionally like it is on x86. Please evaluate the options. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |