⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vmx_platform.h

📁 xen虚拟机源代码安装包
💻 H
字号:
/* * vmx_platform.h: VMX platform support * Copyright (c) 2004, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place - Suite 330, Boston, MA 02111-1307 USA. * */#ifndef __ASM_IA64_VMX_PLATFORM_H__#define __ASM_IA64_VMX_PLATFORM_H__#include <public/xen.h>#include <public/hvm/params.h>#include <asm/viosapic.h>#include <asm/hvm/vacpi.h>struct vmx_ioreq_page {    spinlock_t          lock;    struct page_info   *page;    void               *va;};int vmx_set_ioreq_page(struct domain *d,                       struct vmx_ioreq_page *iorp, unsigned long gmfn);typedef struct virtual_platform_def {    struct vmx_ioreq_page       ioreq;    struct vmx_ioreq_page       buf_ioreq;    struct vmx_ioreq_page       buf_pioreq;    unsigned long               pib_base;    unsigned long               params[HVM_NR_PARAMS];    /* One IOSAPIC now... */    struct viosapic             viosapic;    struct vacpi                vacpi;} vir_plat_t;static inline int __fls(uint32_t word){    long double d = word;    long exp;    __asm__ __volatile__ ("getf.exp %0=%1" : "=r"(exp) : "f"(d));    return word ? (exp - 0xffff) : -1;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -