Commit 9654fd0
committed
Do not allocate grants for framebuffer by default
If glamor is not used (which is default), FBBasePriv seems to be unused.
GUI agent doesn't share the root window with GUI daemon. If glamor is
used, FBBasePriv probably unused in practice too, but at this time I'm not
100% sure about it (see qubes_create_screen_resources() - the "pixmap"
of the root window is passed to glamor, and it isn't clear if it
wouldn't end up used in some window that is handled by the GUI agent).
Based on this observation, if glamor is not used, use normal memory for
the framebuffer. The main benefit is not having the framebuffer
mlock()-ed, which helps especially with small VMs. But also, allocating
it as normal userspace memory gives the kernel more flexibility in
finding memory for it (it doesn't need to be physically continuous,
etc).
Fixes QubesOS/qubes-issues#99921 parent 95eba6d commit 9654fd0
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
915 | | - | |
| 915 | + | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1022 | 1029 | | |
1023 | 1030 | | |
1024 | 1031 | | |
| |||
1290 | 1297 | | |
1291 | 1298 | | |
1292 | 1299 | | |
1293 | | - | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1294 | 1304 | | |
| 1305 | + | |
1295 | 1306 | | |
1296 | 1307 | | |
1297 | 1308 | | |
| |||
0 commit comments