On 2017-01-17 16:40, Vaidyanath, Rajiv wrote:
>
> Attaching the output.
>
OK, before patching the invalid write to silence, I'd like to understand
weather we are shadowed by disabled master. Could you re-run with this
updated instrumentation?
diff --git a/hypervisor/arch/x86/pci.c b/hypervisor/arch/x86/pci.c
index 19d0ea9..9c629da 100644
--- a/hypervisor/arch/x86/pci.c
+++ b/hypervisor/arch/x86/pci.c
@@ -333,12 +340,23 @@ int arch_pci_update_msi(struct pci_device *device,
u16 bdf = info->bdf;
int result = 0;
+ if (device->cell != &root_cell)
+ printk("%s: %x: %d %08x %08x %08x %08x\n", __FUNCTION__,
+ device->info->bdf, vectors,
+ device->msi_registers.raw[0],
+ device->msi_registers.raw[1],
+ device->msi_registers.raw[2],
+ device->msi_registers.raw[3]);
if (vectors == 0)
return 0;
for (n = 0; n < vectors; n++) {
irq_msg = x86_pci_translate_msi(device, n, vectors, msi);
result = iommu_map_interrupt(device->cell, bdf, n, irq_msg);
+ if (device->cell != &root_cell)
+ printk("%llx %d, master %d\n", *(u64 *)&irq_msg, result,
+ pci_read_config(info->bdf, PCI_CFG_COMMAND, 2) &
+ PCI_CMD_MASTER);
// HACK for QEMU
if (result == -ENOSYS) {
for (n = 1; n < (info->msi_64bits ? 4 : 3); n++)
Thanks,
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.