]> xenbits.xensource.com Git - xen.git/log
xen.git
18 years agoFix vbd_create etc, add devices to paused domains
Tom Wilkie [Mon, 26 Mar 2007 12:29:27 +0000 (13:29 +0100)]
Fix vbd_create etc, add devices to paused domains

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[HVM] Fix comments
Tim Deegan [Mon, 26 Mar 2007 09:16:04 +0000 (09:16 +0000)]
[HVM] Fix comments
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Intercept ACPI pm-timer registers
Tim Deegan [Mon, 26 Mar 2007 09:13:03 +0000 (09:13 +0000)]
[HVM] Intercept ACPI pm-timer registers
Bring the PM1a_STS and PM1a_EN registers into Xen and use them to deliver
SCI to the guest before it sees the MSB of the pm-timer change.
Also correct some of the semantics of the registers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoFix VM.resume/suspend docs.
Ewan Mellor [Mon, 26 Mar 2007 00:13:16 +0000 (01:13 +0100)]
Fix VM.resume/suspend docs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.
Ewan Mellor [Mon, 26 Mar 2007 00:02:18 +0000 (01:02 +0100)]
Mark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoCreate the new VM with the default crash behaviour set.
Ewan Mellor [Sun, 25 Mar 2007 23:40:34 +0000 (00:40 +0100)]
Create the new VM with the default crash behaviour set.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoReplace tabs with spaces.
Ewan Mellor [Sun, 25 Mar 2007 23:30:10 +0000 (00:30 +0100)]
Replace tabs with spaces.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded I/O debugging mode.
Ewan Mellor [Sun, 25 Mar 2007 23:17:17 +0000 (00:17 +0100)]
Added I/O debugging mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix memory values -- they should be in bytes.
Ewan Mellor [Sun, 25 Mar 2007 23:16:40 +0000 (00:16 +0100)]
Fix memory values -- they should be in bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoTidy up use of stdout vs stderr.
Ewan Mellor [Sun, 25 Mar 2007 23:12:19 +0000 (00:12 +0100)]
Tidy up use of stdout vs stderr.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the VM.is_a_template flag for domain 0.
Ewan Mellor [Sun, 25 Mar 2007 23:09:00 +0000 (00:09 +0100)]
Fix the VM.is_a_template flag for domain 0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoImplement session.last_active, session.this_host, session.get_record,
Ewan Mellor [Sun, 25 Mar 2007 23:08:13 +0000 (00:08 +0100)]
Implement session.last_active, session.this_host, session.get_record,
session.get_uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded C bindings and docs for recent addition VM.set_VCPUs_number_live.
Ewan Mellor [Sun, 25 Mar 2007 21:17:30 +0000 (22:17 +0100)]
Added C bindings and docs for recent addition VM.set_VCPUs_number_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoRemove stillborn DTD section, in favour of an upcoming new doc for the xm
Ewan Mellor [Sun, 25 Mar 2007 15:47:18 +0000 (16:47 +0100)]
Remove stillborn DTD section, in favour of an upcoming new doc for the xm
create DTD.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoWorkaround buggy GCCs wrt strftime.
Ewan Mellor [Fri, 23 Mar 2007 17:51:24 +0000 (17:51 +0000)]
Workaround buggy GCCs wrt strftime.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoDon't use the client-side shortcut for get_uuid calls -- we need to keep
Ewan Mellor [Fri, 23 Mar 2007 17:50:18 +0000 (17:50 +0000)]
Don't use the client-side shortcut for get_uuid calls -- we need to keep
handles and UUIDs conceptually separate.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoIgnore exceptions in the get_all_methods call.
Ewan Mellor [Fri, 23 Mar 2007 17:42:08 +0000 (17:42 +0000)]
Ignore exceptions in the get_all_methods call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdd VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.
Ewan Mellor [Fri, 23 Mar 2007 17:14:22 +0000 (17:14 +0000)]
Add VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoRelease the domains_lock properly when get_dev_property_by_uuid fails.
Ewan Mellor [Fri, 23 Mar 2007 16:54:34 +0000 (16:54 +0000)]
Release the domains_lock properly when get_dev_property_by_uuid fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix rebooting domains problem with new internal memory storage
Tom Wilkie [Fri, 23 Mar 2007 15:10:46 +0000 (15:10 +0000)]
Fix rebooting domains problem with new internal memory storage

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoAdd a last_updated field to every metrics class.
Ewan Mellor [Fri, 23 Mar 2007 13:27:29 +0000 (13:27 +0000)]
Add a last_updated field to every metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoImplement parsing of datetimes.
Ewan Mellor [Fri, 23 Mar 2007 13:26:08 +0000 (13:26 +0000)]
Implement parsing of datetimes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoReturn an error when a schedule-setting call fails.
Ewan Mellor [Fri, 23 Mar 2007 11:52:09 +0000 (11:52 +0000)]
Return an error when a schedule-setting call fails.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoSince CPP is being used with CFLAGS, it should be in lock-step with CC,
Ewan Mellor [Fri, 23 Mar 2007 11:32:32 +0000 (11:32 +0000)]
Since CPP is being used with CFLAGS, it should be in lock-step with CC,
to avoid having to specify both CC and CPP for the build.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix typos.
Ewan Mellor [Fri, 23 Mar 2007 11:12:25 +0000 (11:12 +0000)]
Fix typos.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoReplace tabs with spaces.
Ewan Mellor [Fri, 23 Mar 2007 11:11:41 +0000 (11:11 +0000)]
Replace tabs with spaces.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoFix state in xm list; add state to VM_metrics class.
Ewan Mellor [Fri, 23 Mar 2007 11:04:51 +0000 (11:04 +0000)]
Fix state in xm list; add state to VM_metrics class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xenapi_create re: Multiple VIFs for test 04_restore_withdevices_pos
Ewan Mellor [Fri, 23 Mar 2007 11:00:08 +0000 (11:00 +0000)]
Fix xenapi_create re: Multiple VIFs for test 04_restore_withdevices_pos

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoMake xm save / restore talk XenAPI; add save / restore to VM class.
Ewan Mellor [Fri, 23 Mar 2007 10:59:49 +0000 (10:59 +0000)]
Make xm save / restore talk XenAPI; add save / restore to VM class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoRemove xc_shadow tool
Tim Deegan [Fri, 23 Mar 2007 10:46:39 +0000 (10:46 +0000)]
Remove xc_shadow tool
It predates the current shadow architecture and only performs an explicitly
invalid shadow operation (on itself).
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Fri, 23 Mar 2007 10:11:58 +0000 (10:11 +0000)]
Merge with xen-ia64-unstable.hg

18 years agoImplemented host.get_PIFs.
Ewan Mellor [Thu, 22 Mar 2007 19:04:45 +0000 (19:04 +0000)]
Implemented host.get_PIFs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the parsing of the is_a_template and auto_power_on flags. Don't try to
Ewan Mellor [Thu, 22 Mar 2007 18:41:15 +0000 (18:41 +0000)]
Fix the parsing of the is_a_template and auto_power_on flags.  Don't try to
read the disk size on create -- just pass -1 instead -- as the filename may
be munged on the server-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the handling of the transient flag.
Ewan Mellor [Thu, 22 Mar 2007 18:40:20 +0000 (18:40 +0000)]
Fix the handling of the transient flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoRemove duplicate memory values from the SXP.
Ewan Mellor [Thu, 22 Mar 2007 18:37:37 +0000 (18:37 +0000)]
Remove duplicate memory values from the SXP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix VM.is_a_template.
Ewan Mellor [Thu, 22 Mar 2007 18:36:53 +0000 (18:36 +0000)]
Fix VM.is_a_template.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMatch the name change for the QCoW SR.
Ewan Mellor [Thu, 22 Mar 2007 17:04:55 +0000 (17:04 +0000)]
Match the name change for the QCoW SR.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFixes to XendQCoWStorageRepo to match recent API changes, and fix the refreshing
Ewan Mellor [Thu, 22 Mar 2007 17:02:02 +0000 (17:02 +0000)]
Fixes to XendQCoWStorageRepo to match recent API changes, and fix the refreshing
after a VDI is deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdd VM_metrics.start_time, and use this to implement xm uptime through the
Ewan Mellor [Thu, 22 Mar 2007 16:32:18 +0000 (16:32 +0000)]
Add VM_metrics.start_time, and use this to implement xm uptime through the
Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 22 Mar 2007 15:30:54 +0000 (09:30 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] Improve error message when HVM domain creation failed
awilliam@xenbuild2.aw [Thu, 22 Mar 2007 15:28:05 +0000 (09:28 -0600)]
[IA64] Improve error message when HVM domain creation failed

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoUpdate VM's VCPU handling to match the documentation wrt VCPUs_max and
Ewan Mellor [Thu, 22 Mar 2007 14:31:03 +0000 (14:31 +0000)]
Update VM's VCPU handling to match the documentation wrt VCPUs_max and
VCPUs_at_startup.  Add VM.set_VCPUs_number_live, VM.add_to_VCPUs_params_live,
VM_metrics.VCPUs_{CPU,flags,params}.

Use these new calls to implement xm vcpu-list and xm sched-credit through
the Xen-API.  Mark a number of other calls as unimplemented through that API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix marshalling of Xen-API maps with non-string keys.
Ewan Mellor [Thu, 22 Mar 2007 14:27:05 +0000 (14:27 +0000)]
Fix marshalling of Xen-API maps with non-string keys.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years ago[TOOLS] libxc: Fix x86 build.
Ian Campbell [Thu, 22 Mar 2007 12:22:16 +0000 (12:22 +0000)]
[TOOLS] libxc: Fix x86 build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoMerge with xenppc-unstable-merge.hg
kfraser@localhost.localdomain [Wed, 21 Mar 2007 23:59:03 +0000 (23:59 +0000)]
Merge with xenppc-unstable-merge.hg

18 years agoMerge with xen-unstable.hg.
Hollis Blanchard [Wed, 21 Mar 2007 23:08:31 +0000 (18:08 -0500)]
Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC][POWERPC] Use new domain builder.
Hollis Blanchard [Wed, 21 Mar 2007 22:03:00 +0000 (17:03 -0500)]
[LIBXC][POWERPC] Use new domain builder.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][LIBXC] Remove Prose builder.
Hollis Blanchard [Wed, 21 Mar 2007 22:03:00 +0000 (17:03 -0500)]
[POWERPC][LIBXC] Remove Prose builder.
It is no longer being maintained and probably shouldn't have existed in the
first place, since it was almost identical to xc_linux_build.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC] Allocate memory and populate p2m in arch-specific code.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[LIBXC] Allocate memory and populate p2m in arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Implement arch_get_xen_caps().
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Use correct register set in dump_execution_state().
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Use correct register set in dump_execution_state().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Quiet timebase synchronization at boot.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Quiet timebase synchronization at boot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Clear the RMA flag on freed pages.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
Tim Deegan [Wed, 21 Mar 2007 17:17:08 +0000 (17:17 +0000)]
[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoChange xm dmesg -c so that it prints out the current buffer as well as clearing
Ewan Mellor [Wed, 21 Mar 2007 12:03:42 +0000 (12:03 +0000)]
Change xm dmesg -c so that it prints out the current buffer as well as clearing
it.  This avoids a race so that you don't lose messages, matches the behaviour
of the hypercall, and the Unix dmesg command.

Change the Xen-API binding to use a separate function host.dmesg_clear rather
than a flag on host.dmesg.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoLINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_phys...
Ian Campbell [Wed, 21 Mar 2007 08:51:51 +0000 (08:51 +0000)]
LINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_physmap is set.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 21:19:38 +0000 (15:19 -0600)]
merge with xen-unstable.hg

18 years agoRaise an exception in xm_block_detach if using Xen-API and it fails -- this
Ewan Mellor [Tue, 20 Mar 2007 17:36:18 +0000 (17:36 +0000)]
Raise an exception in xm_block_detach if using Xen-API and it fails -- this
ensures that the exit status properly set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xm network-list through the Xen-API for managed domains.
Ewan Mellor [Tue, 20 Mar 2007 17:34:34 +0000 (17:34 +0000)]
Fix xm network-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xm block-list through the Xen-API for managed domains.
Ewan Mellor [Tue, 20 Mar 2007 17:33:35 +0000 (17:33 +0000)]
Fix xm block-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoMake xm trigger talk XenAPI; add send_trigger to VM class.
Ewan Mellor [Tue, 20 Mar 2007 17:30:52 +0000 (17:30 +0000)]
Make xm trigger talk XenAPI; add send_trigger to VM class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoMake xm debug-keys talk XenAPI; Add send_debug_keys to host
Ewan Mellor [Tue, 20 Mar 2007 17:30:05 +0000 (17:30 +0000)]
Make xm debug-keys talk XenAPI; Add send_debug_keys to host

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoChange the eyecatcher to be case-insensitive, so that "Internal error" is
Ewan Mellor [Tue, 20 Mar 2007 17:26:05 +0000 (17:26 +0000)]
Change the eyecatcher to be case-insensitive, so that "Internal error" is
detected.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoTidy the error message from getDomains when using the Xen-API and no domain
Ewan Mellor [Tue, 20 Mar 2007 16:55:29 +0000 (16:55 +0000)]
Tidy the error message from getDomains when using the Xen-API and no domain
is found.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoHave xm-test wait for the network device to detach. This is an asynchronous
Ewan Mellor [Tue, 20 Mar 2007 16:52:33 +0000 (16:52 +0000)]
Have xm-test wait for the network device to detach.  This is an asynchronous
process, so xm-test needs to poll.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years ago[IA64][MINIOS] Make Endian-ness build changeable on the command line
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 16:07:11 +0000 (10:07 -0600)]
[IA64][MINIOS] Make Endian-ness build changeable on the command line

Now you can do 'BIGENDIAN=y make'

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64][MINIOS] Fixed some big-endian bugs and add HYPERVISOR_suspend
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:51:45 +0000 (09:51 -0600)]
[IA64][MINIOS] Fixed some big-endian bugs and add HYPERVISOR_suspend

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[IA64] fix access rights in VHPT when itr.ar!=dtr.ar
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:32:24 +0000 (09:32 -0600)]
[IA64] fix access rights in VHPT when itr.ar!=dtr.ar

This is a workaround patch for Windows 2003 Server.
Windows (vcpu>=2) set itr[1].ar=3(RWX) but dtr[1].ar=2(RW).
It causes an impossible INST_ACCESS_RIGHTS interruption via VHPT
which is used for emulating TR.

Surprisingly, windows ordinarily accepts this interruption.
But windows sometimes crashes with the message 'PANIC_STACK_SWITCH'
owing to this interruption.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
18 years ago[IA64] Avoid double free of VHPT for HVM domain
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:24:02 +0000 (09:24 -0600)]
[IA64] Avoid double free of VHPT for HVM domain

If vTLB area is not able to allocate with shortage of domheap,
Xen does a panic for double free of VHPT.

At first:
  vmx_final_setup_guest()
    -> init_domain_tlb()
         -> free_domain_vhpt()

At second:
  free_domain()
    -> vcpu_destroy()
         -> vmx_relinquish_vcpu_resources()
              -> free_domain_tlb()
                   -> free_domain_vhpt()

This patch avoids double free of VHPT by clearing v->arch.vhpt.hash
in free_domain_vhpt().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years ago[IA64] Fix isr setting vs viosapic interupt delivery
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:21:47 +0000 (09:21 -0600)]
[IA64] Fix isr setting vs viosapic interupt delivery

When the HVM guest is used with vcpu=5, the hypervisor may report:
"redir 10 not set for 180 EOI", and the HVM guest is Hung.

When the hypervisor with a vcpu context delivers to another vcpu,
EOI might be sent before ISR is set.

We should modify to call viosapic_delver() after ISR setting.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
18 years ago[IA64] Fix thash_init()
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:16:09 +0000 (09:16 -0600)]
[IA64] Fix thash_init()

Lost initializating page_flag of the last member in cch.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
18 years agoFix sxp2xml translation to handle maxmem.
Ewan Mellor [Tue, 20 Mar 2007 15:15:37 +0000 (15:15 +0000)]
Fix sxp2xml translation to handle maxmem.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdd VIF.runtime_properties dictionary, and use that to implement xm network-list
Ewan Mellor [Tue, 20 Mar 2007 15:12:07 +0000 (15:12 +0000)]
Add VIF.runtime_properties dictionary, and use that to implement xm network-list
through the Xen-API.  Implement xm network-attach and xm network-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix parameter to XendInvalidDomain.
Ewan Mellor [Tue, 20 Mar 2007 14:04:57 +0000 (14:04 +0000)]
Fix parameter to XendInvalidDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix exception handling when xmlrpclib.Fault is raised, in legacy mode.
Ewan Mellor [Tue, 20 Mar 2007 14:04:27 +0000 (14:04 +0000)]
Fix exception handling when xmlrpclib.Fault is raised, in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix xm create -c.
Ewan Mellor [Tue, 20 Mar 2007 11:49:04 +0000 (11:49 +0000)]
Fix xm create -c.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdd VBD.runtime_properties dictionary, and use that to implement xm block-list
Ewan Mellor [Tue, 20 Mar 2007 11:45:44 +0000 (11:45 +0000)]
Add VBD.runtime_properties dictionary, and use that to implement xm block-list
through the Xen-API.  Implement xm block-attach and xm block-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoWhen creating a VBD, save the devid in the device info structure. If creation
Ewan Mellor [Tue, 20 Mar 2007 11:44:13 +0000 (11:44 +0000)]
When creating a VBD, save the devid in the device info structure.  If creation
fails, remove the device config entry.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoImprove the error diagnostics within xmlrpclib2 in order to be more defensive
Ewan Mellor [Tue, 20 Mar 2007 11:34:14 +0000 (11:34 +0000)]
Improve the error diagnostics within xmlrpclib2 in order to be more defensive
against internal errors.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agomerge
Ian Campbell [Tue, 20 Mar 2007 14:34:53 +0000 (14:34 +0000)]
merge

18 years ago[XEN] Implement faster int 0x80 handling for compat mode guests.
Ian Campbell [Tue, 20 Mar 2007 14:33:15 +0000 (14:33 +0000)]
[XEN] Implement faster int 0x80 handling for compat mode guests.

Using the GPF handler to spot the software interrupt and pass it back
to the guest increases the base syscall time by a factor of 2.7
compared with 32on32 using direct trap to ring 1. (0.3270->0.8680
microseconds, measured with lmbench lat_syscall).

Since the 64 bit IDT can only contain 64 bit segment selectors we
cannot trap directly to compat mode ring 1. However implementing a
dedicated 64 bit ring 0 trap handler allows us to avoid much of the
GPF handler overhead and reduces the overhead to 1.7 times
(0.3270->0.5497 microseconds).

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoMerge
Tim Deegan [Tue, 20 Mar 2007 11:56:20 +0000 (11:56 +0000)]
Merge

18 years agosvm: Remove special 'launch' scheduler tail function.
kfraser@localhost.localdomain [Tue, 20 Mar 2007 11:28:45 +0000 (11:28 +0000)]
svm: Remove special 'launch' scheduler tail function.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoDon't mount raw blktap disks for pygrub
Mark McLoughlin [Tue, 20 Mar 2007 11:10:52 +0000 (11:10 +0000)]
Don't mount raw blktap disks for pygrub
Currently, we mount all blktap disks for pygrub so that it can boot
from e.g. QCOW images. However, since pygrub will handle a raw image
just fine without mounting through blktap, we shouldn't bother in that
case.

Also, it looks like XendDomainInfo.create_vbd() takes the full disk
uname rather than the image path.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
18 years agocoredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
kfraser@localhost.localdomain [Mon, 19 Mar 2007 16:55:21 +0000 (16:55 +0000)]
coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Do not save/restore shared_info gpfn location.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 16:48:24 +0000 (16:48 +0000)]
hvm: Do not save/restore shared_info gpfn location.

Instead of kludging a max_gpfn estimate in shared_info, add a new
XENMEM command to discover the actual maximum gpfn value as known by
the shadow code.

This needs to be more robust when we support HVM ballooning in future
anyway. One interesting point is that max_gpfn may be close to 4GB
even for small-memory HVM guests since for example SVGA LFB is mapped
into the I/O hole. We may need to special case the I/O hole somehow,
or provide some finer-grained way to find out which parts of the GPFN
space are actually used (e.g., get Xen to fill in a bitmap with 1 bit
per 1024 pages, or similar).

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[SVM] Move vmcb setup code for AP bringup out of the launch path
Tim Deegan [Mon, 19 Mar 2007 16:28:24 +0000 (16:28 +0000)]
[SVM] Move vmcb setup code for AP bringup out of the launch path
and into the earlier AP bringup code.  This stops it from resetting
the VCPUs of SMP guests into real mode on restore or migrate.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoOnly import xenapi_create when using the Xen-API server -- this has additional
Ewan Mellor [Mon, 19 Mar 2007 14:46:51 +0000 (14:46 +0000)]
Only import xenapi_create when using the Xen-API server -- this has additional
dependencies that we don't want to require in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[LINUX] Update crash-kernel-32-on-64.patch with more sensible version from -mm.
Ian Campbell [Mon, 19 Mar 2007 14:00:07 +0000 (14:00 +0000)]
[LINUX] Update crash-kernel-32-on-64.patch with more sensible version from -mm.
The previous version had side effects outside of the crash dump code.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agohvm: Lower HPET frequency to 1/32 of the TSC.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 13:48:00 +0000 (13:48 +0000)]
hvm: Lower HPET frequency to 1/32 of the TSC.

The frequency of HPET device model is defined to be the same as TSC's,
but this doesn't work well with calibrate_tsc_hpet() in Linux kernel
2.6.16-33, causing some IA32 Linux HVM guests to failt o boot.

Calibrate_tsc_hpet() tries to figure out how many HPET ticks a TSC
cycle equals; it magnifies the result by scale of 2^32, trying to get
a more accurate result since it assumes the frequency of HPET in real
world is usually less than 1/100 of TSC, so the result of "(2^32 *
hpet_freq) / tsc_freq" may exceed 32bits, then a "divide error
(overflow)" would occur!

The result doesn't overflow every time because hpet_freq/tsc_freq may
less than 1.0 due to the little inaccuracy in the implementation of
HVM timer virtualization.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agoUse HOSTCFLAGS with HOSTCC.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 13:44:31 +0000 (13:44 +0000)]
Use HOSTCFLAGS with HOSTCC.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[ioemu] Cleanup media change code.
Christian Limpach [Mon, 19 Mar 2007 11:15:28 +0000 (11:15 +0000)]
[ioemu] Cleanup media change code.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoFix memory size handling.
Ewan Mellor [Mon, 19 Mar 2007 11:09:57 +0000 (11:09 +0000)]
Fix memory size handling.

These were by Tom Wilkie <tom.wilkie@gmail.com>, and were dropped accidentally
by me when merging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agominios: Various small fixes.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:34:42 +0000 (09:34 +0000)]
minios: Various small fixes.

- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agoAdd parentheses to trace_do_casts macro.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:32:52 +0000 (09:32 +0000)]
Add parentheses to trace_do_casts macro.

The arguments to this macro didn't have parentheses around them where
they were used.  If a call to a TRACE macro included an expression as
an argument, the cast to (unsigned long) could bind to just part of
the expression and lead to unexpected results.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
18 years agohvm: Fix platform-irq handling in presence of irqbalance daemon.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:31:04 +0000 (09:31 +0000)]
hvm: Fix platform-irq handling in presence of irqbalance daemon.

The HVM guest did not respond when PV-on-HVM driver was tested on
the following conditions.

1. RHEL4u4
2. vcpu 4
3. irqbalance on
4. pv-on-hvm driver used.

Eventhandler did not work because IRQ was delivered to another vcpu by
irqbalance.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
18 years agoxend: Avoid use of 'k' specifier to Py_BuildValue(). Its
Keir Fraser [Sun, 18 Mar 2007 18:26:34 +0000 (18:26 +0000)]
xend: Avoid use of 'k' specifier to Py_BuildValue(). Its
implementation is broken until Python v2.4.3. Instead cast the C value
to long long and use the 'L' specifier.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Fix Py_BuildValue() invocation (don't use I specifier).
Keir Fraser [Sun, 18 Mar 2007 16:49:52 +0000 (16:49 +0000)]
xend: Fix Py_BuildValue() invocation (don't use I specifier).
Various error-handlign cleanup and fix a reference leakage.
Signed-off-by: Keir Fraser <keir@xensource.com>