aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
* x86, hvm: Guest CPUID configuration.Keir Fraser2008-04-254-0/+562
| | | | | | | | | | | | CPUID's replies are now pre-calculated in libxc and given to the hypervisor via a new domctl. There are two parts to this feature: - We can overwrite cpuid's replies. - We can check that a vm is compatible with a host's processor. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vmx: Fix address of EPT identity-map pagetable that is passed from theKeir Fraser2008-04-241-1/+1
| | | | | domain builder down to the hypervisor. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Build fixes for *BSD.Keir Fraser2008-04-151-2/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxenguest: Fix a typo.Keir Fraser2008-04-111-1/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* libxc: Move xg_memalign() into a proper source file, so that itKeir Fraser2008-04-092-17/+19
| | | | | | | | definitely does not leak out of tools/libxc. Return to the ioemu/osdep.c way of checking for posix_memalign() as this works on Solaris. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Leave portability of xg_memalign() as in original patch, ratherKeir Fraser2008-04-091-1/+1
| | | | | | than following ioemu/osdep.c. This unbreaks build of readnotes. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* save/restore: Use page-aligned allocations for hypercall args that areKeir Fraser2008-04-093-15/+43
| | | | | | | mlock()ed across other hypercall invocations, to avoid aliasing with other hypercall arguments, causing spurious unlocking. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* x86 libxc: Fix mlock sizes in libxc around vcpu context hypercallsKeir Fraser2008-04-091-6/+25
| | | | | | backing off to the old behaviour if we fail. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* lsevtchn: Simple tool to list event channel states for a domain.Keir Fraser2008-04-092-4/+23
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* hvm: Allocate memory for hvm domains in batches.Keir Fraser2008-04-091-4/+15
| | | | | | | Without this change, dom0 is unresponsive while the hvm domain's physmap is populated in xen. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* save/restore: Batch contiguous page-sized writes together during domain save.Keir Fraser2008-04-091-11/+37
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* x86, vmx: Enable EPT (Extended PageTable) support on new Intel processors.Keir Fraser2008-04-091-25/+45
| | | | | | | | | | | | | We use the EPT page table as P2M (guest physical to machine mapping), removing the linear page table when EPT is used for the domain (see the new file p2m-ept.c). We did this by adding three operations in the p2m_domain. If VT-d is enabled, the EPT page table will be used as the VT-d page table as well (i.e. shared). Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Jun Nakajima <jun.nakajima@intel.com> Signed-off-by: Xiaohui Xin <Xiaohui.xin@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* merge with xen-unstable.hgAlex Williamson2008-04-013-5/+165
|\
| * x86: Support loading Linux bzImage v2.08 and up.Keir Fraser2008-04-013-5/+165
| | | | | | | | | | | | | | | | | | | | The latest -mm kernel (2.6.25-rc3-mm1) contains v2.08 of the Linux bzImage format which embeds an ELF file in place of the raw payload allowing it to be extracted and used by the Xen domain builder. It is expected that this functionality will be put forward for 2.6.26. Signed-off-by : Ian Campbell <ijc@hellion.org.uk>
* | merge with xen-unstable.hgAlex Williamson2008-03-206-52/+38
|\|
| * libxc: Remove permute() function from xc_domain_save().Keir Fraser2008-03-191-27/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * ia64: Fix ACPI header inclusion into libxc.Keir Fraser2008-03-182-0/+5
| | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * save/restore: Permute saved memory with 2MB chunk size.Keir Fraser2008-03-181-21/+9
| | | | | | | | | | | | | | The memory permutation cause a slow down in case of a save/restore (bug 1143). It works better when the mixing is done with 2MB chunks. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
| * libxc: Variable-size gntdev supportKeir Fraser2008-03-182-2/+29
| | | | | | | | | | | | | | | | This patch adds the ability to set the number of slots that may be used for mapping grant references, using the gntdev user-space grant reference mapping driver. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
| * minios: Fix lost eventsKeir Fraser2008-03-181-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | evtchn_bind_interdomain used to clear any already pending event before binding a handler, because else the handler may be called before it is ready. That however leads to missed events, which I had to workaround for the HVM case. This changes the semantics of bind_evtchn, and thus of all the event channel binding functions (bind_virq, evtchn_alloc_unbound, evtchn_bind_interdomain) into not unmasking the event itself, hence letting the caller initialize properly before unmasking the port (e.g. record the port number in an appropriate place). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* | [IA64] Remove bogus hypercall argAlex Williamson2008-03-101-1/+0
| | | | | | | | | | | | | | privcmd_hypercall_t only has 5 args. This causes a build failure with gcc-4.3. Fixes bugzilla #1186. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] Initialize guest register to valid valueAlex Williamson2008-03-101-1/+1
|/ | | | Signed-off-by: Anthony Xu <anthony.xu@intel.com>
* [IA64] Clear console page for sioemuAlex Williamson2008-02-251-3/+5
| | | | | | | This fixes a bug: by using pfn 0 for console, the page was not cleared, sometimes causing the domain to fail to boot. Signed-off-by: Tristan Gingold <tgingold@free.fr>
* merge with xen-unstable.hgAlex Williamson2008-02-192-0/+57
|\
| * Enable HVM guest VT-d device hotplug via a simple ACPI hotplug device model.Keir Fraser2008-02-152-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ** Currently only 2 virtual hotplug pci slots(6~7) are created so more than 2 vtd dev can't be hotplugged, but we can easily extend it in future. Three new commands are added: "xm pci-list domid" show the current assigned vtd device, like: VSlt domain bus slot func 0x6 0x0 0x02 0x00 0x0 "xm pci-detach" hot remove the specified vtd device by the virtual slot, like: xm pci-detach EdwinHVMDomainVtd 6 "xm pci-attach DomainID dom bus dev func [vslot]" hot add a new vtd device in the vslot. If no vslot specified, a free slot will be picked up. e.g. to insert '0000:03:00.0': xm pci-attach EdwinHVMDomainVtd 0 3 0 0 ** guest pci hotplug linux: pls. use 2.6.X and enable ACPI PCI hotplug ( Bus options=> PCI hotplug => ACPI PCI hotplug driver ) windows: 2000/xp/2003/vista are all okay Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* | [IA64] Self IO EMUlator - tools partAlex Williamson2008-02-194-7/+165
| | | | | | | | Signed-off-by: Tristan Gingold <tgingold@free.fr>
* | merge with xen-unstable.hgAlex Williamson2008-02-149-63/+393
|\|
| * Tools: fix save/restore of 32-bit PV guests with 64-bit toolsKeir Fraser2008-02-134-30/+51
| | | | | | | | | | | | | | by removing some obvious typos, handling CR3 folding and hvirt_start based on guest word-size, and understanding 32-bit INVALID_MFN. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
| * Make stubdom/Makefile override XEN_OS to MiniOS, and addKeir Fraser2008-02-121-9/+3
| | | | | | | | | | | | | | config/MiniOS.mk. Add PTHREAD_LIBS to configs (usually holding -lpthread). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-123-2/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move PAGE_SIZE and STACK_SIZE into __PAGE_SIZE and __STACK_SIZE in arch_limits.h so as to permit getting them from there without pulling all the internal Mini-OS defines. - Setup a xen-elf cross-compilation environment in stubdom/cross-root - Add a POSIX layer on top of Mini-OS by linking against the newlib C library and lwIP, and implementing the Unixish part in mini-os/lib/sys.c - Cross-compile zlib and libpci too. - Add an xs.h-compatible layer on top of Mini-OS' xenbus. - Cross-compile libxc with an additional xc_minios.c and a few things disabled. - Cross-compile ioemu with an additional block-vbd, but without sound, tpm and other details. A few hacks are needed: - Align ide and scsi buffers at least on sector size to permit direct transmission to the block backend. While we are at it, just page-align it to possibly save a segment. Also, limit the scsi buffer size because of limitations of the block paravirtualization protocol. - Allocate big tables dynamically rather that letting them go to bss: when Mini-OS gets installed in memory, bss is not lazily allocated, and doing so during Mini-OS is unnecessarily trick while we can simply use malloc. - Had to change the Mini-OS compilation somehow, so as to export Mini-OS compilation flags to the Makefiles of libxc and ioemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * libxenctrl headers should not pollute macro namespace withKeir Fraser2008-02-121-13/+12
| | | | | | | | | | | | | | mb/rmb/wmb. Instead add a xen_ prefix. Modify Xen's public headers to expect the prefixed names instead of bare mb/rmb/wmb, but gate this expectation on a bump of __XEN_INTERFACE_VERSION__. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * xend: Remove redundant xc.domain_setcpuweight() all the way down to libxenctrl.Keir Fraser2008-02-112-18/+0
| | | | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* | [IA64] Cleanup in xc_ia64_linux_save.cAlex Williamson2008-02-131-38/+14
| | | | | | | | | | | | | | xc_ia64_shadow_control() is not needed any more since xc_shadow_control() was xencommized. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* | [IA64] Fix live migrationAlex Williamson2008-02-071-0/+3
| | | | | | | | | | | | | | | | In live migration, a domain is paused and *entire* memory is copied after pre-copy phase. (i.e. live migration is not live) Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* | [IA64] Fix maximum_gpfn hypercallAlex Williamson2008-02-051-1/+1
|/ | | | | | | | | HVM livemigation fails without this patch. according to x86 side: http://xenbits.xensource.com/xen-unstable.hg?rev/55d0a5c70986 Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* libxc: Fix the third argument of bitmap_64_to_byte in xc_tbuf_set_cpu_maskKeir Fraser2008-01-311-1/+1
| | | | Signed-off-by: Eric Liu <eric.e.liu@intel.com>
* libxc: Push parallel build of libraries down to a new phony target, asKeir Fraser2008-01-271-2/+5
| | | | | 'build' is already loaded with library dependencies on ia64. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Remove duplicate zlib check.Keir Fraser2008-01-271-10/+1
| | | | | | It is already checked in tools/check/check_zlib. Signed-off-by: Bastian Blank <waldi@debian.org>
* Move generation of public header hierarchy into the tools.Keir Fraser2008-01-261-3/+3
| | | | | | | This patch merges the two versions of public header generation currently used in the build into one. Signed-off-by: Bastian Blank <waldi@debian.org>
* Use VPATH instead of symlinks for libelf inclusion into libxenctrl.Keir Fraser2008-01-261-15/+5
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* New XEN_DOMCTL_set_targetKeir Fraser2008-01-232-0/+19
| | | | | | | | | | | Stubdomains (and probably other domain disagregation elements too) need to be able to tinker with another domain. This adds IS_PRIV_FOR that extends IS_PRIV by allowing domains to have privileges over a given "target" domain. XEN_DOMCTL_set_target permits to set this "target". A new 'target' configuration option makes the domain builder use it. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* merge with xen-unstable.hg (staging)Alex Williamson2008-01-221-13/+13
|\
| * Add INCLUDEDIR. Use it.Keir Fraser2008-01-221-3/+3
| | | | | | | | Signed-off-by: Bastian Blank <waldi@debian.org>
| * Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-221-9/+9
| | | | | | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* | [IA64] Remove is_vti arch flagAlex Williamson2007-12-141-1/+1
|/ | | | | | arch.is_vti is a duplicate of is_hvm. Signed-off-by: Tristan Gingold <tgingold@free.fr>
* hvm: Allocate an unmapped guard page to separate ordinary low RAMKeir Fraser2008-01-171-3/+18
| | | | | | | from special pages (ioreq, xenstore, etc). This will stop some probe functions (e.g., embedded in memtest) from stomping on the special pages. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Fix xc_domain_bind_pt_irq().Keir Fraser2007-12-271-5/+9
| | | | Signed-off-by: Guy Zana <guy@neocleus.com>
* tools: Some fixes for 'make clean'.Keir Fraser2007-12-141-1/+2
| | | | Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
* Fix build after I removed test_assign_device from domctl union.Keir Fraser2007-12-121-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vt-d: Test device assignability in xend, but defer actual assignment to qemu-dm.Keir Fraser2007-12-122-1/+19
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>