Comments (4)
The GOP driver should be separate from QemuVideoDxe. It should be
virtio-1.0 only, and should bind our edk2-internal VIRTIO_DEVICE_PROTOCOL
only (enforcing the >=1 protocol revision). PCI details and VGA
compatibility should be ignored (which includes reverting commit 94210dc
94210dc
-- with the new virtio-gpu-pci driver in place, QemuVideoDxe should just
steer clear of the device, and both virtio-gpu-pci and virtio-gpu should be
driven by the new driver.)
Well, it is also possible to have QemuVideoDxe handle virtio-vga and the
new driver virtio-gpu-pci (and virtio-gpu @ mmio).
You can figure which device is which by checking the pci device class,
virtio-vga has DISPLAY_VGA and virtio-gpu-pci has DISPLAY_OTHER.
from edk2.
You can figure which device is which by checking the pci device class, virtio-vga has DISPLAY_VGA and virtio-gpu-pci has DISPLAY_OTHER.
This is easy to do in QemuVideoDxe (which is already a PCI device driver).
In the new driver however I'd like to look at the VIRTIO_DEVICE_PROTOCOL interface only. It wouldn't be very hard to find the related PciIo protocol / handle, and check the PCI device class using that (i.e., read the config space through PciIo), but in a sense it would be a "layering violation". The PciIo interface of the device is already in use by Virtio10Dxe (the generic driver that provides the "modern" VIRTIO_DEVICE_PROTOCOL impl. on top of PciIo).
Admittedly, this would be a one-off check, not a permanent reference (the UEFI spec recognizes this difference; EFI_OPEN_PROTOCOL_GET_PROTOCOL
vs. EFI_OPEN_PROTOCOL_BY_DRIVER
.) Still I feel the separation would be cleaner without accessing PciIo in the new driver.
from edk2.
2016-07-05 20:09 GMT+02:00 Laszlo Ersek [email protected]:
You can figure which device is which by checking the pci device class,
virtio-vga has DISPLAY_VGA and virtio-gpu-pci has DISPLAY_OTHER.This is easy to do in QemuVideoDxe (which is already a PCI device driver).
In the new driver however I'd like to look at the VIRTIO_DEVICE_PROTOCOL
interface only. It wouldn't be very hard to find the related PciIo protocol
/ handle, and check the PCI device class using that (i.e., read the config
space through PciIo), but in a sense it would be a "layering violation".
The PciIo interface of the device is already in use by Virtio10Dxe (the
generic driver that provides the "modern" VIRTIO_DEVICE_PROTOCOL impl. on
top of PciIo).Possibly it is easier to do in the virtio-pci driver: Don't bind to
DISPLAY_VGA devices, so virtio-vga wouldn't show up as VIRTIO_DEVICE in the
first place.
from edk2.
This issue is now tracked by
https://tianocore.acgmultimedia.com/show_bug.cgi?id=66
from edk2.
Related Issues (20)
- RFE: OvmfPkg: use StatusCode Router and Handler from MdeModulePkg instead of IntelFrameworkModulePkg HOT 1
- UefiCpuPkg/CpuMpPei: please consider existing memalloc HOBs in GetWakeupBuffer()
- Man pages in BaseTools UserManuals should be updated with new ML address
- Boot failed - 64bit OVMF doesn't find /efi/boot/BOOTX64.efi HOT 2
- RFE: ArmVirtPkg: port 2eb358986052 from OvmfPkg HOT 2
- ArmPkg/ArmGic: invalid register offset written when on GICv3 HOT 3
- Build failure with latest Xcode clang
- i need help with using edk2, and installing it HOT 5
- I NEED HELP! I CAN NOT BUILD 202211 EDK2 HOT 2
- Missing break in switch HOT 2
- How to use RedfishPkg HOT 1
- How to make Arrandale GPU support more resolutions? HOT 2
- Error when running `make -C BaseTools`
- EDK2 PIKVM USBSerial Development. HOT 1
- Change devcontainer to Fedora 39 HOT 8
- Bug with data unmarshaling and buffer read overrun in SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c HOT 1
- Bug with data unmarshaling in SecurityPkg/Library/Tpm2CommandLib/Tpm2Object.c HOT 1
- Bug with data marshaling in SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c HOT 1
- Bad variable interpolation in UefiPayloadPkg.dsc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edk2.