From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Ian Jackson <ian.jackson@citrix.com>
Cc: xen-devel@lists.xenproject.org, Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH v2 11/11] tools/libvchan: libxenvchan_client_init: use ENOENT for no server
Date: Thu, 29 Nov 2018 01:01:32 +0100 [thread overview]
Message-ID: <20181129000132.GJ2580@mail-itl> (raw)
In-Reply-To: <23529.34225.339196.925833@mariner.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 2360 bytes --]
On Mon, Nov 12, 2018 at 01:52:49PM +0000, Ian Jackson wrote:
> Marek Marczykowski-Górecki writes ("Re: [Xen-devel] [PATCH v2 11/11] tools/libvchan: libxenvchan_client_init: use ENOENT for no server"):
> > Since xtl_log now accepts NULL, it should be fine. Thanks!
> > Reviewed-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
>
> Thanks.
>
> I am reluctant to commit this series without having been able to test
> it. There's the libvchan node.c and node-select.c but they seem a bit
> raw.
>
> Do you have a script or something to wrap them up ?
Not really. I've done a manual test, in two domains:
server: vchan-node2 server $xid2 /local/domain/$xid1/data/vchan/$xid2/1234
client: vchan-node2 client $xid1 /local/domain/$xid1/data/vchan/$xid2/1234
($xid1 and $xid2 are domains ID of server and client respectively)
When start it in this order, it works fine. But if I start the client
earlier, I get libxenvchan_*_init: Permission denied. That makes sense -
before server setup permissions on xenstore, the client can't read the
entries but not because of ENOENT, but EACCESS.
> Ideally I guess this would be run by osstest somehow.
I've tried... But stumbled across a bunch of problems:
1. Xen tools are not installed in guest
2. vchan-node* are not installed at all
3. I need two domUs for this (or maybe dom0 and domU?) and processes
running in parallel (this is where my perl ends).
I gave up after point 2. Do you want patches for point 1 and 2 anyway?
New ts-guest-xen-install assume the build for dom0 is fine for domU too
(which is true for Debian)...
As for the second point, I've installed it into $(bindir) as a quick
hack, but not sure if this is the best option.
I'm not jet sure how to put all those pieces together. I guess I need to
edit sg-run-job, but that's jet another language...
BTW vchan doesn't like loopback connections (within the same domain), as
gnttab doesn't like it. Is it something fixable, or is it working as
designed? If the latter, I think at least kernel shouldn't panic in that
case... More details:
https://github.com/QubesOS/qubes-issues/issues/951
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 157 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-11-29 0:01 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-08 17:07 [PATCH v2 00/11] xentoollog, libvchan: Minor improvements Ian Jackson
2018-11-08 17:07 ` [PATCH v2 01/11] tools/libs/toollog: Provide a default logger Ian Jackson
2018-11-08 17:24 ` Andrew Cooper
2018-11-08 17:28 ` Ian Jackson
2018-11-08 17:31 ` Andrew Cooper
2018-11-08 17:40 ` Andrew Cooper
2018-11-09 11:11 ` Ian Jackson
2018-11-08 17:07 ` [PATCH v2 02/11] tools/libs/toollog: Use the " Ian Jackson
2018-11-10 8:55 ` Marek Marczykowski-Górecki
2018-11-15 14:43 ` Wei Liu
2018-11-08 17:07 ` [PATCH v2 03/11] tools/libs/*: Rely on " Ian Jackson
2018-11-10 8:57 ` Marek Marczykowski-Górecki
2018-11-15 14:44 ` Wei Liu
2018-11-08 17:07 ` [PATCH v2 04/11] tools/libvchan: Initialise xs_transaction_t to XBT_NULL, not NULL Ian Jackson
2018-11-08 17:07 ` [PATCH v2 05/11] tools/xenstore: Document that xs_close(0) is OK Ian Jackson
2018-11-08 17:08 ` [PATCH v2 06/11] tools/libvchan: init_xs_srv: Simplify error handling (1) Ian Jackson
2018-11-08 17:08 ` [PATCH v2 07/11] tools/libvchan: init_xs_srv: Simplify error handling (2) Ian Jackson
2018-11-08 17:08 ` [PATCH v2 08/11] tools/libvchan: init_xs_srv: Turn xs retry from goto into for (; ; ) Ian Jackson
2018-11-08 17:08 ` [PATCH v2 09/11] tools/libvchan: Add xentoollog to direct dependencies Ian Jackson
2018-11-08 17:08 ` [PATCH v2 10/11] tools/libvchan: libxenvchan_*_init: Promise an errno Ian Jackson
2018-11-08 17:08 ` [PATCH v2 11/11] tools/libvchan: libxenvchan_client_init: use ENOENT for no server Ian Jackson
2018-11-10 9:06 ` Marek Marczykowski-Górecki
2018-11-12 13:52 ` Ian Jackson
2018-11-29 0:01 ` Marek Marczykowski-Górecki [this message]
2018-11-15 14:44 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181129000132.GJ2580@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=ian.jackson@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.