aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
* [HVM] Reworked interrupt distribution logic.kfraser@localhost.localdomain2006-11-212-7/+81
| | | | | | | | | | | | | TODO: 1. Fix IO-APIC ID to not conflict with LAPIC IDS. 2. Fix i8259 device model (seems to work already though!). 3. Add INTSRC overrides in MPBIOS and ACPI tables so that PCI legacy IRQ routing always ends up at an IO-APIC input with level trigger. Restricting link routing to {5,6,10,11} and setting overrides for all four of those would work. Signed-off-by: Keir Fraser <keir@xensource.com>
* [LIBXC] Replace API uses of size_t with ulong.kfraser@localhost.localdomain2006-11-173-7/+6
| | | | | | | Avoids possibility of different FILE_OFFSET_BITS defn. across the interface. Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64] Fix build breakage.kaf24@firebug.cl.cam.ac.uk2006-11-161-1/+0
| | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* [XEN] Various selector and callback cleanups to simplify the toolskfraser@localhost.localdomain2006-11-152-49/+3
| | | | | | and assumptions about callback selector values on x86/32. Original patch from Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [BUILDER] Simplify vcpu context initialisation by pre-zeroingkfraser@localhost.localdomain2006-11-151-28/+3
| | | | | the context structure. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [LIBXC] Clarify error messages to talk about allocation 'extents'kfraser@localhost.localdomain2006-11-151-3/+3
| | | | | rather than 'pages'. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
* [IA64] fix VTI bootawilliam@xenbuild.aw2006-11-101-1/+15
| | | | | | | | | workaroud patch for memory initial interface Signed-off-by: zhang xiantao <xiantao.zhang@intel.com> Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* [IA64] IA64 counter part of the change 12204:e6fdb32b786c of xen-unstable.hgawilliam@xenbuild.aw2006-11-101-43/+31
| | | | | | | | | Remove xc_ia64_get_pfn_list() from setup_guest() in xc_linux_build.c, use xc_domain_populate_physmap() and xc_domain_translate_gpfn_list(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] fix ia64 linux domain builder broken by 12009:4a320d26fc24 of ↵awilliam@xenbuild.aw2006-11-101-16/+32
| | | | | | | | xen-unstable.hg. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [HVM] Clarify the HVM e820 map. Also make it rather morekfraser@localhost.localdomain2006-11-091-6/+29
| | | | | | conservative wrt the ACPI region. hvmloader should fix up by freeing unused memory in the range 0xE0000-0x100000. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Reserve 2 pages for ACPI tables in e820.kaf24@firebug.cl.cam.ac.uk2006-11-081-1/+1
| | | | | | This is required when appending SSDTs to the core ACPI data. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Replace shared-memory PIC state with a set-irq-level hypercall.kfraser@localhost.localdomain2006-11-072-0/+30
| | | | | | | | | | | | | | This simplifies the IRQ logic significantly and avoids the bogus hvm_pic_assist() on domain resume path. There is more work to be done here. At least: 1. set-irq-level should really be set-interrupt-wire-level. Wire state needs to be distinguished from PIC (in particular, PIC IRR) state. 2. Hypercalls can be batched in qemu and pushed down in one multicall. Signed-off-by: Keir Fraser <keir@xensource.com>
* [LIBXC] Fix memory alloc/dealloc routines to return error properly.kfraser@localhost.localdomain2006-11-072-13/+4
| | | | | Remove unnecessary decrease_reservation() from hvm builder. Signed-off-by: Keir Fraser <keir@xensource.com>
* [BLKTAP] ia64 supportkfraser@localhost.localdomain2006-11-071-4/+3
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [HVM] Move VMX VMCS initialisation to vcpu-initialisation time.kfraser@localhost.localdomain2006-11-061-41/+10
| | | | | | Simplify context initialisation (e.g., no need for selectors to be given dummy non-zero values). Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()kaf24@localhost.localdomain2006-11-054-12/+4
| | | | | | | | and extra code in hvm_vcpu_initialise(). Remove 'apic' config option -- HVM CPUs will always have an APIC (which should be set up in virtual wire mode for backward compatibility, just as in a real system). Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Remove VGCF_hvm_guest, replace with XEN_DOMINF_hvm_guest.kfraser@localhost.localdomain2006-11-037-51/+49
| | | | | | Rename DOMFLAGS_* to XEN_DOMINF_*. Clean up tools to deal with flags changes. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Clean up VCPU initialisation in Xen. No longerkfraser@localhost.localdomain2006-11-021-67/+36
| | | | | | parse HVM e820 tables in Xen (add some extra HVM parameters as a cleaner alternative). Lots of code removal. Signed-off-by: Keir Fraser <keir@xensource.com>
* [TOOLS] Paravirt guests have their memory allocated in thekfraser@localhost.localdomain2006-11-022-75/+45
| | | | | | | | libxenguest builder function. Again, PPC and IA64 will need to do some fixing up. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Move shadow initialisation into domain-creation hypercall.kfraser@localhost.localdomain2006-11-011-93/+16
| | | | | | | | | | | Allocate HVM guest memory in the libxc builder function rather than in xend. Clean up fall out from these changes. Todo: Fix ia64. Move PV builder to same model (it should allocate the memory rather than xend doing so -- then it can avoid using xc_get_pfn_list()). Signed-off-by: Keir Fraser <keir@xensource.com>
* Print errno for each of the "Error when writing to state file" messages.Ewan Mellor2006-11-011-9/+15
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [HVM] HVM is now a flag parameter to domain-creation hypercall.kfraser@localhost.localdomain2006-11-013-0/+18
| | | | | | This cleans up HVM start-of-day in Xen and means that the HVM status of a domain is maintained from cradle to grave. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Use correct types for guest physical addressesTim Deegan2006-10-311-1/+0
| | | | | | Guest physical addresses are not guaranteed to fit in either a pointer or an unsigned long int; use paddr_t for them. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [TOOLS] Uncompress and allocate memory for gzipped kernel and initrd images onIan Campbell2006-10-264-81/+99
| | | | | | | | | the fly. We cannot rely on the length contained in the gzip trailer to determine the length of the decompressed data because images have been observed which have trailing junk. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [LIBXC][IA64] fix build warningawilliam@xenbuild.aw2006-10-252-2/+2
| | | | | | | | With warnings becoming errors, this fixes the libxc build on ia64 Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-256-24/+12
|\
| * [IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Currentkfraser@localhost.localdomain2006-10-251-3/+7
| | | | | | | | | | | | | | implementation can accelerate Windows guest's dense IO operations at boot time. Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
| * [LIBXC] Add -Wmissing-prototypes to CFLAGS, fix warnings resulting from that.kfraser@localhost.localdomain2006-10-255-21/+5
| | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-2412-84/+118
|\|
| * [SOLARIS] Don't mlock() hypercall buffers.kfraser@localhost.localdomain2006-10-2312-84/+118
| | | | | | | | | | | | | | On solaris mlock requires a page aligned address and mlock doesn't ensure the pages won't minor page fault. Signed-off-by: Mark Johnson <mark.johnson@sun.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-2214-238/+432
|\|
| * [HVM] E820 table misreports the ACPI NVS/Data information whichkfraser@localhost.localdomain2006-10-181-29/+6
| | | | | | | | | | | | | | triggers a complaint from Windows HCT. Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Winston Wang <winston.l.wang@intel.com>
| * xc core structures are not Linux specific.kfraser@localhost.localdomain2006-10-181-5/+5
| | | | | | | | Signed-off-by: John Levon <john.levon@sun.com>
| * Fix multiple inclusion when building libxenguest.kfraser@localhost.localdomain2006-10-171-1/+1
| | | | | | | | Signed-off-by: John Levon <john.levon@sun.com>
| * [SOLARIS] Create kernel-interface implementations for libxc and xenstored.kfraser@localhost.localdomain2006-10-172-0/+236
| | | | | | | | | | | | Additionally, on Solaris, tell the kernel when xenstored is running. Signed-off-by: John Levon <john.levon@sun.com>
| * [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.kfraser@localhost.localdomain2006-10-171-0/+1
| | | | | | | | Signed-off-by: John Levon <john.levon@sun.com>
| * Remove ERR() macro from libxc. Use ERROR/PERROR as appropriate.kfraser@localhost.localdomain2006-10-175-158/+153
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Remove non-existent xc_ptrace_core() from xenctrl.h.kfraser@localhost.localdomain2006-10-171-7/+2
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [SOLARIS] Don't build ptrace code on Solaris.kfraser@localhost.localdomain2006-10-177-34/+30
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to usekfraser@localhost.localdomain2006-10-171-2/+2
| | | | | | | | | | | | the correct flags, and link against libsocket where necessary. Signed-off-by: John Levon <john.levon@sun.com>
| * Clean up duplication of 'install' macros in the Makefiles.kfraser@localhost.localdomain2006-10-171-8/+2
| | | | | | | | Signed-off-by: John Levon <john.levon@sun.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-141-1/+1
|\|
| * Revert 11728:30f13007be. Breaks Solaris guests.kaf24@localhost.localdomain2006-10-101-8/+12
| | | | | | | | | | Will need a new method for handling padded gzip files. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Correct check for extended-cr3 support in __xen_guest fallback code.Ian Campbell2006-10-101-1/+1
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [XEND] No need to decompress the initrd when building a domain.kfraser@localhost.localdomain2006-10-091-12/+8
| | | | | | | | | | | | | | | | | | The guest OS should be capable of parsing an image file in whatever format was produced by that OS's tools. Furthermore, we have seen initrd images with trailing garbage. This causes us to calculate the wrong size for the uncompressed data and hence fail to build the guest. Signed-off-by: Keir Fraser <keir@xensource.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-051-6/+3
|\|
| * [LIBXC] Fix ptrace memory-mapping code to map pagetables read-only.kaf24@firebug.cl.cam.ac.uk2006-10-051-6/+3
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] Use xencomm for hypercalls.awilliam@xenbuild.aw2006-10-022-0/+6
|/ | | | | | | | | | With xencomm metaphysical addresses are passed to the hypervisor instead of virtual addresses. This patch breaks compatibility. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* [LINUX] Make evtchn device use a dynamic minor number.kfraser@localhost.localdomain2006-09-292-7/+85
| | | | | | | | Also update the code in tools to create the device node if udev fails. The tools now read the sysfs system to find the minor number needed. Original patch from Steven Rostedt <srostedt@redhat.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix tools build with latest glibc, which has ankfraser@localhost.localdomain2006-09-231-8/+3
| | | | | | extended PTRACE enumeration. Original patch from Stephen Tweedie <sct@redhat.com> Signed-off-by: Keir Fraser <keir@xensource.com>