Skip to content
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

Provide proper unmap notifications to GUI agent #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion include/qubes-gui-protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
* - gui-daemon sends MSG_WINDOW_DUMP_ACK to acknowledge finishing
* MSG_WINDOW_DUMP processing; this allows agent to know when it
* can safely unmap a window's grants
* 1.8:
* - gui-daemon uses IOCTL_GNTDEV_SET_UNMAP_NOTIFY to notify the agent
* that a window's grants have actually been unmapped.
*/


Expand Down Expand Up @@ -305,11 +308,17 @@ struct msg_cursor {
} __attribute__((may_alias));

enum {
WINDOW_DUMP_TYPE_GRANT_REFS
WINDOW_DUMP_TYPE_GRANT_REFS,
WINDOW_DUMP_TYPE_GRANT_REFS_NOTIFY,
};

struct msg_window_dump_grant_refs {
uint32_t refs[0];
};

struct msg_window_dump_grant_refs_notify {
uint32_t evtchn_port;
uint32_t refs[];
};

#endif /* QUBES_GUI_PROTOCOL_H */