aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few typosKeir Fraser2008-08-041-1/+1
| | | | | From: Diego Ongaro <diego.ongaro@eu.citrix.com> Acked-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Error case when unbinding unknown port in xc_evtchn_unbind isKeir Fraser2008-08-011-1/+4
| | | | | | missing a return statement. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* hvm builder: Cleaner sp_extents allocationKeir Fraser2008-07-311-1/+1
| | | | | | We do not need more than count elements in the sp_extents array. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix do_xen_hypercall error reportKeir Fraser2008-07-251-2/+2
| | | | | | call.result is an unsigned long Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: grant table map (gntdev) bug fixesKeir Fraser2008-07-241-5/+17
| | | | | | | | | | | * Uninitialized dev_bus_addr argument to GNTTABOP_unmap_grant_ref results in an angry hypervisor. * Set errno in libxc and return -1 on error. * op.status is a int16_t, so it should be printed with PRId16. * Don't print domids[0] or refs[0] if the ptr is NULL. It's more polite to crash later, after the message has been printed. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* tools: remove type parameter from xc_physdev_map_pirq{,_msi}()Keir Fraser2008-07-242-6/+2
| | | | | | ... as it's implied by the function name. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* minios: grant table map (gntdev) for miniosKeir Fraser2008-07-241-0/+71
| | | | | | | | I've implemented a grant map for mini-os to support the xc_gnttab_*() functions, the equivalent of gntdev in linux. This is useful for my work in putting xenstored in a stub domain. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
* mini-os: select call incorrectly reports xce_handle as readyKeir Fraser2008-07-241-8/+14
| | | | | | | | | The current implementation in minios of xc_evtchn_pending doesn't set read=0 when there is exactly one port pending. This resulted in select() incorrectly reporting the file descriptor as ready. Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pv-grub: re-implement xc_map_foreign_rangesKeir Fraser2008-07-241-14/+17
| | | | | | | Also get rid of va and npages members of privcmd_mmap_entry since we do not need them any more. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxc: Fix after xc_map_foreign_ranges() patch.Keir Fraser2008-07-242-12/+14
| | | | | Must munmap() region after loading elf image. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: Clean up xc_map_foreign_ranges() interface to hide theKeir Fraser2008-07-238-83/+136
| | | | | | | underlying mmap() invocation. From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxc: add xc_gnttab_map_domain_grant_refs.Keir Fraser2008-07-212-2/+38
| | | | | | | xc_gnttab_map_domain_grant_refs permits to simply map several pages from the same domain. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxc: remove redundant declaration of xc_copy_to_domain_page().Keir Fraser2008-07-111-3/+0
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* x86: allow control domain to limit machine addresses given to a particular guestKeir Fraser2008-07-112-0/+35
| | | | | | | This allows domains which make buggy assumptions about the maximum possible MFN to be worked around. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* x86 hvm: New hvm_op "set_mem_type" which allows marking ram pageKeir Fraser2008-07-102-0/+39
| | | | | | ranges as ro, rw, or mmio_dm. Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* stubdom: fix missing evtchn.h headerKeir Fraser2008-07-091-1/+0
| | | | | | We actually do not need any since we include MiniOS' headers. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* numa: Extend MEMOP_ allocation functions to take a node argument.Keir Fraser2008-07-053-14/+14
| | | | | | | | | The address_bits field will be limited to 8 bits and is now embedded in the mem_flags member, which additionally contains the node number (limited to 8 bit). Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Cleanups to suspend-event-channel patches.Keir Fraser2008-07-042-2/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add facility to get notification of domain suspend by event channel.Keir Fraser2008-07-042-0/+17
| | | | | | | | | | | | This event channel will be notified when the domain transitions to the suspended state, which can be much faster than raising VIRQ_DOM_EXC and waiting for the notification to be propagated via xenstore. No attempt is made here to prevent multiple subscribers (last one wins), or to detect that the subscriber has gone away. Userspace tools should take care. Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
* merge with xen-unstable.hgIsaku Yamahata2008-07-0217-125/+165
|\
| * stubdom: add live migration support by having ioemu just notify theKeir Fraser2008-06-302-0/+34
| | | | | | | | | | | | | | | | | | | | hypervisor about memory changes. The impact on disk performance is typically making it from 71.5MBps down to 70.5Mbps during the live migration. The impact on network performance is actually even hard to measure. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * [IA64] compilation fix caused by 17880:d3a87899985dKeir Fraser2008-06-205-22/+28
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Compilation fix for x86_64 caused by 17880:d3a87899985d.Keir Fraser2008-06-201-2/+2
| | | | | | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
| * libxc: The following patch replace the libxc interface to useKeir Fraser2008-06-1911-101/+100
| | | | | | | | | | | | | | vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* | merge with xen-unstable.hgIsaku Yamahata2008-06-199-65/+236
|\|
| * Add PV-GRUBKeir Fraser2008-06-182-1/+8
| | | | | | | | | | | | | | | | | | | | | | This fetches GRUB1 sources, applies the {graphical, print function, save default, and ext3_256byte} patches from debian, and applies a patch to make it work on x86_64 and port it to Mini-OS. By using libxc, PV-GRUB can then "kexec" the loaded kernel from inside the domain itself, hence permitting to avoid the security-concerned pygrub. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
| * hvm: Fix the realmode live migration issue with Intel EPTKeir Fraser2008-06-132-0/+35
| | | | | | | | | | | | | | | | The patch save/restore the HVM_PARAM_IDENT_PT parameter, then the live migration during real mode with EPT may work fine. Signed-off-by: Xiaohui Xin <Xiaohui.xin@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * [IA64] compilation fix caused by 17814:9af7a535225fKeir Fraser2008-06-121-6/+23
| | | | | | | | | | | | | | | | | | ia64 compliation fix caused by 17814:9af7a535225f. - generate_acpi_checksum() is replaced by acpi_tb_checksum() - move dump_execution_state() definitions from asm-ia64/xenprocessor.h to asm-ia64/bug.h Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * tools: replace sprintf with snprintf where applicableKeir Fraser2008-06-121-2/+2
| | | | | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
| * x86: cpuid configuration for PV guestKeir Fraser2008-06-111-39/+136
| | | | | | | | | | | | | | | | | | | | | | | | Add pv guest support for the cpuid configuration and checking. That feature only works for cpuid request which are coming from the guest's kernel, a process could still call the cpuid directly. A new policy for pv guest has been created in libxc. dom0 cpuid emulation is left hardcoded in Xen. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * libxc: Update for NetBSDKeir Fraser2008-06-101-1/+5
| | | | | | | | | | | | returns hypercall return value when ioctl was successful. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
| * libxc: Use vpath rather than VPATH, to avoid linking with hypervisor .o files.Keir Fraser2008-06-091-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * xc hvm: Fix default CPUID features according to PAE/64-bitKeir Fraser2008-06-021-18/+29
| | | | | | | | | | | | | | | | capabilities of the guest and of the hypervisor. Based on a patch by Juergen Keil <jk@tools.de> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* | [IA64] ia64 save/restore new formart. save part.Isaku Yamahata2008-06-102-49/+90
| | | | | | | | | | | | | | | | Introduce ia64 save/restore new formart. save part. The formart twist is necessary for pv_ops linux support saving/restoring all of the online vcpu context. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] ia64 save/restore new formart. restore part.Isaku Yamahata2008-06-102-46/+180
|/ | | | | | | | Introduce ia64 save/restore new formart. restore part. The formart twist is necessary for pv_ops linux support saving/restoring all of the online vcpu context. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* iommu: Handle sibling device assignment correctlyKeir Fraser2008-05-282-0/+38
| | | | | | | | | | | | | | | | | | | | | | | Domctl interface is extended to allow libxc retrieve device group information from hypervisor. Vendor-specific iommu_ops is also extended by adding a new operation "get_device_group_id()", which is currently a null pointer but could be implemented later for vt-d. Error will be raised from tools side when user trying to assign PCI device with a sibling device being driven by dom0. User will keep being prompted until he has hidden the entire device group (at least, the sibling devices driven by dom0) in dom0 kernel parameter. Hopefully this framework could be flexible enough to support both amd iommu and vt-d. The following 2 cases are not covered by this patch, but should be easy to handle. * Checking for hot-plug devices (maybe we can delay calling ImageHandler.signalDeviceModel() until all checks are done?) * Checking for splitted device group between different passthru domains Signed-off-by: Wei Wang <wei.wang2@amd.com>
* stubdom: complete libxc supportKeir Fraser2008-05-233-20/+23
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxc: drop double un?lock_pages definition to fix static linkingKeir Fraser2008-05-221-16/+0
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxc, x86: Fix CPUID inline asm for x86/64.Keir Fraser2008-05-211-5/+8
| | | | | | | | Must save all 64 bits of RBX, not just the EBX sub-part. Based on bug diagnosis and patch by Juergen Keil <jk@tools.de> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add statistic interface for cx.Keir Fraser2008-05-212-0/+81
| | | | | | | Implement statistic interface for cx via sysctl & libxc. Provide a easy way to collect processor cx info within dom0. Signed-off-by: Wei Gang <gang.wei@intel.com>
* Provide Px statistic data to user through libxcKeir Fraser2008-05-163-0/+121
| | | | | | | | Sampling and collecting dynamic Px statistic data, including Px state value, Px count, Px residency time, Px transition matrix, etc. Provide Px statistic data to user through libxc. Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
* x86, hvm: Support 2MB superpage allocations for HVM guests.Keir Fraser2008-05-151-4/+44
| | | | | | | Signed-off-by: Xin Xiaohui <xiaohui.xin@intel.com> Signed-off-by: Li Xin, B <xin.b.li@intel.com> Signed-off-by: Wei Huang <wei.huang2@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: Support MSI-X for HVM domains.Keir Fraser2008-05-122-0/+3
| | | | Signed-off-by: Shan Haitao <Haitao.shan@intel.com>
* Remove defunct powerpc port.Keir Fraser2008-05-0815-1997/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* minios: let events get mixedKeir Fraser2008-05-061-2/+2
| | | | | | since events do not need to be counted Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* shadow: track video RAM dirty bitsKeir Fraser2008-05-022-0/+47
| | | | | | | | | | This adds a new HVM op that enables tracking dirty bits of a range of video RAM. The idea is to optimize just for the most common case (only one guest mapping, with sometimes some temporary other mappings), which permits to keep the overhead on shadow as low as possible. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* libxc foreign address translation bugKeir Fraser2008-05-021-1/+1
| | | | | | | | | In the xc_translate_foreign_address function from libxc, there is a check on the page directory entry to see if the page is 4K or 4M. However, the check is looking at bit 3, when it should be looking at bit 7. This patch fixes the problem. Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
* x86 hvm cpuid: fix some problem with the hvm's cpuid configuration.Keir Fraser2008-05-011-0/+3
| | | | | | | | | - When we overwrite a cpuid's input, apply the default policy for the other registers. - For the python binding, get unsigned long instead long. - Fix the multiple inputs cpuid's configuration parsing. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* MSI 5/6: add MSI support to passthrough HVM domainKeir Fraser2008-05-013-0/+74
| | | | | | | Currently it only inercept access to MSI config space, no MSI-x support. Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Shan Haitao <haitao.shan@intel.com>
* MSI 2/6: change the pirq to be per-domainKeir Fraser2008-05-013-0/+81
| | | | | Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Shan Haitao <haitao.shan@intel.com>