From owner-svn-src-projects@FreeBSD.ORG Mon Apr 15 04:16:13 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B5F05B1E; Mon, 15 Apr 2013 04:16:13 +0000 (UTC) (envelope-from neel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A7E4681; Mon, 15 Apr 2013 04:16:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3F4GDRG062968; Mon, 15 Apr 2013 04:16:13 GMT (envelope-from neel@svn.freebsd.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3F4GDOQ062967; Mon, 15 Apr 2013 04:16:13 GMT (envelope-from neel@svn.freebsd.org) Message-Id: <201304150416.r3F4GDOQ062967@svn.freebsd.org> From: Neel Natu Date: Mon, 15 Apr 2013 04:16:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r249493 - projects/bhyve_svm/sys/amd64/vmm/amd X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Apr 2013 04:16:13 -0000 Author: neel Date: Mon Apr 15 04:16:12 2013 New Revision: 249493 URL: http://svnweb.freebsd.org/changeset/base/249493 Log: Add a Cliff Notes version of the purpose and contents of the VMCB. Requested by: julian Modified: projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c Modified: projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c ============================================================================== --- projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c Mon Apr 15 03:09:59 2013 (r249492) +++ projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c Mon Apr 15 04:16:12 2013 (r249493) @@ -40,6 +40,16 @@ __FBSDID("$FreeBSD$"); #include "vmcb.h" /* + * The VMCB aka Virtual Machine Control Block is a 4KB aligned page + * in memory that describes the virtual machine. + * + * The VMCB contains: + * - instructions or events in the guest to intercept + * - control bits that modify execution environment of the guest + * - guest processor state (e.g. general purpose registers) + */ + +/* * Initialize SVM h/w context i.e. the VMCB control and saved state areas. */ int