From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH 25/32] x86: ept assertions Date: Fri, 21 Apr 2017 11:57:10 +0200 Message-ID: <7b685614-c979-93bf-e506-206dd3f01648@redhat.com> References: <20170421005004.137260-1-dmatlack@google.com> <20170421005004.137260-26-dmatlack@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Peter Feiner To: David Matlack , kvm@vger.kernel.org Return-path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:35304 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S971276AbdDUJ5O (ORCPT ); Fri, 21 Apr 2017 05:57:14 -0400 Received: by mail-wr0-f193.google.com with SMTP id l44so11602692wrc.2 for ; Fri, 21 Apr 2017 02:57:14 -0700 (PDT) In-Reply-To: <20170421005004.137260-26-dmatlack@google.com> Sender: kvm-owner@vger.kernel.org List-ID: On 21/04/2017 02:49, David Matlack wrote: > From: Peter Feiner > > The upper bounds on level in set_ept_pte and install_ept_entry were > just wrong. There's nothing wrong with setting an EPT PTE at the > highest (512GiB) level. Right, I think the idea was that the biggest supported page size is 1GB, not 512, but setting up "super-huge" EPT pages can even be desirable for testing purposes. Paolo > Got rid of unused error return values and replaced them with > assertions. Nobody was checking the return values, so these functions > were silently failing. > > Change-Id: I4db1e1c2a0c050f5f69cce28df460b4c8ce10d1c > Signed-off-by: David Matlack