Commit Graph
15471 Commits
Author SHA1 Message Date
Alex Williamson 19472a02dd merge with xen-unstable.hg 2007-07-02 12:19:26 -06:00
Alex Williamson 8d541d8a57 [IA64] Build warning cleanup
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-07-02 10:31:03 -06:00
Alex Williamson 942a1912de [IA64] Cleanup: Move is_platform_hp_ski() from xenmisc.c to xensetup.c
- only caller is start_kernel
- change to static __init
- also move running_on_sim to xensetup.c, and change it from unsigned
  long to int, since it's just a boolean
- declare running_on_sim in config.h near some other externs

Tested by building, booting, starting a PV guest on rx2620.

Signed-off-by: Aron Griffis <aron@hp.com>
2007-07-02 10:25:29 -06:00
Alex Williamson a11b262449 [IA64] frametable_miss only exists when CONFIG_VIRTUAL_FRAME_TABLE
Tested by building without CONFIG_VIRTUAL_FRAME_TABLE

Signed-off-by: Aron Griffis <aron@hp.com>
2007-07-02 10:15:37 -06:00
Alex Williamson 4b6e535f85 [IA64] Add ia64 ignores
These files are created or modified during the build.

Signed-off-by: Aron Griffis <aron@hp.com>
2007-07-02 10:13:54 -06:00
Alex Williamson 52fcbbeab6 [IA64] cleanup: remove unused code.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 10:12:18 -06:00
Alex Williamson 76bd74f3a5 [IA64] Domain debugger for VTi: virtualize ibr and dbr.
Misc cleanup.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 10:10:32 -06:00
Alex Williamson 17b12a0f28 [IA64] Cleanup: remove cpu_user_regs from arch-ia64.h
Add a constant for isr.ni

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 09:54:53 -06:00
Alex Williamson f563c36712 [IA64] Fix NVRAM data cannot be saved when guest execute "reboot"
Also fix "xm reboot" instruction in Xend.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-07-02 09:38:51 -06:00
Alex Williamson 46867b9c10 [IA64] Don't use hard wired privilege level 2 for domain kernel
PV domains now use CPL 1 instead of 2 for CPL 0 emulation

Signed-off-by: Juergen Gross <juergen.gross@fujitsu-siemens.com>
2007-07-02 09:29:08 -06:00
Alex Williamson b624e17e3d [IA64] Fix incorrect NVRAM saving if domain is destroyed by config error
Nvram saving is always executed even if a domain is destroyed by a
configuration parameter error.  In this case, Nvram saving function
will get a bad address for the NVRAM data and save garbage into the
NVRAM file. Configuring a wrong vif parameter can expose this issue.

This patch fixes the issue by adding an address check function in
NVRAM saving path.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-07-02 09:05:24 -06:00
Alex Williamson 7d4d684419 [IA64] Virtualize ibr/dbr for PV domains.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 08:51:59 -06:00
Alex Williamson 821d1e6115 [IA64] Remove IA64_GUEST_CONTEXT_RBS_OFFSET
Pass the offset in the vcpu_reg struct.
Fix displaying stack register in xenctx.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 08:38:45 -06:00
Ian Campbell 4cb346f848 Fix 15435:ab95b9764b20.
The changeset did not consider about ":cdrom" and "ioemu:"
of a disk definition.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-02 08:42:13 +01:00
Keir Fraser d0e4f15cfd Use 32bit operand and address during VMXAssist protected to real.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-07-02 00:24:59 +01:00
Keir Fraser 0cf4932910 xm: Fix xm block-detach error message duplication.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:25:27 +01:00
Keir Fraser e0ccefb2fb xm: Fix a typo for xm network-detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:23:16 +01:00
Keir Fraser ea66464712 ACM: Fix a problem with the boot option parser.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-01 22:21:58 +01:00
Keir Fraser 1b3a517175 Make network-bridge fail on NFS or iscsi root.
Since setting up bridging involves bringing down the network interface,
bridging clearly isn't compatible with the likes of NFS or iSCSI root.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-07-01 22:20:46 +01:00
Keir Fraser 883a5de1d2 Remove unused VMXAssist test code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-07-01 22:18:04 +01:00
Keir Fraser caa6c26fb3 xendomains: Ignore 'lost+found' when finding saved dom images.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
2007-07-01 22:16:41 +01:00
Keir Fraser c32cff27ba xend: Pass information to user when failing migrate due to PCI dev.
When failing a migration / save due to the domain owning a PCI device
make sure that we tell the user what went wrong!

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:38 +01:00
Keir Fraser 450f5b5b9e xend: Don't allow migrate with assigned PCI devs.
This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:13 +01:00
Ian Campbell 1dd1b5a9f6 Add a duplication definition check for devices.
This patch adds a duplication definition check for devices.
It checks the following definitions.
 - vbd : uname and device name
 - vif : mac

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-29 14:38:18 +01:00
Keir Fraser 9659b6cb45 xend: Fix irq-permissions setting during domain creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-28 20:35:50 +01:00
Ian Campbell 4730f50174 Fix fixup of invalid PTE writes, broken by 13392:0fd65225e4c6.
By the time we test if addr is the upper word it has already been
aligned to the 8 byte pte size.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-06-28 18:40:20 +01:00
Keir Fraser 45b712c3d3 hvm: Destroy timers early during domain death.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 22:20:17 +01:00
Keir Fraser 41b3adc925 More getcpuinfo sysctl cleanup.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 21:43:43 +01:00
Keir Fraser 9ba645fd7d By default allow differences between Xen and XenLinux public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 21:28:19 +01:00
Keir Fraser 4706b975b0 Small sysctl cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 21:27:51 +01:00
Keir Fraser 3f96f21796 xenconsoled: improve robustness of logfile handling
Check the 'log_reload' on every iteration of the select() loop, not just when
select() returns EINTR. This is because the log reload signal may have
iterrupted a syscall other than select & thus without this change  we
might miss the reload signal.  The second change makes us process the
hypervisor logs on every iteration of the loop, not just upon timeouts.
This is because if a guest VM were consistently sending some log message
and < 1 second period, the select() would never hit the 1 second timeout
and thus never process the HV logs.

Thanks to Markus Armbruster for pointing out both these edge cases

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-06-27 21:05:54 +01:00
Steven Hand 3bc33badf2 Add new sysctl to return runtime information about physical CPU utilization.
Signed-off-by: Steven Hadn <steven@xensource.com>
2007-06-27 21:01:08 +01:00
Keir Fraser cee3908623 vmx: Exclude VMX_PROCBASED_CTL2 from set of MSRs a VMX guest is allowd
to access.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 20:56:25 +01:00
Keir Fraser 8d2566713d vmx: Make use of VMX_INSTRUCTION_INFO field to obtain the segment
register of OUTS

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 20:53:57 +01:00
Keir Fraser 748338bb07 hvm: Sync SVM CR4 handling with VMX.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 20:17:54 +01:00
Keir Fraser 78e2e202db Fix VMX guest can't boot after MCE enabled.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-06-27 20:08:21 +01:00
Keir Fraser 5ba704e717 x86: remove unused nopaging_gdt_descr
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2007-06-27 20:00:50 +01:00
Keir Fraser 76d84e88e0 Remove incorrect __init prefixes
Following functions can be __init in Linux, however shouldn't
in Xen. __print_IO_APIC is called by keyhandler, while
setup_ioapic_dest is invoked in one platform hypercall.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2007-06-27 19:59:21 +01:00
Alex Williamson e57246bd3a [MINIOS][IA64] mini-os without linux-optimization in hypervisor
Make mini-os runnable again without the special linux optimization for the
identity mapping in the hypervisor.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2007-06-26 16:24:41 -06:00
Alex Williamson 0aa79431e8 libxc: Add xc_domain_setdebugging in xenctrl API
Use it in xc_ptrace.c

Signed-off-by: Tristan Gingold <tgingold@free.fr>
Acked-by: Keir Fraser <keir@xensource.com>
2007-06-26 16:18:28 -06:00
Tim Deegan 774dab5320 [VMX] Set up GUEST_CR0 as well as CR0_READ_SHADOW when restoring saved
vcpus.  Also simplify the CR3 reload path.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-06-26 17:54:10 +01:00
Steven Hand b1b322eb8b Deinitialize timers before destroying the local apic; this protects us
against a late firing timer callback function (e.g. hpet_timer_fn) which
tries to access local APIC state.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-06-26 12:40:37 +01:00
kfraser@localhost.localdomain 837eceb667 ioemu: Fix ifdef __x86_64__
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-25 16:52:39 +01:00
Alex Williamson bf61172278 [IA64] clean warnings
This effectively reverts the io_init.c changes from
ia64/xen-unstable.hg cset 15376:39a95178edbf

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-06-22 11:48:49 -06:00
Alex Williamson 789a26a608 [IA64] Enable PV domain debugging.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-06-22 11:44:44 -06:00
Alex Williamson 78216c045a [IA64] More SN2 SAL calls that needs to be emulated.
Signed-off-by: Jes Sorensen <jes@sgi.com>
2007-06-21 16:50:55 -06:00
Alex Williamson bafd931a14 [IA64] Many more registers displayed (through a command-line option).
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Acked-by: Keir Fraser <keir@xensource.com>
2007-06-21 16:45:41 -06:00
kfraser@localhost.localdomain e5417ae6f9 i386: Simplify failsafe callback handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-21 21:36:26 +01:00
kfraser@localhost.localdomain d127010888 Fix x86/64 failsafe callback handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-21 18:02:50 +01:00
kfraser@localhost.localdomain 5408361cc6 hvm svm: No guest access to SVM MSRs.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-06-21 15:17:31 +01:00