Skip to content

Commit a730347

Browse files
committed
Added QEMU/KVM vendor compatibility to device detection logic
1 parent 1f4c6cc commit a730347

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Lilu Changelog
22
==============
3+
#### v1.3.9
4+
- Added QEMU/KVM vendor compatibility to device detection logic
35

46
#### v1.3.8
57
- Compile Xcode 11 OSObject stubs into plugins to allow mixing compilers

Lilu.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@
673673
1C748C1E1C21952C0024EED2 /* Project object */ = {
674674
isa = PBXProject;
675675
attributes = {
676-
LastUpgradeCheck = 1100;
676+
LastUpgradeCheck = 1110;
677677
ORGANIZATIONNAME = vit9696;
678678
TargetAttributes = {
679679
1C748C261C21952C0024EED2 = {
@@ -905,7 +905,7 @@
905905
MODULE_NAME = as.vit9696.Lilu;
906906
MODULE_START = "$(PRODUCT_NAME)_kern_start";
907907
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
908-
MODULE_VERSION = 1.3.8;
908+
MODULE_VERSION = 1.3.9;
909909
OTHER_CFLAGS = (
910910
"-mmmx",
911911
"-msse",
@@ -969,7 +969,7 @@
969969
MODULE_NAME = as.vit9696.Lilu;
970970
MODULE_START = "$(PRODUCT_NAME)_kern_start";
971971
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
972-
MODULE_VERSION = 1.3.8;
972+
MODULE_VERSION = 1.3.9;
973973
OTHER_CFLAGS = (
974974
"-mmmx",
975975
"-msse",
@@ -1083,7 +1083,7 @@
10831083
MODULE_NAME = as.vit9696.Lilu;
10841084
MODULE_START = "$(PRODUCT_NAME)_kern_start";
10851085
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
1086-
MODULE_VERSION = 1.3.8;
1086+
MODULE_VERSION = 1.3.9;
10871087
OTHER_CFLAGS = (
10881088
"-mmmx",
10891089
"-msse",

Lilu/Headers/kern_iokit.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ namespace WIOKit {
142142
AMDZEN = 0x1022,
143143
NVIDIA = 0x10DE,
144144
Intel = 0x8086,
145-
VMware = 0x15AD
145+
VMware = 0x15AD,
146+
QEMU = 0x1B36,
146147
};
147148
};
148149

Lilu/Sources/kern_devinfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ void DeviceInfo::grabDevicesFromPciRoot(IORegistryEntry *pciRoot) {
233233
code &= WIOKit::ClassCode::PCISubclassMask;
234234

235235
if (!gotVendor || !gotClass || (vendor != WIOKit::VendorID::Intel && vendor != WIOKit::VendorID::ATIAMD &&
236-
vendor != WIOKit::VendorID::AMDZEN && vendor != WIOKit::VendorID::VMware))
236+
vendor != WIOKit::VendorID::AMDZEN && vendor != WIOKit::VendorID::VMware &&
237+
vendor != WIOKit::VendorID::QEMU))
237238
continue;
238239

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

0 commit comments

Comments
 (0)