[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal for physical address based hypercalls
- To: Juergen Gross <jgross@xxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 29 Sep 2022 14:58:45 +0200
- 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=PAoIfGkUUecPBnAXkD2bFSWzkQhWxhdnL3EJzl3/6a0=; b=XVEyWZPeosp4SepSW+6ow3bfMjJIQp8WXkG9RklUP5vjNchFICwJ5RprtQTQNDwGnZ63TM20S8s9ShKYDfqINUbMXl5niW9wbgcOKyNertV+ZGdaoH3ANwElpoCsIB/W8EHRFd6vTLi1Du1y6vykU3UDjxcEe8KK29rhC56vkVAHa9+6itMUIxywRw3m3aArFAYHZGye4eg8Dhbbt9Bh4BDq5nD08yzh4NnLs7OuEVD5hWk4QPS/QTmQMs53LTtMEVPPu97BgS5Hneg2mYlIclSvKGOCHjqETDnsWOnzJZTDCrvh67NirfMmWrldOAvg4iexifx+vGiFVQTT7ue+Nw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UTeN9qCubmt9GBZ7j08i7yj6tabaeSqtFWVV+LTWziTw5ykX/5CODZQIa/NXdzBkNAAjjNeNLCaKGQQCd3t7DNBklpV3tmukj7Xy36eUqSu405PlqvB8tVl9rr5S5NSPzF+lEFRA8NkvVOhT/XzeN8WHcn9VA5GV38H291FNKhWZJozrFbP9qxaNaJWb7CzyCt3JyL04RooaYWl+rS3GubGm7a5Dny1rzRHmEzmiHDf+238WgCwIY+6mKi3oiUvnSqKD9vWamJmGiPZmaqsrVzAJ6zGjyLGqqmnLGoleDT9ZJKeLKVrbfILNfQ+k5TtCZnr2hbPGQ7+xOH+QIO+P2w==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Delivery-date: Thu, 29 Sep 2022 12:58:54 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 29.09.2022 14:26, Juergen Gross wrote:
> On 29.09.22 13:32, Jan Beulich wrote:
>> Finally - in how far are we concerned of PV guests using linear
>> addresses for hypercall buffers? I ask because I don't think the model
>> lends itself to use also for the PV guest interfaces.
>
> Good question.
>
> As long as we support PV guests we can't drop support for linear addresses
> IMO. So the question is whether we are fine with PV guests not using the
> pre-registered buffers, or if we want to introduce an interface for PV
> guests using GFNs instead of MFNs.
GFN == MFN for PV, and using PFN space (being entirely controlled by the
guest) doesn't look attractive either. Plus any form of translation we'd
need to do for PV would involve getting and putting page references (for
writes also type references), along the lines of what is already
happening for HVM. Since "put" may involve freeing a page, which in turn
require locks to be taken, we'd need to carefully check that no such
translation can occur from an inappropriate call chain.
Jan
|