| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: obtain a list of granttable PFNs from toolstack
 
To: Jan Beulich <jbeulich@xxxxxxxx>From: Olaf Hering <olaf@xxxxxxxxx>Date: Wed, 28 Apr 2021 12:17:01 +0200Arc-authentication-results: i=1; strato.com;    dkim=noneArc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1619605036;    s=strato-dkim-0002; d=strato.com;    h=References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Cc:Date:    From:Subject:Sender;    bh=N5nQUN5MWj1mH/UBfQFfLyS6eJoSa6tcFa9x8CMfRYE=;    b=BzeNBJZRFMYHiQLWQ9Yw2jpRIdxvX0fzA+sN1I76ujVtZKVotZ19BK9DpiyI6K8yaq    yqdbtUEgW3N3a42kaYAruvX1G7K5zHpi2lzlHagcOc+Z5qJ3ARvw3fOEd6ySIuWwE1JI    frm8N0zr36+i94wpkMEd45/M1g4yJUE0lHcIUdl0FjDVVT4Oyzhn+7Rhc5solDBh7yw4    l5ov2/l+irfoPGeHb45fbllfCNjGIhRKGReTzINhTQA7i0Q6+zCyDIyYvkKKKzppqfVM    WHnAjHbG4PIfo7u+lSxa1sAk5m1+i0kMDYH3t7UBtXjgSop0FqmTtj7zc3mrQzVZSmQF    Z7rg==Arc-seal: i=1; a=rsa-sha256; t=1619605036; cv=none;    d=strato.com; s=strato-dkim-0002;    b=XNFyyNzH2irl+uH57pno4GXiTsiAvEVqH6/GzXsTcI+oV+s32F5KCEBkgpqVFoW8Xp    Mwx5kQshkq1B4HhkSLUcrauGMVkPpKCXjcALYbgjDqoJlLQvmE8My7lb7+hVEKhC6MOj    QtPV41ku62yCihDKWvLJzDNJqPLXkk9prsEUfkVP0tn9ZQkXpz8wRCCYpEu7qlh0zBao    HWd3nI+ehOvBbNqqpe8HjwEiVi2IH0NNXEZyeMrRI6zAfp8U13W5TX4PzdrcWWvjGUZ5    gQFdCWAbTfXRzIhaPtwfwt+ge7R0qUwcU8O3QjRi20ZkkabYg42msGAl3nPpU57IbOXi    9sGQ==Authentication-results: strato.com;    dkim=noneCc: xen-devel@xxxxxxxxxxxxxxxxxxxxDelivery-date: Wed, 28 Apr 2021 10:17:23 +0000List-id: Xen developer discussion <xen-devel.lists.xenproject.org> 
 Am Wed, 28 Apr 2021 11:49:59 +0200
schrieb Jan Beulich <jbeulich@xxxxxxxx>:
> On 28.04.2021 09:50, Olaf Hering wrote:
> > Is there an API to get a list of PFNs which are currently being active in 
> > the grant table for a given domid?  
> Do you really mean PFNs?
The save/restore code uses the term "pfn" to refer to page indices from the 
domU point of view. Since I usually just follow the HVM code paths, the term 
might indeed be incorrect for PV.
> Also, what do you mean by "active in the grant table"?
I'm not familiar with grants. My guess is, a domU pro-actively shares some of 
its pages with someone else. These shared pages have to be tracked somewhere, 
and I guess Xen has to establish proper access permissions for such pages. I 
guess the "grant table" is the place where things are collected.
Looking through xen/grant_table.h, I see no API. But that might be the wrong 
place anyway.
Olaf
 Attachment:
pgphwiBxPJqG0.pgpDescription: Digitale Signatur von OpenPGP
 
 |