From: Dan Magenheimer Subject: [RFO] Action when bad address passed in hypercall by guest Date: Thu, 19 Mar 2009 10:01:03 -0700 (PDT) Message-ID: <41ebb5cf-0e6e-49e0-9246-79f3491e49b4@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org Request for opinions: In tmem, for most hypercalls the (PV only) guest passes a gfn (guest machine frame number). What is the appropriate action if the gfn is "bad" (specifically fails the p2m_ram_rw test from gfn_to_mfn)? A) Ignore it (but return an error from the hypercall) B) __domain_crash() as the guest is surely broken or malicious C) ??? So far I haven't seen this, but the existing code I have for this case -- ASSERT(0) -- is certainly wrong ;-) Thanks, Dan