-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R4.1: Adapt to new gui protocol version using grant refs #34
Conversation
Depends on QubesOS/qubes-gui-common#2 and requires QubesOS/qubes-gui-daemon#21 in dom0. |
# Checks for header files. | ||
AC_HEADER_STDC | ||
AC_CHECK_HEADER([u2mfnlib.h]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
With the new grant based memory sharing you can run easily in the default limits for allocated/mapped grants. Inside a domain there's More tricky is the global limit controlled by |
What exactly happen (form user POV) when you run into this limit? Is closing some window enough to get the VM back to working state? As for actual value, I'd say something allowing handling N windows of maximum supported size, where N, lets say 4. |
@cfcs old GUI protocol didn't used grant references, so that's unlikely. There was a similar problem in mini-os + mirage vchan implementation (hardcoded limit), but that's mostly unrelated to GUI. As for count of windows - yes. |
@marmarek that was the problem I was thinking of, thank you. :) Re: Window size: 4 seems a bit limiting, at least I frequently have more than 4 full-screen windows open. If the default is to be conservative, any chance this could be made a configuration option? |
Re: Window size: 4 seems a bit limiting, at least I frequently have more than 4 full-screen windows open. If the default is to be conservative, any chance this could be made a configuration option?
Note that it's in practice about summary surface, expressed as number of
windows of maximum supported resolution, not just number of fullscreen
windows. It would be N (proposed 4) windows of _maximum supported
resolution_, which is currently 16384x6144. If you have lower
resolution, then you could have much more fullscreen (or else) windows.
If that limit will become an issue in the future, we could raise it
then, assuming more RAM will be a common thing at that time.
|
Fixed the That's Xephyr (nested X server) running in a domain named cc @rootkovska |
@marmarek Ahh, I thought it was of the current resolution. That constant definitely works for me. :) |
|
||
all: libxf86-qubes-common.so | ||
|
||
libxf86-qubes-common.so: xf86-qubes-common.c include/xf86-qubes-common.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this have fstack-protector-all, ro-relocations etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rpm already define them, it's just about using CFLAGS/LDFLAGS. I'll add it here too.
ret = | ||
read(g->xserver_fd, ((char *) mfnbuf) + rcvd, | ||
size - rcvd); | ||
wd_msg_buf = alloca(wd_msg_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing error handling (was already missing in the old version).
No description provided.