From owner-svn-src-projects@FreeBSD.ORG Mon Apr 15 03:27:44 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 20F30300; Mon, 15 Apr 2013 03:27:44 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id D266DEA1; Mon, 15 Apr 2013 03:27:40 +0000 (UTC) Received: from jre-mbp.elischer.org (ppp121-45-237-17.lns20.per1.internode.on.net [121.45.237.17]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id r3F3RUC2013163 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 14 Apr 2013 20:27:33 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <516B73A5.6000909@freebsd.org> Date: Mon, 15 Apr 2013 11:27:33 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Neel Natu Subject: Re: svn commit: r249353 - projects/bhyve_svm/sys/amd64/vmm/amd References: <201304110652.r3B6qJmP055359@svn.freebsd.org> In-Reply-To: <201304110652.r3B6qJmP055359@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org 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 03:27:44 -0000 On 4/11/13 2:52 PM, Neel Natu wrote: > Author: neel > Date: Thu Apr 11 06:52:19 2013 > New Revision: 249353 > URL: http://svnweb.freebsd.org/changeset/base/249353 > > Log: > Provide functions to manipulate the guest state in the VMCB. > > Submitted by: Anish Gupta (akgupt3@gmail.com) > > Added: > projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c (contents, props changed) > Modified: > projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.h > > Added: projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ projects/bhyve_svm/sys/amd64/vmm/amd/vmcb.c Thu Apr 11 06:52:19 2013 (r249353) > @@ -0,0 +1,383 @@ > +/*- > + * Copyright (c) 2013 Anish Gupta (akgupt3@gmail.com) > + * All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * > + * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND > + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > + * ARE DISCLAIMED. IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE > + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > + * SUCH DAMAGE. > + * > + * $FreeBSD$ > + */ > + > +#include > +__FBSDID("$FreeBSD$"); > + > +#include > +#include > +#include > + > +#include > +#include > +#include > + > +#include "vmcb.h" about here there should be a comment explianing what a VMCB is and giving background information.. This is true for a lot of files being added these days.. I just picked on this one randomly. Julian > + > +/* > + * Initialize SVM h/w context i.e. the VMCB control and saved state areas. > + */ > +int