Virtio.h revision ee4d840f54fd2dcea8a73b1b86d5ec0db370b05d
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Virtio.h - Virtio Declarations
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Copyright (C) 2009 Sun Microsystems, Inc.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * available from http://www.virtualbox.org. This file is free software;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * you can redistribute it and/or modify it under the terms of the GNU
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * General Public License (GPL) as published by the Free Software
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * additional information or have any questions.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define VIRTIO_RELOCATE(p, o) *(RTHCUINTPTR *)&p += o
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * The saved state version is changed if either common or any of specific
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * parts are changed. That is, it is perfectly possible that the version
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * of saved vnet state will increase as a result of change in vblk structure
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * for example.
struct VRingUsedElem
struct VRingUsed
struct VRing
struct VQueue
#ifdef IN_RING3
struct VQueueElemSeg
void *pv;
struct VQueueElem
enum VirtioDeviceType
VIRTIO_NET_ID = 0,
struct VPCIState_st
#if defined(VBOX_WITH_STATISTICS)
void *pvUser,
unsigned cb,
void *pvUser,
unsigned cb,
const char *pcszName);
#define VPCI_CS
#ifdef VPCI_CS
return rc;
return VINF_SUCCESS;
#ifdef VPCI_CS
return tmp;