Skip to content

Commit

Permalink
Added QEMU/KVM vendor compatibility to device detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Oct 15, 2019
1 parent 1f4c6cc commit a730347
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Lilu Changelog
==============
#### v1.3.9
- Added QEMU/KVM vendor compatibility to device detection logic

#### v1.3.8
- Compile Xcode 11 OSObject stubs into plugins to allow mixing compilers
Expand Down
8 changes: 4 additions & 4 deletions Lilu.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@
1C748C1E1C21952C0024EED2 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1100;
LastUpgradeCheck = 1110;
ORGANIZATIONNAME = vit9696;
TargetAttributes = {
1C748C261C21952C0024EED2 = {
Expand Down Expand Up @@ -905,7 +905,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.3.8;
MODULE_VERSION = 1.3.9;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down Expand Up @@ -969,7 +969,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.3.8;
MODULE_VERSION = 1.3.9;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down Expand Up @@ -1083,7 +1083,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.3.8;
MODULE_VERSION = 1.3.9;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down
3 changes: 2 additions & 1 deletion Lilu/Headers/kern_iokit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ namespace WIOKit {
AMDZEN = 0x1022,
NVIDIA = 0x10DE,
Intel = 0x8086,
VMware = 0x15AD
VMware = 0x15AD,
QEMU = 0x1B36,
};
};

Expand Down
3 changes: 2 additions & 1 deletion Lilu/Sources/kern_devinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ void DeviceInfo::grabDevicesFromPciRoot(IORegistryEntry *pciRoot) {
code &= WIOKit::ClassCode::PCISubclassMask;

if (!gotVendor || !gotClass || (vendor != WIOKit::VendorID::Intel && vendor != WIOKit::VendorID::ATIAMD &&
vendor != WIOKit::VendorID::AMDZEN && vendor != WIOKit::VendorID::VMware))
vendor != WIOKit::VendorID::AMDZEN && vendor != WIOKit::VendorID::VMware &&
vendor != WIOKit::VendorID::QEMU))
continue;

if (vendor == WIOKit::VendorID::Intel && (code == WIOKit::ClassCode::DisplayController || code == WIOKit::ClassCode::VGAController)) {
Expand Down

0 comments on commit a730347

Please sign in to comment.