Kip Macy
51a70df2db
fix XEN compilation
2009-05-02 22:22:00 +00:00
Doug Rabson
3e33218d77
Fix the Xen build for i386 PV mode.
2009-04-01 17:06:28 +00:00
John Baldwin
957f3ee2f7
Remove unused arg from npxinit(). Forgot to commit this file in the
...
last i386 FPU change.
2009-03-05 18:43:54 +00:00
Kip Macy
69f93ab8b5
- fix formatting
...
- fix types in ticks_to_system_time
2009-02-15 06:36:02 +00:00
Alan Cox
2f0b74fb06
Remove unnecessary page queues locking around vm_page_wakeup().
...
Approved by: kmacy
2009-02-14 22:07:22 +00:00
Kip Macy
ffc4f90610
Don't try to directly update page tables
2009-02-08 21:54:51 +00:00
Kip Macy
2650d60534
pass in smp_processor_id to identify the cpu in use
2009-02-05 04:00:55 +00:00
Kip Macy
bd1c698cab
adjust the way that idle happens so as to avoid missing timer interrupts
2009-02-05 02:01:18 +00:00
Kip Macy
476f05d531
make sure that interrupts are disabled when handling page faults et al
2009-02-03 03:43:00 +00:00
Bjoern A. Zeeb
e72f0a071c
Bring over the code from sys/i386/i386/mp_machdep.c, r187880
...
to make XEN config compile again:
- Allocate apic vectors on a per-cpu basis.
2009-01-31 21:40:27 +00:00
Kip Macy
3a6d1fcf9c
merge 186535, 186537, and 186538 from releng_7_xen
...
Log:
- merge in latest xenbus from dfr's xenhvm
- fix race condition in xs_read_reply by converting tsleep to mtx_sleep
Log:
unmask evtchn in bind_{virq, ipi}_to_irq
Log:
- remove code for handling case of not being able to sleep
- eliminate tsleep - make sleeps atomic
2008-12-29 06:31:03 +00:00
Kip Macy
23dc562170
Integrate 185578 from dfr
...
Use newbus to managed devices
2008-12-04 07:59:05 +00:00
Kip Macy
cbc936b6d8
fix initialization for case of normal kernbase
...
remove unused shutdown code
2008-12-04 07:28:13 +00:00
Kip Macy
e67fc8f258
only call hardclock on cpu0
...
pointed out by: Scott Long
2008-10-25 20:42:10 +00:00
Kip Macy
951f87e4ae
handle case where eflags represents actual flags value when
...
restoring interrupts
2008-10-25 04:46:02 +00:00
Kip Macy
1f5aa99363
Fix general issues with IPI support
2008-10-24 07:58:38 +00:00
Kip Macy
b1efbd6b47
Fix IPI support
2008-10-23 07:20:43 +00:00
Kip Macy
a51ac24407
Hook in ipi handlers
2008-10-21 08:03:12 +00:00
Kip Macy
764b7ef593
Implement infrastructure for gluing i386 ipi functions in to xen's infrastructure
2008-10-21 06:39:40 +00:00
Kip Macy
756fb0605f
Add routine for initializing AP clock
2008-10-21 06:38:40 +00:00
Kip Macy
39f8ee3024
Import interrupt management defines from latest xenlinux
2008-10-20 05:42:38 +00:00
Kip Macy
9bf38e47a3
- move gdt, ldt allocation to before KPT allocation
...
- fix bugs where we would:
- try to map the hypervisors address space
- accidentally kick out an existing kernel mapping for some domain creation memory allocation sizes
- accidentally skip a 2MB kernel mapping for some domain creation memory allocation sizes
- don't rely on trapping in to xen to read rcr2, reference through vcpu
- whitespace cleanups
2008-10-19 01:27:40 +00:00
Kip Macy
ba32964d08
GC unused values
2008-10-19 01:23:30 +00:00
Marius Strobl
6f04e7b9aa
Remove ipi_all() and ipi_self() as the former hasn't been used at
...
all to date and the latter also is only used in ia64 and powerpc
code which no longer serves a real purpose after bring-up and just
can be removed as well. Note that architectures like sun4u also
provide no means of implementing IPI'ing a CPU itself natively
in the first place.
Suggested by: jhb
Reviewed by: arch, grehan, jhb
2008-09-28 18:34:14 +00:00
Kip Macy
852c25eda2
move ipi_pcpu to evtchn.c
2008-09-26 05:54:24 +00:00
Kip Macy
920ba15bf9
Update xen/interface includes to the latest in mercurial
...
MFC after: 1 month
2008-09-26 05:29:39 +00:00
Kip Macy
4e01238d67
add initial ipi definitions
...
MFC after: 1 month
2008-09-25 07:11:04 +00:00
Kip Macy
9d741e6d59
Make nkpt dependent on the size of the initial memory allocation
...
MFC after: 1 month
2008-09-25 07:03:09 +00:00
Kip Macy
425eaba985
Change order of pcpu initialization so the pc_prvspace is set
...
MFC after: 1 month
2008-09-18 02:59:19 +00:00
Kip Macy
6cf8efdc48
fix initial page directory setup for APs to work when KERNBASE < 0xc0000000
...
MFC after: 1 month
2008-09-18 01:09:15 +00:00
Kip Macy
57bd99b3c5
Some people have very strange notions of how large KVA_PAGES should be. The
...
core of this change generalizes the initial page directory setup so that
the kernel can be given arbitrarily large or small.
- small formatting fixes
- update copyright
MFC after: 1 month
2008-09-17 19:11:37 +00:00
Kip Macy
6859a304c6
Get initial bootstrap of APs working under xen.
...
Note that the APs still blow up in sched_throw().
MFC after: 1 month
2008-09-10 07:11:08 +00:00
Kip Macy
1fc7c4a654
enable the xen_guest string so that the freebsd xen kernel will
...
at least pass muster with the loader on 3.0.3
Note that this doesn't actually make it work as Xen 3.0.3
appears to disallow recursive mappings on the page directory
2008-09-03 00:06:10 +00:00
Kip Macy
42e68d4d74
Accomodate the fact that the number of l1 pages varies with the size of the initially
...
allocated memory - this lets us boot with 3GB
MFC after: 1 month
2008-09-02 02:55:45 +00:00
Kip Macy
32a5d14b26
Fix problem with large memory configuration by ensuring that all NKPT
...
page table pages have been zeroed before entering them in the page
directory
MFC after: 1 month
2008-09-02 01:32:52 +00:00
Kip Macy
4e683d7252
Fix boot time pmap_growkernel panic for case where vm is allocated >= 768M
...
MFC after: 1 month
2008-08-21 02:57:02 +00:00
Kip Macy
18bad85737
- clean up interrupt handling for xen a tiny bit
...
- parse the command line in to kenv
- defer shutdown watcher until later in boot
MFC after: 1 month
2008-08-20 09:16:46 +00:00
Kip Macy
ecded8075f
protect queue_log not queue
...
MFC after: 1 month
2008-08-19 02:39:34 +00:00
Kip Macy
6786023a87
Fix compilation without INVARIANTS
...
MFC after: 1 month
2008-08-19 02:36:56 +00:00
Kip Macy
f0a565d1c5
translate machine addresses to physical addresses in new code in pmap_init
...
MFC after: 1 month
2008-08-17 23:36:52 +00:00
Kip Macy
886b1e498b
bypass call to trap when handling hypervisor_upcall
...
MFC after: 1 month
2008-08-17 23:35:36 +00:00
Kip Macy
e9c9d2fcc7
clean up initvalues to work correctly on PAE
...
MFC after: 1 month
2008-08-17 23:34:44 +00:00
Kip Macy
f0c468df71
Compile fixes for xen build.
...
MFC after: 1 month.
2008-08-15 04:00:44 +00:00
Kip Macy
fbcad32779
Import i386 xen sub-arch files.
...
MFC after: 2 weeks
2008-08-12 19:48:18 +00:00