Commit Graph
8918 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw be5f11d829 [IA64] Clean up warnings related to VTi code. (header files)
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
2006-02-24 13:30:39 -07:00
awilliam@xenbuild.aw dd48511361 [IA64] Clean up warnings related to VTi code. (C files)
This patch removes  most of the warnings such as incompatible assignment, 
unused variables, return value type of some functions  and so on.

Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian    <kevin.tian@intel.com>
2006-02-24 13:29:18 -07:00
awilliam@xenbuild.aw 4d95dee010 [IA64] redefine raw_smp_processor_id()
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
	#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
	#define raw_smp_processor_id()   current->processor
In fact, the first one takes effect, that's not correct.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-24 11:08:51 -07:00
awilliam@xenbuild.aw e2863e8e8b [IA64] another one to remove unused linux files within xen/ia64
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 10:50:27 -07:00
awilliam@xenbuild.aw cdc77010c5 [IA64] Remove unused Linux stuff
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 10:32:27 -07:00
awilliam@xenbuild.aw 74b2e11c41 [IA64] fix ia64 cset 8906
Looks like we accidentially added a compliment op here, adding
one more to nullify.  Fixed dom0 not booting.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-24 09:41:27 -07:00
awilliam@xenbuild.aw 77f6ce9bd0 [IA64] bug fix reserve_memory()
reserved_region[].start is of virtual address in identity
mapping. not physical address.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:44:34 -07:00
awilliam@xenbuild.aw 28c70b0a59 [IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.
this is needed for a later patch to modify meminit.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:41:21 -07:00
awilliam@xenbuild.aw d367c877c2 [IA64] minor bug fix in xensetup.S
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:37:46 -07:00
awilliam@xenbuild.aw 6eab53bc1e [IA64] tlb miss fix
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.

- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
  panic via page_fault().
- alt itlb miss by a guest must be handled
  it occurs during dom0 boot.
- alt itlb miss by xen must not occur
  panic by FORCE_CRASH

vmx_ivt.S already has such tweaks by checking psr.vm bit.

TODO: optimization
      dtlb miss handlers are performance critical so that
      it should be heavily optimized like alt_dtlb_miss.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:34:11 -07:00
awilliam@xenbuild.aw c00c11be83 [IA64] acpi printf fix
fix printf format miss. %0xlx -> 0x%lx

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:29:52 -07:00
awilliam@xenbuild.aw 26e617a773 [IA64] cleanup itir_ps(), itir_mask()
code clean up.
itir_ps(), itir_mask()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:28:36 -07:00
awilliam@xenbuild.aw 979c647186 [IA64] hypercall cleanup
hypercall clean up.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:24:58 -07:00
awilliam@xenbuild.aw a911e196b4 [IA64] assign_new_domain0_page
map_new_domain0_page() -> assign_new_domain0_page() for consistency
deleted map_domain_page0() declaration

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:23:33 -07:00
awilliam@xenbuild.aw d87448a00e [IA64] Provides right frequency ratio and base for VTi domain
This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain.  and it fixed the wrong frequency ratio
and base  of VTi domian.  So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Yu Ke <ke.yu@intel.com>
2006-02-23 15:40:18 -07:00
awilliam@xenbuild.aw f90aee191d [IA64] gcc-4.0 build fix
do_lock_page() and do_set_shared_page() are declared static in
vmx_hypercall.c.  Removed so we can build with gcc-4.0.  From
Stephane Eranian.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-18 21:25:31 -07:00
awilliam@xenbuild.aw 1eaceed93f [IA64] add CONFIG_XEN to sal.c sparse file
Adjust for easier maintenance

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-18 14:54:15 -07:00
awilliam@xenbuild.aw 8a5f45ddf8 merge 2006-02-18 13:17:24 -07:00
kaf24@firebug.cl.cam.ac.uk 06c843b557 Missing file from previous changeset. 2006-02-18 11:56:51 +01:00
kaf24@firebug.cl.cam.ac.uk 315c3fa6a2 Enable x86_32 PAE unmodified guests on 64-bit Xen when the hvm feature
is present. We tested only Linux at this point, and we'll improve the
functionality as we test other guests.

The SVM needs the equivalent changes to the vmc.c to get this
functionality working, but this patch does not break the build.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-18 11:56:13 +01:00
kaf24@firebug.cl.cam.ac.uk 1aca85cf41 Include an extra header file in xenbus.h. Fixes ia64 build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-18 11:41:42 +01:00
kaf24@firebug.cl.cam.ac.uk ce6ffe2a14 Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-18 01:05:05 +01:00
kaf24@firebug.cl.cam.ac.uk e75e463bf5 Svm patch to remove unneeded update_pagetables().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:02:19 +01:00
kaf24@firebug.cl.cam.ac.uk 07a27576b1 Svm patch to fix asid logic on multicore.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:52 +01:00
kaf24@firebug.cl.cam.ac.uk fa9ecc30bf Svm patch to cleanup the injection logic and consolidate into one function.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:31 +01:00
awilliam@xenbuild.aw e814b1b774 [IA64] fixed switch to idle domain bug
Previously when switching to idle domain, cr.pta is set to dom0's VHPT,
then when switching from VTIdomain to idle domain, cr.pta is set to
dom0's VHPT, and in idle domain, VHPT will be not remapped by TR, so
there may be unexpected vhpt fault in idle domain, which may cause
domain crash. Above only happens in host smp platform not host up
platform. This patch is intended to fix this bug.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-17 15:02:40 -07:00
emellor@leeni.uk.xensource.com dd3606b160 Attached patch updates the xm man page for the listing of
block/network/vtpm devices.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-17 23:00:05 +01:00
awilliam@xenbuild.aw 1dc1716108 [IA64] different type of argument in vcpu_set_gr()
Fix Reserved Register/Field fault in sal_emulate().
This bug is occurred by a wrong type argument.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-17 14:57:19 -07:00
awilliam@xenbuild.aw 4914aeed91 [IA64] wrong type cast in ia64_hypercall
This is wrong type cast.
This patch fix warnning of incompatible pointer type.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-17 14:49:58 -07:00
awilliam@xenbuild.aw b090bb9267 [IA64] declaration of metaphysical_rr
I'm making a patch for domain destruction.
While I tested my patch by repeatedly 
creating/destructing domains,
a reserved register/field fault occurred in load_region_regs().

The cause of this fault is rr0 value overflow(0xFFFFFFFF********)
because metaphysical_rr0 in the arch_domain struct is 
declared as integer (should be unsigned long).
The attached patch fixes the problem.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-02-17 14:42:02 -07:00
awilliam@xenbuild.aw 90a1cd66c1 [IA64] Fixed arch_domain_create
This patch fixed the process when xenheap shortage occurred
in arch_domain_create().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-02-17 14:34:17 -07:00
kaf24@firebug.cl.cam.ac.uk 784aebe2ef Remove obsolete ccache patch from xm-test buildroot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 21:26:49 +01:00
kaf24@firebug.cl.cam.ac.uk a50ec08122 Fix buildroot problems and bring the buildroot image up
to 15feb06, update to Makefile.am. The original gcc-mirror patch is
removed and the buildroot configuration updated.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-02-17 21:25:53 +01:00
kaf24@firebug.cl.cam.ac.uk 262e026767 Disable C1 clock ramping on AMD 8th gen CPUs.
This reverts a previous changeset that removed this code.
It is currently required for good TSC behaviour in SVM
(fully virtualised) guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 20:41:30 +01:00
emellor@leeni.uk.xensource.com 1f52e936e5 This patch displays the network-list/block-list/vtpm-list using the 'xm'
command. It supports the '--long' option.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-17 19:35:38 +01:00
kaf24@firebug.cl.cam.ac.uk 13627ba6ee Fix 64b build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 18:22:23 +01:00
kaf24@firebug.cl.cam.ac.uk 0a64e72ee7 Fix HVM MSR save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-17 16:29:24 +01:00
cl349@firebug.cl.cam.ac.uk 47421a278a Fix Read/Write CR3 emulation.
- on write, new_guest_cr3() takes an mfn not an ma
- for shadow_translate guests, apply mfn_to_gmfn/gmfn_to_mfn

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-17 11:49:11 +00:00
kaf24@firebug.cl.cam.ac.uk ae1754163b Fix a VMX FPU bug introduced in changeset 8834.
From: Edwin Zhai

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 12:28:35 +01:00
cl349@firebug.cl.cam.ac.uk 9ff4a6f68e Update the ia64 linux-2.6-xen-sparse tree to 2.6.16-rc3.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-16 23:24:47 +00:00
kaf24@firebug.cl.cam.ac.uk 9a5bf16779 Update defconfigs for PCI front/back driver config options.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 00:07:11 +01:00
kaf24@firebug.cl.cam.ac.uk da0c51ab41 Update documentation to describe new PCI front/back drivers.
Update the documentation to include the syntax of "hiding" a PCI
device from domain 0 and for specifying the assignment of a PCI device
to a driver domain. It also includes a brief section exploring some of
the security concerns that driver domains address and mentioning some
of those that remain.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:47:58 +01:00
kaf24@firebug.cl.cam.ac.uk d70271d485 Tools changes for PCI front/back drivers.
Replace the old pciif DevController class with a new one that
configures the PCI backend. A util class detects the resource usage of
the specified PCI devices and pciif interacts with Xen to permit a
driver domain to directly access those physical I/O resources.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:46:51 +01:00
kaf24@firebug.cl.cam.ac.uk ca0e9847e8 PCI backend and frontend drivers for i386 and x86_64.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk b41c62a012 Provide a simpler, higher-level interface for mapping in pages from another domain.
I also added a one-liner that causes xenbus_dev_(error|fatal) to output
to the kernel log buffer (and thus syslog) which was invaluable to me
while debugging (by default, error messages only appear in xenstore).

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:37:40 +01:00
kaf24@firebug.cl.cam.ac.uk 666c2a019b Fix bugs related to the virtual TPM. Also make the vTPM
manager listen on /dev/vtpm.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-16 23:00:00 +01:00
kaf24@firebug.cl.cam.ac.uk f47038ad99 Fix a dead download url for ccache when building the xm-test ramdisk.
From: Adam Wendt <adam@ipcoast.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:57:29 +01:00
kaf24@firebug.cl.cam.ac.uk 8a61bdcadb VTPM Tools: Fix threading bug in vtpm_manager while using NPTL. Now
supports Linux Threads and NPTL threads. Also clean up vtpm Makefile.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-02-16 22:39:55 +01:00
kaf24@firebug.cl.cam.ac.uk 97af5bbb77 Fix Xen builds with perfc=y and perfc_arrays=y.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-02-16 22:33:46 +01:00
kaf24@firebug.cl.cam.ac.uk a7e0c3b593 Sync Xen's mpspec.h with Linux 2.6.16-rc2 codebase.
Fixes building with gcc 4.1-pre, pointed out by Chris Wright.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:25:54 +01:00