[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH v1 1/1] x86/domctl: add gva_to_gfn command


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 21 Mar 2023 08:28:42 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Foz6/LL/2ZSWntFeiRZIfbGZLNrXiM170+k1o1TzyFc=; b=bgWd59WcXozFYX9Mk62xejHvt95bBvpsusNExqET4+6u2ofTMhnUNaKECI/femuABA4JJbinz6l3f9A6YaVD2FgLp2YxdH5aOMt+sRYAkzwc9qVrHztERNvUxbtNVHbOHjpKOiXGBFTFhxYrwhJK9LCWUKNR4OD+HJbTz1C64MW3ND5OT9ylzRHrzWn7OnYNvcaNuAhk2s2ZYXWKVJLqFAyH7V6F9NaRB0YyDpW/3Z48jgYmz0plb1QI+xa6QCBDH8TrY+umOaNcMj/JZz0tFbLuT3F82/oYsAFpmg5Os+ALb5k4ukT7Xex53sRnt99k9KUqW+5fh4KLEiM/SuCoaw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KhL964rdVXkjPbk2X7imMFYc/yzUAs8U4swnEn6K0NAMEy4wfZRuw0qg/OQaxkUGbLq3kIu5QlFET0smjrvcAyd31JJ1KmUqqZjCmeMDL9pUUq5HYUTO0a2q7wUmtJU7fVcD0GzaiyRvj/49Y0864ctdDiWYq0jWLYnDLOn3RKu+FGfOqk6u9lAzmTdAHY342xEupUO+OWDSeuQuqZUeZaLwe5kfH+ftgU2EYY7hf2hlFnPE7rz7W6delvAOJYC6kx2YTkUZOxUQkCfC3hDJppyht0YDKPK0OwGtUUaHQ9gLQwYMFAAL4/O8h+2777HS6qp6z09/PiSflwU61m2ynQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Dmitry Isaykin <isaikin-dmitry@xxxxxxxxx>, Ковалёв Сергей <valor@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 21 Mar 2023 07:28:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.03.2023 20:07, Andrew Cooper wrote:
> On 20/03/2023 4:32 pm, Ковалёв Сергей wrote:
>> gva_to_gfn command used for fast address translation in LibVMI project.
>> With such a command it is possible to perform address translation in
>> single call instead of series of queries to get every page table.
>>
>> Thanks to Dmitry Isaykin for involvement.
>>
>> Signed-off-by: Sergey Kovalev <valor@xxxxxxx>
> 
> I fully appreciate why you want this hypercall, and I've said several
> times that libvmi wants something better than it has, but...

But is a domctl really the right vehicle? While not strictly intended for
device models, a dm-op would seem more suitable to me. Considering you
already brought altp2m into play, it could also be a sub-op of HVMOP_altp2m.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.