<div dir="ltr"><div>include/hw/pci/pci_ids.h<div><br></div><div>A very last minute realisation is that this is not needed. Its purpose is to make sure anything else that references LPC device ID is given the hacked-in host's ID. but in verifying the patch validity it appears this not referenced anywhere, other than where its taken care on in ich9_lpc.c</div><div><br></div><div>for completeness, here it is:</div><div><br></div><div><div>patch</div><div>---------------------</div></div></div><div><br></div><div>diff --git a/include/hw/pci/pci_ids.h b/include/hw/pci/pci_ids.h</div><div>index e597070..b76c61b 100644</div><div>--- a/include/hw/pci/pci_ids.h</div><div>+++ b/include/hw/pci/pci_ids.h</div><div>@@ -130,7 +130,19 @@</div><div> #define PCI_DEVICE_ID_INTEL_ICH9_5       0x2919</div><div> #define PCI_DEVICE_ID_INTEL_ICH9_6       0x2930</div><div> #define PCI_DEVICE_ID_INTEL_ICH9_7       0x2916</div><div>-#define PCI_DEVICE_ID_INTEL_ICH9_8       0x2918</div><div>+</div><div>+/* TODO: Replace this hack for a non-hack!</div><div>+ * PCI_DEVICE_ID_INTEL_ICH9_8 must be set to</div><div>+ * `setpci -s 00:1f.0 0x02.w` (LPC device id)</div><div>+ * of the host - so that guest LPC represents</div><div>+ * the archiecture of device 2 (IGD). This is</div><div>+ * important to i915 kernel module */</div><div>+#define BEARLAKE    <span class="" style="white-space:pre">                      </span>0x2918 // QEMU DEFAULT</div><div>+#define COUGARPOINT <span class="" style="white-space:pre">                        </span>0x1c4e</div><div>+#define PANTHERPOINT<span class="" style="white-space:pre">                        </span>0x</div><div>+#define LYNXPOINT   <span class="" style="white-space:pre">                   </span>0x8c4e</div><div>+</div><div>+#define PCI_DEVICE_ID_INTEL_ICH9_8       COUGARPOINT</div><div> </div><div> #define PCI_DEVICE_ID_INTEL_82801I_UHCI1 0x2934</div><div> #define PCI_DEVICE_ID_INTEL_82801I_UHCI2 0x2935</div></div>