On 2017-01-16 20:42, Vaidyanath, Rajiv wrote:
> I removed MMCONFIG info for tg3 in the non-root config (mem_regions) and
> the driver does not expose any ports in /proc/ioports.  The only entries
> I have in non-root config are pci_devices and pci_caps, for tg3 NIC.
> 
> 
> When I load the non-root after this change, I still get the invalid PCI
> config write message.
> 

>From your non-root cell config:

>         .pci_devices = {
>                 /* PCIDevice: 04:00.0 */
>                 {
>                         .type = JAILHOUSE_PCI_TYPE_DEVICE,
>                         .iommu = 1,
>                         .domain = 0x0,
>                         .bdf = 0x400,
>                         .bar_mask = {
>                                 0xffff0000, 0xffffffff, 0x00000000,
>                                 0x00000000, 0x00000000, 0x00000000,
>                         },
>                         .caps_start = 58,

You need to update this as well. It's the index into the caps array. Now
it's 0 as there are no other devices and no other caps.

>                         .num_caps = 9,
>                         .num_msi_vectors = 1,
>                         .msi_64bits = 1,
>                         .num_msix_vectors = 0,
>                         .msix_region_size = 0x0,
>                         .msix_address = 0x0,
>                 },
> 
>       },

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to