diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-26 02:03:37 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-26 02:03:37 -0400 |
| commit | 7ac4d61c5a06fda4c9d4a398fb49f400b2b76f15 (patch) | |
| tree | 3400e4fd6cba29bb6e4525d788509acd5803d3ee /kernel/gsp_rm_emulation.h | |
| parent | 70459a9782098fe409dcf49ec2496e568c826903 (diff) | |
| download | open-iov-7ac4d61c5a06fda4c9d4a398fb49f400b2b76f15.tar.gz open-iov-7ac4d61c5a06fda4c9d4a398fb49f400b2b76f15.zip | |
gsp_rm: cap event records between replies so the status ring cannot wrap
Diffstat (limited to 'kernel/gsp_rm_emulation.h')
| -rw-r--r-- | kernel/gsp_rm_emulation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/gsp_rm_emulation.h b/kernel/gsp_rm_emulation.h index 8b9612b..2938c92 100644 --- a/kernel/gsp_rm_emulation.h +++ b/kernel/gsp_rm_emulation.h @@ -49,6 +49,8 @@ struct gsp_emu_context; #define GSPRM_RPC_FUNC_UPDATE_BAR_PDE 70 #define GSPRM_RPC_EVENT_POST_EVENT 0x1003 #define GSPRM_MAX_EVENTS 128 +/* Max event records written between two replies (status-ring safety). */ +#define GSPRM_EVENT_BURST_MAX 24 #define GSPRM_RPC_EVENT_GSP_INIT_DONE 0x1001 /* rpc_set_guest_system_info_v03_00: version fields the driver reads back @@ -192,6 +194,8 @@ struct gsp_rm_emu { } events[GSPRM_MAX_EVENTS]; u32 events_n; u64 events_posted; + u64 events_dropped; + u32 event_burst; /* event records written since the last reply */ }; int gsp_rm_emu_init(struct nv_vgpu_device *vgpu, struct gsp_emu_context *ctx); |
