Commit Graph
53 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 969807247d Restore command line parsing code from qemu-0.6.1
This enables cdrom ejection (both file based and physical i.e. /dev/cdrom)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:02:50 +00:00
kaf24@firebug.cl.cam.ac.uk 5b459bb5c8 Fix the path to qemu-dm 2005-07-25 21:02:24 +00:00
kaf24@firebug.cl.cam.ac.uk 4fb5e20a8d Translate some control characters in the qemu monitor.
This removes odd control characters displayed in the qemu monitor with vnc

Signed-off-by: Edwin Zhain <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:00:30 +00:00
kaf24@firebug.cl.cam.ac.uk 29395fa9ef Shell scripts aren't very strippable and some versions of install get
very unhappy if you try to.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-07-06 08:47:34 +00:00
kaf24@firebug.cl.cam.ac.uk 75dab2dab2 Install qemu-dm.debug script. 2005-07-03 15:09:20 +00:00
kaf24@firebug.cl.cam.ac.uk 7545be423c Improve the IDE HD geometry auto detection algorithm.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Asit K Mallick <asit.k.mallick@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-01 21:24:09 +00:00
kaf24@firebug.cl.cam.ac.uk a2fe25371c Get rid of references to qemu-dm.debug. 2005-07-01 17:26:37 +00:00
kaf24@firebug.cl.cam.ac.uk 93a4a4449f Device model path cleanup. Remove bochsrc which is no longer needed.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-01 10:34:47 +00:00
arun.sharma@intel.com[kaf24] bcfc20f4bc bitkeeper revision 1.1781 (42c3a8d63EmXV0wA3jHItrRQ0fKLsg)
[PATCH] Support VMX guests with 512M/1G memory.

Support VMX guests with 512M/1G memory.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -r f6e5bd774f51 -r 13e02f197018 tools/ioemu/configure
2005-06-30 08:09:58 +00:00
arun.sharma@intel.com[kaf24] 382ed0e218 bitkeeper revision 1.1780 (42c3a8c4tqEOpGy663gWO35k5QwZTw)
[PATCH] Infrastructure for interrupt handling.

Infrastructure for interrupt handling.

- support interruptibility
- handle interrupt window exiting control appropriately
- Add ioapic device models imported from Bochs under LGPL
- generalize the interrupt architecture to support both PIC/APIC

This patch is necessary to fix several bugs on 32 bit VMX and prepares the
ground for adding a local APIC device model in the hypervisor.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:09:40 +00:00
arun.sharma@intel.com[kaf24] 11d2304e18 bitkeeper revision 1.1776 (42c3a877bezcV9uHoSXuU-GWoyVOKw)
[PATCH] Enable qcow in the device models.

Enable qcow in the device models.

This saves disk space when dealing with large guest images.

Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -r 5d58883fc7b8 -r 499ac8e8df00 tools/ioemu/block.c
2005-06-30 08:08:23 +00:00
arun.sharma@intel.com[kaf24] 03d545ffcd bitkeeper revision 1.1773 (42c3a841nLib9kdSmthr05jouqiNeg)
[PATCH] Device model cleanup.

Device model cleanup.

- Single config file for xen and device models
  (Shell script doesn't source xmdefconfig anymore)
- No more device-model shell script by default. You can
  have one if needed (qemu-dm.debug)
- All logic in the script device-model is moved to python
- $DISPLAY is passed from xm to xend
- Don't fork vncviewer on dryruns
- Add support for killing device models on domain destroy
- info vmxiopage command added to the monitor
- Refactor shared io page into global and per vcpu state
- Remove the hard coding of IOPACKET_PORT
- move the virtual_platform_def up to domain struct from vcpu
- xm create -n:

(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref -1)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (root '/dev/hda1 ro')
            (vcpus 1)
        )
    )
    (memmap )
    (device_model /tmp/foo)
    (hda /var/images/min-el3-i386.img)
    (hdb )
    (hdc )
    (hdd )
    (cdrom )
    (boot c)
    (fda )
    (fdb )
    (localtime 0)
    (serial )
    (macaddr )
    (stdvga 0)
    (isa 0)
    (nographic 0)
    (vnc 0)
    (sdl 0)
    (display localhost:10.0)
)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:07:29 +00:00
kaf24@firebug.cl.cam.ac.uk e24b80a505 bitkeeper revision 1.1737 (42ba86724fSOFpp6L107qJDWXNKxug)
Attached is the patch with
        1. Cleanup of code & correct error handling for MMIO
instructions.
        2. Decoding of 64bit instructions for MMIO.


  Signed-Off-By: Chengyuan Li <chengyuan.li@intel.com>
  Signed-Off-By: Yunhong Jiang <hunhong.jiang@intel.com>
  Signed-Off-By: Jun Nakajima <jun.nakajima@intel.com>
  Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2005-06-23 09:52:50 +00:00
leendert@watson.ibm.com[iap10] 65227c4552 bitkeeper revision 1.1722 (42b7bcc4JmG_ITQ35E28L1mWc_g_ZQ)
[PATCH] ioemu-monitor.patch

The following patch adds back qemu monitor commands to qemu-dm which
make sense. That is, eject and change devices, and show some device
state.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>

===== tools/ioemu/monitor.c 1.1 vs edited =====
2005-06-21 07:07:48 +00:00
kaf24@firebug.cl.cam.ac.uk 4d8752e9ee bitkeeper revision 1.1705.1.2 (42a9372fTpt-bOGdIcKsOLb8_xlJ4Q)
Remove tools/ioemu/pc-bios. We have replacements in tools/firmware
now.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-10 06:46:07 +00:00
arun.sharma@intel.com[kaf24] 829cf7292d bitkeeper revision 1.1687 (42a54554WlNG2upO1_XkGsTZKFcGnQ)
[PATCH] vmx-pit-reset-vector.patch

If the guest resets irq_base in the PIC, we should reset the vector
in the hypervisor as well.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-07 06:57:24 +00:00
kaf24@firebug.cl.cam.ac.uk 962cfc3a3a bitkeeper revision 1.1615.1.2 (429c8826fS2FuIKb-STmuvL0Hl6awQ)
ioemu fixes: do not install into /usr/share/qemu as it conflicts with
real qemu installations. Also, do not link x86/64 with a special linker
script -- breaks on SLES9 and ought to be unnecessary.
The linker scripts and configuration/Makefile environment all need
stripping out at some point.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-31 15:52:06 +00:00
leendert@watson.ibm.com[kaf24] 40855e46e0 bitkeeper revision 1.1579 (429831c4g3vltIzzOokMmu5rtSZAcQ)
[PATCH] [PATCH] ioemu: enable Cirrus VGA emulation

At some point the Cirrus VGA driver was commented out. Probably
for debugging. The patch below adds it back in. It works just fine.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-05-28 08:54:28 +00:00
leendert@watson.ibm.com[kaf24] 3acd35a031 bitkeeper revision 1.1573 (4296dbfdboYgUQZDJC6lNdNzKGXKag)
[PATCH] [PATCH] ioemu device-model ignores variables

Trivial patch. The device-model wrapper ignores cdrom and boot variables.
This patch adds them.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-05-27 08:36:13 +00:00
arun.sharma@intel.com[kaf24] 493451ff35 bitkeeper revision 1.1543 (42943085tTGU_YurrAPsDOCEjAU21g)
[PATCH] qemu-e9.patch

Log port E9 output to the qemu log file.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-25 08:00:05 +00:00
arun.sharma@intel.com[kaf24] 308a40d59c bitkeeper revision 1.1540 (42939e7f8_AuNACTheIei6BJ0yjKyA)
[PATCH] xen.vncserver-quiet-configure.patch

When configure looks for VNC Server library installation by
executing libvncserver-config, make sure we don't print messages to
the console if we cannot find the libvncserver-config program.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-24 21:37:03 +00:00
cl349@firebug.cl.cam.ac.uk 519108b9f7 bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)
Nothing but vnet uses libxutil -- move it there.
Makefile, xc.c, setup.py, configure, configure.in, Makefile.in:
  This doesn't use libxutil.
Makefile, Makefile.vnet, Rules.mk:
  Move libxutil into vnet since it's only used there.
Many files:
  mvdir
2005-05-24 21:17:20 +00:00
arun.sharma@intel.com[kaf24] a60db765d4 bitkeeper revision 1.1523 (4292e3afzZhOD910qby84MZZyEFPZQ)
[PATCH] qemu-unregister-c0000.patch

QEMU fixes

 - VMX domain owns 0xcxxxx.
 - guard the fprintf with a log level check

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-24 08:19:59 +00:00
rneugeba@wyvis.research.intel-research.net 61a185c7b6 bitkeeper revision 1.1515.1.1 (42922641RfGxKY5iamyIb3lRFjlpzQ)
better support for vnc in qemu device model:
- different ports for different VMs
- allow reverse connect to a running viewer

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@intel.com>
2005-05-23 18:51:45 +00:00
kaf24@firebug.cl.cam.ac.uk 2659e3fbf5 bitkeeper revision 1.1508 (42916959z-L_1fAuVkGLI_kRj1O2VA)
Some more ioemu config hardcoding. Our 'target arch' is always i386.
Do we really need linker scripts??
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-23 05:25:45 +00:00
kaf24@firebug.cl.cam.ac.uk 99f38fa81f bitkeeper revision 1.1500 (428f08f1cclAJMtKpbiDrXknPvaMCA)
Small ioemu build fixes. Fix 'make clean' so we can switch between
32-bit and 64-bit build easily.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-21 10:09:53 +00:00
arun.sharma@intel.com[kaf24] 14bddbc804 bitkeeper revision 1.1499 (428f07695kp2_AbrdFwruhvfdJ6ZvQ)
[PATCH] x86-64-qemu-fix.patch

Unbreak x86-64 build.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-21 10:03:21 +00:00
kaf24@firebug.cl.cam.ac.uk 7abe880614 bitkeeper revision 1.1490 (428e17e3-aTEgwH1KsJrUT4WjK5zWQ)
Fix ioemu build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-20 17:01:23 +00:00
kaf24@firebug.cl.cam.ac.uk 8856705226 bitkeeper revision 1.1481 (428dbb983q1cvjneYqdtcPp89tOcqQ)
Remove docs and tests from qemu-ioemu: they mostly pertain to whole
platform (inc. cpu) emulation anyway. Move Makefile.target into the
target directory -- otherwise the build system sometimes gets confused
in a way that I do not understand.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-20 10:27:36 +00:00
kaf24@firebug.cl.cam.ac.uk 0df278a2d6 bitkeeper revision 1.1476 (428d0d8esmCTqdrDnpEQ1XlfV6CWGg)
New qemu-based ioemu for fully virtualised guests.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-19 22:05:02 +00:00
kaf24@firebug.cl.cam.ac.uk d431485326 bitkeeper revision 1.1389.1.24 (4275fe39zl4LNqHkDr0esLqsvTaLoA)
Fix ioemu makefile to not use 'uname -i'.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-02 10:17:29 +00:00
leendert@watson.ibm.com[kaf24] 6d59ce88ba bitkeeper revision 1.1379 (426ca278F5TOjFztt77FKYt8v457dg)
[PATCH] [PATCH] Assorted VMX patches

This patch contains the following VMX patches:

- ioemu: Update the address when doing a stosb/stosw/stosl. Without this patch
  stosb writes req->count times at the same location req->addr. Not exactly
  the intended semantics.

- xc_ptrace.c: Use the page_array to refer to partition memory. This allows
  you to use gdbserver on a VMX partition (and presumably partitions that use
  shadow page tables).

- dom0_ops.c: Preserve ECF_VMX_GUEST flag for gdbserver. Without it you
  cannot (re)set the VMX domain state.

- vmx.c: Added support for lmsw. Unmodified FreeBSD uses this when running
  inside a VMX partition.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>

===== tools/ioemu/iodev/cpu.cc 1.8 vs edited =====
2005-04-25 07:55:36 +00:00
arun.sharma@intel.com[iap10] f57176ef14 bitkeeper revision 1.1349 (4266f0e3WdYR9ou-iJ615G_cx6Whhg)
[PATCH] use-large-file-api.patch

Support > 2G root fs on i386.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-04-21 00:16:35 +00:00
iap10@freefall.cl.cam.ac.uk 3cb35dbf45 bitkeeper revision 1.1316 (4264261frL-EQxwgFFde16WtF01B4g)
trivial from Dave Jones
2005-04-18 21:26:55 +00:00
kaf24@viper.(none) fd33063f9c bitkeeper revision 1.1236.1.205 (424fd161S0p6f85LcRWpZCuo7kqBBg)
Fix tools build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-03 11:20:01 +00:00
leendert@watson.ibm.com[kaf24] 39d08bc1ba bitkeeper revision 1.1236.1.198 (424e4a89leX7XO7bU7Dkch4KS5zLhQ)
[PATCH] [PATCH] VMX support for MMIO/PIO in VM8086 mode

Memory mapped and port I/O is currently broken under VMX when the
partition is running in VM8086 mode. The reason is that the instruction
decoding support uses 32-bit opcode/address decodes rather 16-bit
decodes. This patch fixes that. In addition, the patch adds support for
the "stos" instruction decoding because this is a frequently used way
to clear MMIO areas such as the screen.

As an aside, vmx_platform.c should really reuse x86_emulate.c as much
as possible.

Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>

===== tools/ioemu/iodev/cpu.cc 1.7 vs edited =====
2005-04-02 07:32:25 +00:00
kaf24@firebug.cl.cam.ac.uk b4c34f2e39 bitkeeper revision 1.1236.1.168 (424baf28WMoJ5y8ZfokGG38qKUacvg)
memset arg ordering.
2005-03-31 08:04:56 +00:00
arun.sharma@intel.com[kaf24] b63443e247 bitkeeper revision 1.1236.1.157 (424a5bd9vDVxqBGBnc7AKIyONvJCyQ)
[PATCH] ioemu-x86-64-fixes.patch

Make ioemu compile on x86-64.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-03-30 07:57:13 +00:00
arun.sharma@intel.com[kaf24] 251675e107 bitkeeper revision 1.1236.1.8 (421da0af_4ZHSxnqpym3nlttZ_d5fQ)
[PATCH] term.patch

Enable text and RFB interface in the device models

Signed-off-by: Arun Sharma <arun.sharma@intel.com>

===== gui/Makefile 1.2 vs edited =====
2005-02-24 09:38:55 +00:00
iap10@freefall.cl.cam.ac.uk a9170d6352 bitkeeper revision 1.1188 (420d5244F1WAs2mvIW8E0-0RB5AlRw)
Subject: [PATCH] dm-destroy.patch

Clicking on the power off button calls xm destroy as well.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-12 00:48:04 +00:00
iap10@labyrinth.cl.cam.ac.uk 6e533199b1 bitkeeper revision 1.1159.1.556 (420951de12d7YPCDmxFldoqZYbe2cw)
Subject: [PATCH] pit-in-hv.patch

- Use ac_timer for PIT interrupt injection (more accurate time keeping)
- Accelerate some critical PIT I/O operations in the hypervisor
  (saves 15us per op). Cuts down guest timer interrupt handler execution time
  by a third.
- If the domain is scheduled out, make sure that interrupts are not lost
- Add a generic framework for device I/O interception

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 23:57:18 +00:00
iap10@labyrinth.cl.cam.ac.uk 3b66390a75 bitkeeper revision 1.1159.1.555 (42094892MsTPGiy_x_uFbwMVQuq4Qg)
Fix the synchronization issues between xend and the device model at 
startup time.

Initialize the shared page in the hypervisor. Otherwise, the hypervisor
might try to inject spurious interrupts into the guest due to
uninitialized data.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 23:17:38 +00:00
iap10@labyrinth.cl.cam.ac.uk 6d5c7e8551 bitkeeper revision 1.1159.212.119 (42080936hYySAGh0O5TePVvGrzAKtA)
Enable PCI.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 00:35:02 +00:00
iap10@labyrinth.cl.cam.ac.uk fe5c36a66a bitkeeper revision 1.1159.212.118 (420808adQbNXWTSEhY2Rqu5ALqDF5Q)
- Detect the CPU speed automatically, rather than having the user 
  specify a ips in bochsrc. The user can still specify it to override
  the auto-detected value.

- Care should be taken to make sure that tsc_per_bx_tick is not too
  small or too big. Otherwise, numerical precision issues may result
  in the wrong calculation of elapsed time

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 00:32:45 +00:00
iap10@labyrinth.cl.cam.ac.uk 7a966c632d bitkeeper revision 1.1159.212.116 (4208079bssB3TTrruGComoEvhNrq9Q)
Fix some of the time virtualization issues.

- Compute the elapsed time correctly in the cpu loop
- Try to inject interrupts in the vmexit handler

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 00:28:11 +00:00
iap10@labyrinth.cl.cam.ac.uk d78b499535 bitkeeper revision 1.1159.241.1 (4202bb72zRYg-QWeXrkKfXwmuL5I3A)
Add checking ISA DMA flag in cpu_loop. Also need to do bios_init manually
for now. With this change, floppy is functional.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-04 00:01:54 +00:00
iap10@labyrinth.cl.cam.ac.uk 4fb1a7d302 bitkeeper revision 1.1159.212.66 (42001b6f4kUEhmWXQmgg_vNH-AqiWQ)
Right now, the memory for the 1:1 physical mode page tables comes from the
VMX domain's memory. With this change, when the user asks for a domain with
M Megabytes of memory, we actually allocate M+N megabytes in xend, where
N is the memory for the page table pages.

This simplifies the code in the device models that maps guest memory (we
now map all of it) and the E820 map can also give the full M megabytes to
the guest.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 00:14:39 +00:00
kaf24@scramble.cl.cam.ac.uk 8fc66e7f57 bitkeeper revision 1.1159.212.56 (41faca1d8ReaIESo4E0ltuhh1uQMSg)
Enable ne2k driver in ioemu tools.
Signed-off-by: Xin B Li <xin..b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@intel.com>
2005-01-28 23:26:21 +00:00
kaf24@scramble.cl.cam.ac.uk b1fde707e7 bitkeeper revision 1.1159.212.55 (41fac93cdxxGNb_EjYMGmT6Ezzwr3g)
Use -O2 instead of -g when building ioemu tools.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@intel.com>
2005-01-28 23:22:36 +00:00
iap10@labyrinth.cl.cam.ac.uk f6f2064455 bitkeeper revision 1.1159.212.53 (41fabd0652DGdYKsgWToGTyAOUlZKg)
Fix the direction flag for string I/O instructions -- missing hunk from earlier patch

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-01-28 22:30:30 +00:00