|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] tools/xenstore: remove unused cruft from xenstored_domain.c
commit fe733fa0998e280b400904aaf9f624c67a311414
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Tue Dec 15 17:35:41 2020 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu Dec 17 15:04:43 2020 +0000
tools/xenstore: remove unused cruft from xenstored_domain.c
domain->remote_port and restore_existing_connections() are useless and
can be removed.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
---
tools/xenstore/xenstored_core.c | 3 ---
tools/xenstore/xenstored_domain.c | 11 -----------
tools/xenstore/xenstored_domain.h | 3 ---
3 files changed, 17 deletions(-)
diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
index ab1c7835b8..50986f8b29 100644
--- a/tools/xenstore/xenstored_core.c
+++ b/tools/xenstore/xenstored_core.c
@@ -2087,9 +2087,6 @@ int main(int argc, char *argv[])
if (!no_domain_init)
domain_init();
- /* Restore existing connections. */
- restore_existing_connections();
-
if (outputpid) {
printf("%ld\n", (long)getpid());
fflush(stdout);
diff --git a/tools/xenstore/xenstored_domain.c
b/tools/xenstore/xenstored_domain.c
index 7d348d57f3..ed8e83b06b 100644
--- a/tools/xenstore/xenstored_domain.c
+++ b/tools/xenstore/xenstored_domain.c
@@ -54,10 +54,6 @@ struct domain
/* Event channel port */
evtchn_port_t port;
- /* The remote end of the event channel, used only to validate
- repeated domain introductions. */
- evtchn_port_t remote_port;
-
/* Domain path in store. */
char *path;
@@ -382,7 +378,6 @@ static int new_domain(struct domain *domain, int port)
domain->conn->domain = domain;
domain->conn->id = domain->domid;
- domain->remote_port = port;
domain->nbentry = 0;
domain->nbwatch = 0;
@@ -470,7 +465,6 @@ int do_introduce(struct connection *conn, struct
buffered_data *in)
xenevtchn_unbind(xce_handle, domain->port);
rc = xenevtchn_bind_interdomain(xce_handle, domid, port);
domain->port = (rc == -1) ? 0 : rc;
- domain->remote_port = port;
}
domain_conn_reset(domain);
@@ -636,11 +630,6 @@ const char *get_implicit_path(const struct connection
*conn)
return conn->domain->path;
}
-/* Restore existing connections. */
-void restore_existing_connections(void)
-{
-}
-
static int set_dom_perms_default(struct node_perms *perms)
{
perms->num = 1;
diff --git a/tools/xenstore/xenstored_domain.h
b/tools/xenstore/xenstored_domain.h
index 5e00087206..66e0a12654 100644
--- a/tools/xenstore/xenstored_domain.h
+++ b/tools/xenstore/xenstored_domain.h
@@ -47,9 +47,6 @@ void domain_init(void);
/* Returns the implicit path of a connection (only domains have this) */
const char *get_implicit_path(const struct connection *conn);
-/* Read existing connection information from store. */
-void restore_existing_connections(void);
-
/* Can connection attached to domain read/write. */
bool domain_can_read(struct connection *conn);
bool domain_can_write(struct connection *conn);
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |