svn commit: r249353 - projects/bhyve_svm/sys/amd64/vmm/amd

Julian Elischer julian at freebsd.org
Mon Apr 15 03:27:44 UTC 2013


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 at 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 at 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



More information about the svn-src-projects mailing list