Keir Fraser
006e7188d4
pv-grub: On x86_64, also build an x86_32 pv-grub
...
This requires suffixing obj directories and having grub compiled
outside sources.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-14 13:46:48 +01:00
Keir Fraser
03d1528a6a
stubdom: for safety, tell lwip we use the heap in the event handler
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-11 15:00:06 +01:00
Keir Fraser
a9c83dc720
prefix mini-os lists with minios_, drop QEMU_ prefix from QEMU_LIST_*
...
That permits to reduce the amount of difference with upstream.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-08 10:48:48 +01:00
Keir Fraser
168d8692c8
stubdom: turn off_t 64bit on x86
...
We can decide to make off_t 64bit instead of implementing the LFS
tricks. Name corresponding functions foo64 to permit simple caml
programs linking.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-08 10:45:30 +01:00
Keir Fraser
7a65b19d09
mini-os: Fix 32bit compilation of fs-front.c
...
Reported-by: Trolle Selander <trolle.selander@eu.citrix.com >
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-04 16:45:11 +01:00
Keir Fraser
e5ba23a1d9
FSIF: extend protocol to multi-grant requests and multi-page ring
...
To improve throughput and inline the stat response.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk >
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-01 09:37:10 +01:00
Keir Fraser
adacb92a2b
mini-os: make init_pcifront fail early if there is no backend
...
Else, we would leave entries in xenstore, which disturbs xend.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-31 13:30:24 +01:00
Keir Fraser
ae41a026ab
minios: grant table map (gntdev) bug fixes
...
* Uninitialized dev_bus_addr argument to GNTTABOP_unmap_grant_ref
results in an angry hypervisor.
* Set errno in libxc and return -1 on error.
* op.status is a int16_t, so it should be printed with PRId16.
* Don't print domids[0] or refs[0] if the ptr is NULL. It's more
polite to crash later, after the message has been printed.
Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com >
2008-07-24 17:34:50 +01:00
Keir Fraser
b45184b0fc
minios: Fix build on some gcc versions.
...
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-07-24 17:33:40 +01:00
Keir Fraser
7d0b678231
minios: grant table map (gntdev) for minios
...
I've implemented a grant map for mini-os to support the xc_gnttab_*()
functions, the equivalent of gntdev in linux. This is useful for my
work in putting xenstored in a stub domain.
Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com >
2008-07-24 14:14:27 +01:00
Keir Fraser
37551e071c
mini-os: fix FS frontend index reading
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-21 09:38:33 +01:00
Keir Fraser
f60b652448
mini-os: fix fs-front.c debugging prints
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-21 09:38:19 +01:00
Keir Fraser
ca28885fa7
mini-os: export allocate_ondemand
...
allocate_ondemand can be used to allocate addresse space. Primarily
used for mapping MFNs, it can also be used e.g. to map grant refs.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-18 15:45:06 +01:00
Keir Fraser
93a9aafe96
mini-os is missing list_top in its list.h
...
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-07-18 15:44:39 +01:00
Keir Fraser
16519cc5e8
mini-os: add stack walking debug
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-18 14:09:14 +01:00
Keir Fraser
9415ef36a1
stubdom: add functions for caml runtime
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-17 13:21:37 +01:00
Keir Fraser
0e5b7a7991
stubdom: fixes for old gcc & binutils
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-11 15:37:31 +01:00
Keir Fraser
e7329de453
stubdom: do not use realpath, new in make 3.81
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-11 12:45:06 +01:00
Keir Fraser
49ecbb58e0
stubdom: Fixes for gcc 4.2.4 32bit
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-10 15:32:18 +01:00
Keir Fraser
8f96998338
stubdom: fixes to compile with qemu-xen
...
This adds fixes to the stub domain build into compiling Ian Jackson's
qemu-xen. The most notable change is that mini-os headers now
#include each other through a mini-os/ prefix, so that we can turn all
-I into -isystem and still be sure that we include Mini-OS headers
(and not qemu's console.h or blktaplib's list.h for instance...).
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-10 14:15:46 +01:00
Keir Fraser
a4a2f4a813
Fix a couple of Grzegorz Milos copyright lines.
...
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-07-10 10:02:15 +01:00
Keir Fraser
087adc9638
minios: Add missing fcntl.h.
...
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-07-09 16:00:05 +01:00
Keir Fraser
5c53e82c3f
stubdom: add stub functions to reduce qemu patches
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-09 15:58:20 +01:00
Keir Fraser
d6521a015d
stubdom: fix copy/paste typo in select()
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-08 16:12:23 +01:00
Keir Fraser
926da77e4a
stubdom: fix pass-through compilation
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-05 14:00:19 +01:00
Keir Fraser
760dd6f073
stubdom: gcc-4.3 support
...
It seems we need to provide limits.h in the gcc-4.3 case.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-04 18:00:04 +01:00
Keir Fraser
ce5c899f22
stubdom: use host's gcc
...
This makes stubdom use the host's gcc instead of downloading/compiling
binutils+gcc. That requires a bunch of changes and even uncovered a
few bugs, but saves a lot of time.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-04 17:47:11 +01:00
Keir Fraser
38cfc3b8d0
minios: PIRQ and MSI/MSI-X support
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-02 17:26:42 +01:00
Keir Fraser
de4e084064
stubdom: PCI passthrough support via PV-PCI
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-02 13:54:20 +01:00
Isaku Yamahata
3819ac39eb
merge with xen-unstable.hg
2008-07-02 11:30:37 +09:00
Keir Fraser
1e25c34bdc
minios: proper frees are now handled, so drop the FIXME comment
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-07-01 14:50:35 +01:00
Keir Fraser
b4e6f01f78
stubdom: fix libc-verbose non-lwip compilation
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-30 09:51:34 +01:00
Keir Fraser
639f3f1a22
minios: fix add_id_to_freelist(0)
...
add_id_to_freelist(0) would make get_id_from_freelist() always return 0.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-20 17:45:23 +01:00
Keir Fraser
0e05d6cdd8
minios: do not systematically free the page under shared info, as the
...
guest booted by PV-GRUB will need it.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-20 17:44:50 +01:00
Keir Fraser
030c31dd18
minios: fix gnttab allocation boundary
...
The gnttab_sem is already fed during initialization's put_free_entry
loop.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-18 09:38:11 +01:00
Keir Fraser
a2c7db64f5
Add PV-GRUB
...
This fetches GRUB1 sources, applies the {graphical, print function,
save default, and ext3_256byte} patches from debian, and applies a
patch to make it work on x86_64 and port it to Mini-OS. By using
libxc, PV-GRUB can then "kexec" the loaded kernel from inside the
domain itself, hence permitting to avoid the security-concerned
pygrub.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-18 09:36:47 +01:00
Keir Fraser
7074b13cee
minios: fix declaration after code
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-18 09:35:06 +01:00
Keir Fraser
0a9b2d786b
stubdom: fix using minios frontends directly when libc is actived
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-18 09:32:50 +01:00
Keir Fraser
dbd56b5c30
minios,stubdom: Add OBJ_DIR parameter to compile outside sources,
...
which permits to easily compile mini-os in various flavors. Also clean
some parts of stubdom build.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-17 09:36:25 +01:00
Keir Fraser
ac1bdbe7b9
minios can cope with >4G CR3 since it never uses it
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-12 09:24:35 +01:00
Isaku Yamahata
d20f38afda
merge with xen-unstable.hg
2008-06-19 12:46:26 +09:00
Keir Fraser
ba65563c1b
minios: Fix >4GB machine addresses
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-10 16:59:24 +01:00
Isaku Yamahata
ac538d5060
minios/ia64: fix EFI_RUNTIME_SERVICES_SIGNATURE value
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-10 14:58:27 +09:00
Keir Fraser
c68ffdc4fa
minios: add proper shutdown facilities
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-09 13:26:30 +01:00
Keir Fraser
0ba222a6fd
stubdom: fetch command line from start_info instead of xenstore
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-09 13:26:05 +01:00
Keir Fraser
2aba927207
stubdom: permit compilation without lwip
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-09 09:46:32 +01:00
Keir Fraser
2b888b8d42
minios: use inlines instead of macros for bswap*
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-09 09:46:16 +01:00
Keir Fraser
226fe60191
minios: add a blkfront synchronous interface
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-05 13:03:31 +01:00
Keir Fraser
e49b738ccf
stubdom: Add console reading support
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-06-03 09:32:50 +01:00
Keir Fraser
ddbd09069c
stubdom: Save main_thread value by moving it out from app_bss which
...
gets cleared.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-05-28 09:31:04 +01:00