aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Pull XEN_LINUX_UPDATE into mk.linux-2.6-xen so it can be shared byIan Campbell2007-08-173-16/+16
| | | | | | src.tarball and src.hg-clone Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* Add sharing-check for blktapkfraser@localhost.localdomain2007-08-173-42/+100
| | | | | Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com>
* xend: Fix vbd detach.kfraser@localhost.localdomain2007-08-171-0/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fix "xm restore" require 4 times amount of memory on ia64.kfraser@localhost.localdomain2007-08-171-1/+2
| | | | Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
* xend: Avoid unnecessary writes to xenstore.kfraser@localhost.localdomain2007-08-171-1/+1
| | | | | Type of rtc/timeoffset is not 'int' but 'str'. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* Tack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.kfraser@localhost.localdomain2007-08-161-0/+3
| | | | | Should fix building in Solaris environments. Signed-off-by: Keir Fraser <keir@xensource.com>
* Avoid new-fangled gnumake else-if syntax.kfraser@localhost.localdomain2007-08-161-7/+3
| | | | | Declarative style is neater anyway. Signed-off-by: Keir Fraser <keir@xensource.com>
* Allow Xen to build on FreeBSD.kfraser@localhost.localdomain2007-08-162-0/+3
| | | | | From: Julian Stecklina <der_julian@web.de> Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove unused max_dma_mfn variable.kfraser@localhost.localdomain2007-08-161-8/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xencomm: Fix for code style.kfraser@localhost.localdomain2007-08-142-89/+79
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [xen, xencomm] preparetion for xencomm consolidation.kfraser@localhost.localdomain2007-08-141-8/+21
| | | | | | | | Xen/powerpc runs in real mode so that it uses maddr interchangably with vaddr. But it isn't the case in xen/ia64. It is necessary to convert maddr to vaddr to access the page. maddr_to_virt() doesn't convert on powerpc, so it should work on both archtechture. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [xen, xencomm] xencomm trivial bug fixkfraser@localhost.localdomain2007-08-141-1/+8
| | | | | | - fix return address of xencomm_copy_to_guest() - fix xencomm_add_offset() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xen: Cache 'current' vcpu in physdev_op hcall implementation.kfraser@localhost.localdomain2007-08-141-9/+10
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xen: Do not accept DOMID_SELF as input to DOMCTL_getdomaininfo.kfraser@localhost.localdomain2007-08-141-7/+1
| | | | | | | | | This was screwing up callers that loop on getdomaininfo(), if there was a domain with domid DOMID_FIRST_RESERVED-1 (== DOMID_SELF-1). They would see DOMID_SELF-1, then look up DOMID_SELF, which has domid 0 of course, and then start their domain-finding loop all over again! Found by Kouya Shimura <kouya@jp.fujitsu.com>. Thanks! Signed-off-by: Keir Fraser <keir@xensource.com>
* libxc: Various xc_evtchn_* functions must return signed integer type.kfraser@localhost.localdomain2007-08-144-90/+107
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Cleanups to state-restore paths (including vmxassist world restore).kfraser@localhost.localdomain2007-08-133-74/+35
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] [TOOLS] Move device state save earlier in suspend pathTim Deegan2007-08-132-2/+3
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* [PV-on-HVM]: Add missing includeskfraser@localhost.localdomain2007-08-131-1/+2
| | | | | | | | This patch adds missing includes that currently work through indirect inclusions. This cannot be relied on and indeed does break on older kernels (2.4 for PV-on-HVM). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* x86-64: enable hypervisor output on VESA frame bufferkfraser@localhost.localdomain2007-08-136-76/+377
| | | | | | | | | | | | | This is x86-64 only for now due to the virtual address space constraints on x86-32. New options 'vesa-ram', 'vesa-map', 'vesa-mtrr' are close equivalents to the vesafb Linux options 'vtotal', 'vremap', 'mtrr'. Also the font can be specified: font=8x{8,14,16}. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: Allow dom0 network interface used in tests to be overridenJames Bulpin2007-08-124-7/+17
| | | | ./configure --with-dom0-intf=<intf> (default vif0.0)
* x86: Trivial clean up of debug output.kfraser@localhost.localdomain2007-08-101-6/+7
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* x86: Improved memcpy() asm implementation.kfraser@localhost.localdomain2007-08-101-7/+15
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Fix xm block/network-detach command.kfraser@localhost.localdomain2007-08-094-19/+155
| | | | | | | | | - To remove device info, it waits for the backend path of the device to be removed. - It removes device info from domain info. - It saves domain info to the config.sxp of the managed domain. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* acm: Some fixes to the Xend ACM management codekfraser@localhost.localdomain2007-08-094-29/+84
| | | | | | | | | | | | - prevent vlans from being relabeled when they are in use by the current policy - fix problems when doing an update of the policy and the name of the policy changes while doing that - refactor code that has to take into consideration that unlabeled domains may be defined using the label __UNLABELED__ - make 'xm list --label' show the complete label of a domain Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* x86-64: pv wrmsr emulation fixkfraser@localhost.localdomain2007-08-091-14/+14
| | | | | | | | Make sure the upper 32 bits of RAX are disregarded during MSR write emulation. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Ensure multiboot modules are mapped when we copy them.kfraser@localhost.localdomain2007-08-091-0/+19
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* x86: Always define both PAE and non-PAE address constantskfraser@localhost.localdomain2007-08-091-10/+26
| | | | | | | | Solaris decides to run as PAE or not at runtime. Thus, make the address constants for both cases always available in the public headers. Signed-off-by: John Levon <john.levon@sun.com>
* acm: Cleaner use of copy_from_guest().kfraser@localhost.localdomain2007-08-091-6/+6
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Clean up usage of 'current' in do_iret() hypercall.kfraser@localhost.localdomain2007-08-093-13/+17
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* x86: Do not print unbounded bogus FACS signature.kfraser@localhost.localdomain2007-08-081-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Handle hw_cr[] array a bit more sanely.kfraser@localhost.localdomain2007-08-086-106/+98
| | | | | | SVM for the most part does not need to use it at all, and this makes the code clearer. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Unify %cr0 handling.kfraser@localhost.localdomain2007-08-087-257/+186
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Do not clobber new wallclock offset on restore.Ian Campbell2007-08-081-12/+23
| | | | | | | The new hypervisor will set shared_info->wc_* so do not clobber those values with the saved versions from the old hypervisor. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* hvm: Fix %cr4 handling in HAP paging mode.kfraser@localhost.localdomain2007-08-081-1/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* MergeTim Deegan2007-08-0822-680/+366
|\
| * hvm: More cleanups, particularly to %cr4 handling.kfraser@localhost.localdomain2007-08-088-195/+106
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Xin Li <xin.b.li@intel.com>
| * hvm: More cleanups around paging interfaces.kfraser@localhost.localdomain2007-08-084-57/+21
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * hvm: Clean up control-register and EFER handling.kfraser@localhost.localdomain2007-08-0721-477/+288
| | | | | | | | | | No semantic changes. :-) Signed-off-by: Keir Fraser <keir@xensource.com>
* | [TOOLS] Avoid unaligned accesses in libfsimage FAT16 codeTim Deegan2007-08-081-3/+3
|/ | | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com> Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* xen: Clean up some paging files: no tab and trailing spaces.kfraser@localhost.localdomain2007-08-076-163/+164
| | | | Signed-off-by: Xin Li <xin.b.li@intel.com>
* xentop: fix abnormal value cpu(%) when domain shutdown.kfraser@localhost.localdomain2007-08-071-1/+1
| | | | | | | | | | | If we test multiple domain create/shutdown many times. sometimes abnormal values of cpu(%) are appeared. This is because shutdown domain remove failure. (in other words, memory corruption of struct ) This corruption makes abnormal cpu(%) values are shown xentop sometimes. Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
* [ACM] Explicitly cast byte arrays when used in copy_from_guestkfraser@localhost.localdomain2007-08-071-3/+3
| | | | | | | | Explicitly cast the target array type to an array of 'u8' since the number of bytes copied is calculated from the type of element in the target array times the number of elements (3rd parameter). Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [HVM] Store Etherboot ROM as hexdump, not binaryTim Deegan2007-08-064-2/+2056
| | | | | for ease of patch management Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* xm: Fix control characters causing xm tests to fail.kfraser@localhost.localdomain2007-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | On my FC7 installation some of the test in the xm test suite fail for no apparent reason. The problem is that the python 'readline' module puts out control characters that confuse code that parses the output of some of the xm commands that are being run. The readline module dumps those characters upon import. The attached patch works around this problem. Here's what I get in out.txt when doing 'python 2>&1 | tee out.txt' and 'import readline' on the python command line: Python 2.5 (r25:51908, Apr 10 2007, 10:29:13) [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. [[?1034h>>> >>> The characters before the '>>>' above are those printed by that version of 'readline' and remain invisible on the screen but appear in the file and confuse the xm test suite parser. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm: pass --skipdtd parameter through to 'xm new'kfraser@localhost.localdomain2007-08-061-1/+2
| | | | | | | Pass the command line parameter '--skipdtd|-s' through to the actual 'xm new' command. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [32on64] Copy the right grant table status code back to the guest.Ian Campbell2007-08-061-2/+2
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* hvm: Fix PV-on-HVM drivers to not execuite hypercall page while it iskfraser@localhost.localdomain2007-08-061-0/+10
| | | | | being re-initialised. Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
* hvm: Fix save/restore when callback_via line is routed through a PCIkfraser@localhost.localdomain2007-08-061-1/+25
| | | | | | INTx wire. Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* pygrub: LiloConf.py supports root and read-onlykfraser@localhost.localdomain2007-08-061-3/+21
| | | | | | | LiloConf.py ignores the following options: root and read-only. This patch fixes the issue. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* Fix/cleanup destroyDevice code path in xend.kfraser@localhost.localdomain2007-08-065-27/+96
| | | | | | | | | | | | | | When calling destroyDevice code path (e.g. xm block-detach dom devid), allow specifying an integer device id or a device name such as xvdN or /dev/xvdN. Allowing the /dev/xvdN form is useful when detaching devices from dom0. Bootloaders may do this to unmount a disk previously mounted in dom0. Move examination of device ID format into the DevController, permitting device controllers to determine a valid device ID instead of higher level code. Signed-off-by: Jim Fehlig <jfehlig@novell.com>