aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_core_x86.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* libxc: Squash xc_e820.h (and delete) into xenctrl.hKonrad Rzeszutek Wilk2011-06-281-1/+1
| | | | | | | | | | | | | | .. as there is no need to keep that internal header file anymore. We export two functions xc_domain_[set|get]_memory_map which depend on the 'struct e820entry' defined in 'xc_e820.h'. We move the contents of the 'xc_e820.h' to the 'xenctrl.h' fixing compiler errors when applications outside the Xen tree are trying to compile against the libraries. Tested-by: Daniel Castro <evil.dani@gmail.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: add xc_domain_maximum_gpfn to wrap XENMEM_maximum_gpfnIan Campbell2010-10-181-1/+1
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* # HG changeset patchIan Campbell2010-08-241-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | # User Ian Campbell <ian.campbell@citrix.com> # Date 1282671421 -3600 # Node ID d1dd29a470ef1b9d2c77478a123326036dfe90bb # Parent d7a4adad9c328decbd384d87b23001aea8951b86 tools/libxc, tools/libelf: Relicense under LGPL v2.1 Relicense these two libraries under LGPL v2.1 only except where individual files already included the "or later" provision. Copyright holders have been contacted by Stephen Spector and have all agreed this change. Removed tools/libxc/ia64/aclinux.h since it appeared to be unused. There is a separate, more up to date, copy in xen/include/acpi/platform/aclinux.h which does appear to be used. Clarify the license of MiniOS privcmd.h under the same terms as other tools/include/xen-sys headers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stephen Spector <stephen.spector@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-13/+13
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: create a domain_info_context structure to store guest_width and ↵Keir Fraser2009-12-011-13/+17
| | | | | | | | p2m_size for macros. Macro now refers to guest_width and p2m_size through a dinfo pointer. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxc: Export xc_core_arch_map_p2m_writable()Keir Fraser2009-06-011-5/+23
| | | | | | | | | This patch firstly change the xc_core_arch_map_p2m() to map the p2m to be writable, then it export this function. One notice for this patch is, caller should make sure change the p2m in flight will not cause trouble. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* libxc: Support cross-bitness guest when core-dumpingKeir Fraser2009-01-151-8/+71
| | | | | | | | | | | This patch allows core-dumping to work on a cross-bit host/guest configuration, whereas previously that was not supported. It supports both PV and FV guests. The core file format generated by the host, needs to match that of the guest, so an alignment issue is addressed, along with the p2m frame list handling being done according to the guest size. Signed-off-by: Bruce Rogers <brogers@novell.com>
* libxc: Minor clean up of xc_core, and fix for -fstrict-overflow.Keir Fraser2007-11-221-2/+2
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [TOOLS] Make xc_domain_{save, restore} understand compat guestsTim Deegan2007-09-191-0/+3
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Introduce xc_core_arch_gpfn_may_present() hook.kfraser@localhost.localdomain2007-08-301-2/+2
| | | | | | | On ia64 trying to map a foreign domain page which isn't allocated cause annoying warning message. xm dump-core results in too many warnings. With this hook, ia64 dump-core can suprress warning. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Fix fully-virtualized core dumps for 32-bit guests.kfraser@localhost.localdomain2007-06-121-1/+1
| | | | Signed-off-by: Chris Lalancette <clalance@redhat.com>
* xen: Fix maximum_gpfn() hypercall to always return max_gpfn not nr_gpfns.Keir Fraser2007-04-251-4/+4
| | | | | | Fix callers to convert this to nr_gpfns (aka p2m_size) if that's what they actually need. Signed-off-by: Keir Fraser <keir@xensource.com>
* Some save/restore cleanups.Steven Hand2007-04-021-6/+6
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* hvm: Do not save/restore shared_info gpfn location.kfraser@localhost.localdomain2007-03-191-13/+11
| | | | | | | | | | | | | | | | Instead of kludging a max_gpfn estimate in shared_info, add a new XENMEM command to discover the actual maximum gpfn value as known by the shadow code. This needs to be more robust when we support HVM ballooning in future anyway. One interesting point is that max_gpfn may be close to 4GB even for small-memory HVM guests since for example SVGA LFB is mapped into the I/O hole. We may need to special case the I/O hole somehow, or provide some finer-grained way to find out which parts of the GPFN space are actually used (e.g., get Xen to fill in a bitmap with 1 bit per 1024 pages, or similar). Signed-off-by: Keir Fraser <keir@xensource.com>
* Xen coredump format: ELF formatified with note section.Keir Fraser2007-02-241-0/+136
added PFN-GMFN table for non-auto translated physmap added PFN table for auto translated physmap. HVM domain support. IA64 support Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Use the guest's own p2m table instead of xc_get_pfn_list(), which cannot handle PFNs with no MFN. Dump a zeroed page for PFNs with no MFN. Clearly deprecate xc_get_pfn_list(). Do not include a P2M table with HVM domains. Refuse to dump HVM until we can map its pages with PFNs. Signed-off-by: John Levon <john.levon@sun.com>