mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
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:
parent
0b4232fcd9
commit
c9b0ea544d
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue