aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen version for 4.0.0-rc14.0.0-rc1Keir Fraser2010-01-122-2/+3
|
* libxenlight: remove ctx dangerously passed to childrenKeir Fraser2010-01-123-12/+10
| | | | | | | apart from ctx->waitpid, it's potentially harmful to call into logging. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: remove ctx argument to execKeir Fraser2010-01-123-7/+4
| | | | Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: typo in old patch, lead to waitpid forever instead ofKeir Fraser2010-01-121-2/+2
| | | | | | | | waitpid with WNOHANG fixes qemu starting problem Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: misc cleanupKeir Fraser2010-01-121-5/+4
| | | | | | | wait_for_device_model expect two pointer as the end not 2 integers. remove debugging message in libxl_list Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: do not try to set memory target with a number we haven'tKeir Fraser2010-01-121-1/+9
| | | | | | | | | verified in set-mem. checking that memory string conversion what done properly instead of sending a request to balloon a domain to 0 memory. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: tests a lots more of xl return value inside the libraryKeir Fraser2010-01-122-17/+49
| | | | | | | | | | | | | | and in xl. introducing a domain where the xenguest build function has fail, lead to having xenstored receiving SIGBUS, since it's trying to access some of the domain's memory, which haven't been properly allocated. (it doesn't seems to be a way to make xenstored more robust to this though since xc_map_foreign_range just succeed). make xl a lot more robust regarding all those random errors possible. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* blktap: make memshr optionalKeir Fraser2010-01-127-45/+82
| | | | | | | | Attached patch makes memshr optional for blktap/blktap2. This fixes build for platforms where memshr isn't build on. While there, make indentation consistent. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xend, pciquirk: fix uninitialized variableKeir Fraser2010-01-121-2/+2
| | | | | | | Fixes uninitialized variable when there's no PERMISSIVE_CONFIG_FILE Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tools: build fixes for NetBSDKeir Fraser2010-01-123-2/+3
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* x86_32: Fix the build.Keir Fraser2010-01-091-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxenlight: initialize domid to -1 in domain_createKeir Fraser2010-01-081-1/+1
| | | | | | | | prevent call site that doesn't check return values to try to do operation on domain 0. instead they use domid -1, which is unlikely to exist. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: don't try to delete path when they doesn't exists.Keir Fraser2010-01-081-6/+9
| | | | | | fix segfault in destroy when creation hasn't been done properly. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: simplify the logic of domain_list to just return 1024 domains ↵Keir Fraser2010-01-081-19/+5
| | | | | | maximum Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: remove all cloning logic.Keir Fraser2010-01-083-51/+11
| | | | | | | replace by simpler xl ctx init/free calls. also don't segfault if there's no callback for log. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: don't use the cloning logic in dm_xenstore_record_pid.Keir Fraser2010-01-083-22/+31
| | | | | | use call to lowlevel functions to do the same things. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: returns errors if xc and/or xs has not been initialized properly.Keir Fraser2010-01-081-0/+10
| | | | | | fixed segfault when xenstore or xc are not available. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: don't free ifname, can lead to double freeKeir Fraser2010-01-081-3/+0
| | | | | | | ifname is mostly handled directly in xl now, do not attempts to free this. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: don't ignore ctx_init errors if there is one.Keir Fraser2010-01-081-12/+49
| | | | | | | ctx_init can return error, and ignoring the errors, would lead to segfault later. fix all call sites to check return values. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* VT-d: get rid of trailing whitespaceKeir Fraser2010-01-089-17/+17
| | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
* xend: fix options for assigned pciKeir Fraser2010-01-083-7/+33
| | | | | | | | | | | | | | | | | pci global options and per-device options for HVM device model have been broken for some time, the patch tries to fix the problem. It: * maintains global options in xend, and merge it into per-device option when creating the backend * merge the global options also into the parameter of pci-ins dm-command The second one is there because the backend is effectively skipped in ioemu at present, ioemu solely relies on the parameter string to create the device. Cc: Simon Horman <horms@verge.net.au> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Qing He <qing.he@intel.com>
* [IA64] support XEN_DOMCTL_mem_sharing_opKeir Fraser2010-01-081-0/+29
| | | | | | | Because memory sharing is not implemented on ia64, only XEN_DOMCTL_MEM_SHARING_OP_CONTROL is supported. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* xend: Fix xc.physinfo() Py_BuildValue format string.Keir Fraser2010-01-081-1/+1
| | | | | | Fix for 20762:a1d0a575b4ba Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* tmem: Reduce verbosity on failed memory allocations.Keir Fraser2010-01-082-5/+4
| | | | | | | | | Reduce tmem complaints per Jan's concerns in this thread http://lists.xensource.com/archives/html/xen-devel/2010-01/msg00155.html Now complains only if tmem HAS memory to relinquish and memory request has order>0. Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>
* EPT: Walk and print EPT tables on an unexpected EPT violationKeir Fraser2010-01-083-0/+52
| | | | | | | Wrote this when I was tracking down the HAP-PoD problem, figured it might come in handy sometime. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* x86: fix NUMA handling (c/s 20599:e5a757ce7845)Keir Fraser2010-01-082-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | c/s 20599 caused the hash shift to become significantly smaller on systems with an SRAT like this (XEN) SRAT: Node 0 PXM 0 0-a0000 (XEN) SRAT: Node 0 PXM 0 100000-80000000 (XEN) SRAT: Node 1 PXM 1 80000000-d0000000 (XEN) SRAT: Node 1 PXM 1 100000000-130000000 Comined with the static size of the memnodemap[] array, NUMA got therefore disabled on such systems. The backport from Linux was really incomplete, as Linux much earlier had already introduced a dynamcially allocated memnodemap[]. Further, doing to/from pdx translations on addresses just past a valid range is not correct, as it may strip/fail to insert non-zero bits in this case. Finally, using 63 as the cover-it-all shift value is invalid on 32bit, since pdx values are unsigned long. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Handle PoD case in hvm_hap_nested_page_fault()Keir Fraser2010-01-061-9/+8
| | | | | | | | | The new combined nested page fault handling doesn't consider the case where the gfn_to_mfn() translation caused the page to be transparently populated. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* sysctl: Return max_node_id rather than nr_nodes from physinfo command.Keir Fraser2010-01-065-47/+58
| | | | | | Python extension continues to synthesise a nr_nodes value. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: XEN_DOMCTL_MEM_SHARING_OP_CONTROL should not depend on HAP.Keir Fraser2010-01-061-4/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libxl: apply CPUID policy for all types of VMs in all situationsKeir Fraser2010-01-061-6/+4
| | | | | | | | Apply CPUID policy to all types of VMs in all situations. Otherwise PV VMs get no cpuid flags. It would be interesting if someone tested libxl on PV before pushing dozens of patches. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
* [IA64] Fix ia64 buildKeir Fraser2010-01-064-4/+26
| | | | Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* tmem: Only enable by default for x86_64Keir Fraser2010-01-061-0/+4
| | | | | | | | | While tmem has gotten limited testing with a 32-bit Xen, it has severe limitations due to 32-bit heap restrictions. So, turn it off by default for 32-bit so nobody accidentally runs into this. Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>
* xend: passthrough: also do_FLR when a device is assigned.Keir Fraser2010-01-062-29/+47
| | | | | | | | | | | | To workaround a race condition about guest hotplug, c/s 18338:7c10be016e4 disabled do_FLR when we create guest or 'xm pci-attach' device into guest, so now we actually only do_FLR when a guest is destroyed or 'xm pci-detach'. By moving the FLR-related checking/do_FLR logic a little earlier, this patch re-enables do_FLR in these 2 cases disabled by 18338. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* libxenlight: install libxl.hKeir Fraser2010-01-051-0/+1
| | | | Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxenlight: remove any uuid dependancies from xlKeir Fraser2010-01-058-287/+66
| | | | | | | | | | | | | | | | | | | uuid handles in create and now create_device_model need to fill the uuid field by client. the uuid field happens to be the exact same size as the standard uuid (sixteen 8 bits values). stubdom need to have a uuid when created, so using the one in create_device_model. this permits the client library to generate the uuid in any way it see fits (even if it's not compliant to any standard), and simplify installation of the libxenlight header. xl converted from libuuid generated uuid to generated through random() C call. need to be fixed if anyone plan to use xl for anything seriously apart from developing libxl. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* numa: Correct handling node with CPU populated but no memory populatedKeir Fraser2010-01-054-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | In changeset 20599, the node that has no memory populated is marked parsed, but not online. However, if there are CPU populated in this node, the corresponding CPU mapping (i.e. the cpu_to_node) is still setup to the offline node, this will cause trouble for memory allocation. This patch changes the init_cpu_to_node() and srant_detect_node(), to considering the node is offlined situation. Now the apicid_to_node is only used to keep the mapping between cpu/node provided by BIOS, and should not be used for memory allocation anymore. One thing left is to update the cpu_to_node mapping after memory populated by memory hot-add. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com> This is a reintroduction of 20726:ddb8c5e798f9, which I incorrectly reverted in 20745:d3215a968db9 Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Pass -vcpu-avail option to QEMU now it is supported.Keir Fraser2010-01-051-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Update QEMU_TAG to 2621a102cd74cd6691bed30f638581639fcb141dKeir Fraser2010-01-051-3/+3
|
* Revert incorrect comment change introduced by 20720:ddb3646ad681Keir Fraser2010-01-051-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* domctl: Fix command-number clashes and place all #defines together toKeir Fraser2010-01-041-62/+118
| | | | | | | avoid the problem in future. From: Juergen Gross <juergen.gross@ts.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* VT-d: fix iommu_domid for PCI/PCIx devices assignmentKeir Fraser2010-01-041-41/+51
| | | | | | | | | | | | | | | | | | Currently, it clears iommu_domid and domid_map at the end of domain_context_unmap_one() if no other devices under the same iommu owned by this domain. But, when assign a PCI/PCIx device to a guest, it also assigns its upstream bridge to the guest, and they use the same iommu_domid. In the deassignment, the iommu_domid and domid_map are cleared in domain_context_unmap_one() for the assigned PCI/PCIx device, therefore it cannot get valid iommu_domid in followed domain_context_unmap_one for its upstream bridge. It causes PCI/PCIx device re-assignment failure. This patch moves the iommu_domid and domid_map clearing code to the end of domain_context_unmap, where all dependent domain_context_unmap_one()s are completed, thus fix above issue. Signed-off-by: Weidong Han <Weidong.han@intel.com>
* VT-d: fix iommu_domain_destroyKeir Fraser2010-01-041-19/+10
| | | | | | | | | Currently, g2m_ioport list and mapped_rmrrs always won't be released in iommu_domain_destroy, because the function returns before those code. It causes potential leak. This patch releases them, and thus avoid the potential leak. Signed-off-by: Weidong Han <Weidong.han@intel.com>
* VT-d: clean up dynamic page mappingKeir Fraser2010-01-042-3/+3
| | | | | | | | | | Before dynamic VT-d page table for hvm guest (changeset 20152), need_iommu is only used for PV guest. And it maps pages into VT-d for PV guest in get_page_type and grant table. Now need_iommu is used both hvm and pv guests, this patch makes those code still only for PV guest, because it needn't to map pages there for hvm domain. Signed-off-by: Weidong Han <Weidong.han@intel.com>
* xend: Allow disable QEMU monitor by settinbg option to 0 in config file.Keir Fraser2010-01-041-0/+2
| | | | Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
* Revert 20726:ddb8c5e798f9Keir Fraser2010-01-044-12/+7
| | | | Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
* x86: In mmuext_op(), MMUEXT_[UN]PIN_* must respect 'foreigndom'...Keir Fraser2009-12-301-10/+10
| | | | | | | ... and *only* those subcommands respect 'foreigndom', according to documentation in public header xen.h. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: mp table fixKeir Fraser2009-12-301-1/+1
| | | | | | The bug causes noapic PAE Windows 2k3 boot failure. Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
* libxl: add a versioning number to ctx_init that permit to detectKeir Fraser2009-12-303-14/+18
| | | | | | | | | | | incompatible client. at the moment if the versioning of the library is not exactly the same used in the client then the ctx_init return an ERROR_VERSION. however the same mechanism can be use in the future to be able to support older version and offer a compatibility layer. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxl: define errors as an enum instead of define random values.Keir Fraser2009-12-301-4/+7
| | | | Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
* libxl: add a get_shutdown_reasonKeir Fraser2009-12-302-0/+18
| | | | Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>