]>
git.proxmox.com Git - mirror_qemu.git/blob - include/qemu/reserved-region.h
2 * QEMU ReservedRegion helpers
4 * Copyright (c) 2023 Red Hat, Inc.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef QEMU_RESERVED_REGION_H
21 #define QEMU_RESERVED_REGION_H
23 #include "exec/memory.h"
26 * Insert a new region into a sorted list of reserved regions. In case
27 * there is overlap with existing regions, the new added region has
28 * higher priority and replaces the overlapped segment.
30 GList
*resv_region_list_insert(GList
*list
, ReservedRegion
*reg
);