xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Fedorov <d.fedorov@tabit.pro>
To: xen-devel@lists.xenproject.org
Subject: [PATCH] libxl: User defined max_maptrack_frames in a stub domain
Date: Mon, 14 Sep 2020 17:50:32 +0300	[thread overview]
Message-ID: <602469f5-1028-8f36-7195-f102b6d2af0c@tabit.pro> (raw)

Hi,

Implementing qrexec+usbip+qemu in Linux-based stub domain leads me to
an issue where a device model stub domain doesn't have maptrack entries.

Would it be possible to apply a user defined max_maptrack_frames value 
to dm_config in the same way as for max_grant_frames?

Signed-off-by: Dmitry Fedorov <d.fedorov@tabit.pro>
---
  tools/libxl/libxl_dm.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index f2dc5696b9..f044f2566c 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -2292,7 +2292,7 @@ void libxl__spawn_stub_dm(libxl__egc *egc, 
libxl__stub_dm_spawn_state *sdss)
      dm_config->b_info.target_memkb = dm_config->b_info.max_memkb;

      dm_config->b_info.max_grant_frames = 
guest_config->b_info.max_grant_frames;
-    dm_config->b_info.max_maptrack_frames = 0;
+    dm_config->b_info.max_maptrack_frames = 
guest_config->b_info.max_maptrack_frames;

      dm_config->b_info.u.pv.features = "";

--
2.26.2



             reply	other threads:[~2020-09-14 15:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 14:50 Dmitry Fedorov [this message]
2020-09-14 15:27 ` [PATCH] libxl: User defined max_maptrack_frames in a stub domain Andrew Cooper
2020-09-22 13:30   ` Wei Liu
2021-04-10 15:55     ` Jason Andryuk
2021-04-13 14:23       ` Andrew Cooper
2021-04-13 16:06         ` Jason Andryuk

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=602469f5-1028-8f36-7195-f102b6d2af0c@tabit.pro \
    --to=d.fedorov@tabit.pro \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).