Keir Fraser
9cdbfef570
minios: blkfront should set protocol node
...
From: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-09-24 10:18:20 +01:00
Keir Fraser
9a744273ce
mini-os: adding some missing posix function declarations
...
Adding some missing posix function declarations, to get rid of some
qemu-remote compile time warnings.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com >
2008-09-17 13:10:36 +01:00
Keir Fraser
e388539d78
stubdom: fix munmap's update_va_mapping flag passing, thus fixing
...
INVLPG passing
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-28 13:09:02 +01:00
Keir Fraser
7e0fe5d8f4
stubdom: add v?errx? and v?warnx? functions
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 14:57:51 +01:00
Keir Fraser
1583e7e448
mini-os: Fix build failure with void* arithmetic.
...
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-08-27 13:31:01 +01:00
Keir Fraser
13d5024794
mini-os: Add printf format checking to xenbus_printf
...
Reported-by: "Daniel P. Berrange" <berrange@redhat.com >
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:48:39 +01:00
Keir Fraser
839dac782f
stubdom: support quotes in argument passing
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:47:49 +01:00
Keir Fraser
fe2998c24a
stubdom: make munmap work in batches to fix stack overflow
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:47:24 +01:00
Keir Fraser
84901438e6
mini-os: make xenbus_read_integer and xenbus_printf take const strings
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:46:22 +01:00
Keir Fraser
6c5aecbf01
stubdom: add syslog functions
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:45:42 +01:00
Keir Fraser
dcd4913503
stubdom: add dummy pthread_mutexattr*
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:45:09 +01:00
Keir Fraser
1cbf503b9d
stubdom: int32_t is provided by stdint.h, not sys/types.h
...
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com >
2008-08-27 09:44:51 +01:00
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