File xen.trc-ioreq_server_destroy.patch of Package xen
From: Olaf Hering <olaf@aepfle.de>
Date: Thu, 15 Jun 2023 08:43:06 +0000
Subject: trc ioreq_server_destroy
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
xen/common/ioreq.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/xen/common/ioreq.c
+++ b/xen/common/ioreq.c
@@ -855,24 +855,29 @@ static int ioreq_server_create(struct domain *d, int bufioreq_handling,
xfree(s);
out:
TRACE_trc(TRC_IOREQ_ioreq_server_create);
domain_unpause(d);
return rc;
}
static int ioreq_server_destroy(struct domain *d, ioservid_t id)
{
struct ioreq_server *s;
int rc;
+ trc_ioreq_server_destroy_t trc = {
+ .d = d->domain_id,
+ .id = id,
+ };
+ TRACE_trc(TRC_IOREQ_ioreq_server_destroy);
rspin_lock(&d->ioreq_server.lock);
s = get_ioreq_server(d, id);
rc = -ENOENT;
if ( !s )
goto out;
rc = -EPERM;
if ( s->emulator != current->domain )
goto out;