Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2013 11:27:33 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        Neel Natu <neel@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r249353 - projects/bhyve_svm/sys/amd64/vmm/amd
Message-ID:  <516B73A5.6000909@freebsd.org>
In-Reply-To: <201304110652.r3B6qJmP055359@svn.freebsd.org>
References:  <201304110652.r3B6qJmP055359@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/cdefs.h>
> +__FBSDID("$FreeBSD$");
> +
> +#include <sys/param.h>
> +#include <sys/systm.h>
> +#include <sys/cpuset.h>
> +
> +#include <machine/segments.h>
> +#include <machine/specialreg.h>
> +#include <machine/vmm.h>
> +
> +#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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?516B73A5.6000909>