hvm.c (07c2711fbf96d1b070b319b2d7f331430fc5ec2d) | hvm.c (b0663c33c2566aae3875bd3d22f42342aeddd0c0) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2008, 2013 Citrix Systems, Inc. 5 * Copyright (c) 2012 Spectra Logic Corporation 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 68 unchanged lines hidden (view full) --- 77static MALLOC_DEFINE(M_XENHVM, "xen_hvm", "Xen HVM PV Support"); 78 79/** 80 * If non-zero, the hypervisor has been configured to use a direct 81 * IDT event callback for interrupt injection. 82 */ 83int xen_vector_callback_enabled; 84 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2008, 2013 Citrix Systems, Inc. 5 * Copyright (c) 2012 Spectra Logic Corporation 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 68 unchanged lines hidden (view full) --- 77static MALLOC_DEFINE(M_XENHVM, "xen_hvm", "Xen HVM PV Support"); 78 79/** 80 * If non-zero, the hypervisor has been configured to use a direct 81 * IDT event callback for interrupt injection. 82 */ 83int xen_vector_callback_enabled; 84 |
85/** 86 * Start info flags. ATM this only used to store the initial domain flag for 87 * PVHv2, and it's always empty for HVM guests. 88 */ 89uint32_t hvm_start_flags; 90 |
|
85/*------------------------------- Per-CPU Data -------------------------------*/ 86DPCPU_DEFINE(struct vcpu_info, vcpu_local_info); 87DPCPU_DEFINE(struct vcpu_info *, vcpu_info); 88 89/*------------------ Hypervisor Access Shared Memory Regions -----------------*/ 90shared_info_t *HYPERVISOR_shared_info; 91 92/*------------------------------ Sysctl tunables -----------------------------*/ --- 371 unchanged lines hidden (view full) --- 464 465 return (hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN)); 466} 467 468static uint32_t 469hvm_get_start_flags(void) 470{ 471 | 91/*------------------------------- Per-CPU Data -------------------------------*/ 92DPCPU_DEFINE(struct vcpu_info, vcpu_local_info); 93DPCPU_DEFINE(struct vcpu_info *, vcpu_info); 94 95/*------------------ Hypervisor Access Shared Memory Regions -----------------*/ 96shared_info_t *HYPERVISOR_shared_info; 97 98/*------------------------------ Sysctl tunables -----------------------------*/ --- 371 unchanged lines hidden (view full) --- 470 471 return (hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN)); 472} 473 474static uint32_t 475hvm_get_start_flags(void) 476{ 477 |
472 return (0); | 478 return (hvm_start_flags); |
473} 474 475struct hypervisor_info hypervisor_info = { 476 .get_xenstore_mfn = hvm_get_xenstore_mfn, 477 .get_xenstore_evtchn = hvm_get_xenstore_evtchn, 478 .get_console_mfn = hvm_get_console_mfn, 479 .get_console_evtchn = hvm_get_console_evtchn, 480 .get_start_flags = hvm_get_start_flags, 481}; | 479} 480 481struct hypervisor_info hypervisor_info = { 482 .get_xenstore_mfn = hvm_get_xenstore_mfn, 483 .get_xenstore_evtchn = hvm_get_xenstore_evtchn, 484 .get_console_mfn = hvm_get_console_mfn, 485 .get_console_evtchn = hvm_get_console_evtchn, 486 .get_start_flags = hvm_get_start_flags, 487}; |