diff options
author | Xiong Zhang <xiong.y.zhang@intel.corp-partner.google.com> | 2019-04-23 17:14:46 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-25 04:36:44 +0000 |
commit | c9b0ea544d84a1b9d8f920759761083e952fd8b9 (patch) | |
tree | d3d715ce9f345f6cbec928a95e34c8afca3973a7 | |
parent | 0b4232fcd932d8a217970f1d9091cd3d61887242 (diff) | |
download | crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar.gz crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar.bz2 crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar.lz crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar.xz crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.tar.zst crosvm-c9b0ea544d84a1b9d8f920759761083e952fd8b9.zip |
devices: pci: Change host brige into Intel
For kvmgt linux guest, intel graphic driver i915 need intel host bridge located at 0000:00.0, so this patch change the vendor id of 0000:00.0 device to intel. BUG=none TEST=none Change-Id: I52f2341d25859f2b7d4a3837f4f0c8a4b2443525 Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.corp-partner.google.com> Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1581139 Reviewed-by: Dylan Reid <dgreid@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r-- | devices/src/pci/pci_root.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/devices/src/pci/pci_root.rs b/devices/src/pci/pci_root.rs index 1ddd3d7..205524a 100644 --- a/devices/src/pci/pci_root.rs +++ b/devices/src/pci/pci_root.rs @@ -47,14 +47,17 @@ pub struct PciRoot { devices: Vec<Arc<Mutex<dyn BusDevice>>>, } +const PCI_VENDOR_ID_INTEL: u16 = 0x8086; +const PCI_DEVICE_ID_INTEL_82441: u16 = 0x1237; + impl PciRoot { /// Create an empty PCI root bus. pub fn new() -> Self { PciRoot { root_configuration: PciRootConfiguration { config: PciConfiguration::new( - 0, - 0, + PCI_VENDOR_ID_INTEL, + PCI_DEVICE_ID_INTEL_82441, PciClassCode::BridgeDevice, &PciBridgeSubclass::HostBridge, None, |