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>
This commit is contained in:
Xiong Zhang 2019-04-23 17:14:46 +08:00 committed by Commit Bot
parent 0b4232fcd9
commit c9b0ea544d

View file

@ -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,