aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware
Commit message (Collapse)AuthorAgeFilesLines
* x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded ↵Keir Fraser2010-07-251-4/+1
| | | | | | targets. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: clear the whole shared-info page when shutting down xenbusKeir Fraser2010-07-221-3/+2
| | | | | | since the contents might be in the wrong word-size for later users. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* build: Make all GIT download URLs depend correctly on GIT_HTTP={y,n}Keir Fraser2010-07-211-2/+5
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader/gpxe: Add a couple of bug-fix patches from upstream gpxeKeir Fraser2010-07-203-0/+157
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: clear the xenbus event-channel when we're done with it.Keir Fraser2010-07-203-14/+33
| | | | | | | Otherwise a later xenbus client that naively waits for the rising edge could get stuck. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* tools: Update distclean target to remove auto-gen'ed tarballs.Keir Fraser2010-07-202-0/+10
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Download gpxe bits via HTTP rather than GIT protocol.Keir Fraser2010-07-201-1/+3
| | | | | | Latter is faster but won't work through all firewall setups. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Build GPXE from upstream git repo, latest release tag.Keir Fraser2010-07-205-28/+28
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: gpxe build fix for NetBSDKeir Fraser2010-07-192-0/+13
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* hvmloader: customize the SMBIOS strings based on xenstore keysKeir Fraser2010-07-092-12/+84
| | | | | | ...written at domain creation time by xapi. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* hvmloader: Add a xenbus frontend so it can read values from xenstoreKeir Fraser2010-07-094-1/+216
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* rombios: use explicit SS prefix for calculated on-stack array accesses.Keir Fraser2010-07-081-2/+2
| | | | | | | The bcc compiler gets constant array offsets right but does all calculated array offsets via DS. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* rombios: move the stack to 0x9e000 and protect it with an e820 entryKeir Fraser2010-07-082-11/+62
| | | | | | | | | | so that we don't corrupt E820_RAM memory with stack ops in S3 wakeup. It has to move up so the lowest contiguous RAM area is >= 512MiB. This relies on the previous fix to let DS != SS Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com> Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* rombios: wait 30s after a failed bootKeir Fraser2010-07-081-15/+6
| | | | | | | Prevents waiting forever for a keypress that may never come if boot is unattended. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* rombios: fix implicit assumption that DS == SSKeir Fraser2010-07-061-7/+5
| | | | | | by passing boot device info by value, not by reference. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* rombios: pause for a keypress after a failed bootKeir Fraser2010-07-061-1/+21
| | | | | | | rombios: inform the user and pause for a keypress after a failed boot rather than powering off immediately. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* gpxe: Add eb-roms.h to hgignore list and build ROMs serially.Keir Fraser2010-06-291-0/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gpxe: Build e1000 ROM with PCI-ID matching that advertised by qemu-dm.Keir Fraser2010-06-294-6375/+4
| | | | | | | | | Also build gpxe without -Werror and require it always to be built (do not include a pre-built binary in our source repo). Portions of this patch are from Gianni Tedesco <gianni.tedesco@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMERKeir Fraser2010-06-042-1/+3
| | | | | | | | | ...because the default timesource (TSC) drifts under load. The flag is only defined in ACPI 3.0, and we provide ACPI 2.0 tables, but Windows seems happy enough to obey it anyway. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* hvmloader: Replace unportable usage of GNU head with portable awk.Keir Fraser2010-02-221-1/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: fix vgatype detecting issueKeir Fraser2010-02-221-1/+2
| | | | | | | | | | | | When graphics card is assigned to a guest as a secondary VGA, without gfx_passthru and emulated VGA is the primary VGA, hvmloader misreads gfx_passthru is specified if VGA device is found after the emulated VGA. This patch fix this issue. If emulated VGA is found, hvmloader preserves it and loads vgabios of the emulated VGA. Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
* hvmloader: Fix an ACPI asl bug.Keir Fraser2010-02-151-1/+1
| | | | | | | | Fix an ACPI asl bug by explicitly convert PRS to buffer, otherwise PRS would be parsed as integer if less than 32/64 bits (according to ACPI 1.0 or 2.0). Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
* Vcpu hotplug: Move ACPI processor from \_PR to \_SBKeir Fraser2010-02-151-7/+7
| | | | | | | | | | Move processor from \_PR to \_SB. ACPI processor can be defined under \_PR or \_SB. However, recently os like linux 2.6.30/32 support cpu hotplug better for \_SB processor object. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com> Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix parallel build of ACPI tables.Keir Fraser2010-02-122-19/+20
| | | | | | | | | | | Make build.c dependency on ssdt_{pm,tpm}.h explicit, else they can be built in the wrong order. Also, improve naming of target DSDT structures, and specify -p option to iasl so that all generated files for a given target have target-unique names, hence build can proceed safely in parallel. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix comment style in ssdt_tpm.aslKeir Fraser2010-02-121-17/+19
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Build a compatibility DSDT with only 15 processor objects.Keir Fraser2010-02-113-19/+44
| | | | | | | | | Deploy this smaller DSDT where possible: this is required to boot Windows 2000, which only supports up to 15 processors and will blue screen if it sees more processor objects than that (even inactive ones). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Remove checked-in ready-compiled SSDT_PM and SSDT_TPM.Keir Fraser2010-02-114-238/+11
| | | | | | These can be built at the same time as the DSDT. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Do not leave compiled DSDT checked in to tree.Keir Fraser2010-02-111-11046/+0
| | | | | | | It's big and small changes generate huge diffs. People building the firmware will have to ensure they have iasl installed. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix CPU hotplug notify handler in ACPI DSDT.Keir Fraser2010-02-033-8858/+8813
| | | | | | | | By merging PRSC and NTFY methods we simplify the code, improve efficiency, and fix a bug where PRSC iterated 0-255 but NTDY could only handle CPU numbers 0-127. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Add ACPI fixed sleep buttonKeir Fraser2010-01-201-1/+1
| | | | Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
* hvmloader: mp table fixKeir Fraser2009-12-301-1/+1
| | | | | | The bug causes noapic PAE Windows 2k3 boot failure. Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
* hvmloader: Fix Windows XP standby with cirrus VGAKeir Fraser2009-12-282-10974/+10999
| | | | | | | | | | | Fix it by telling OSPM don't power down vga card on entering S3 state. The trick works for XP and Windows2003, but Vista still refuse to allow S3. It is picked from kvm-userdapce.git commit 60e85d, author "Gleb Natapov". Signed-off-by: Yu Ke <ke.yu@intel.com>
* hvmloader: Only mark LTP1 present in ACPI DSDT if parport really is there.Keir Fraser2009-12-246-10937/+10956
| | | | Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
* HVM vcpu add/remove: parse 'vcpu_avail' to firmware and set up madtKeir Fraser2009-12-143-5/+9
| | | | | | | | | | | | accordingly -- currently firmware has got 'vcpus' from xend, this patch add parse 'vcpu_avail' to firmware; -- setup madt 'lapic' subitems of processors accoring to vcpus and vcpu_avail which finally come from config; Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* HVM vcpu add/remove: setup dsdt infrastructure by mk_dsdt.c for vcpu add/removeKeir Fraser2009-12-147-7793/+11186
| | | | | | | | | | | | | | In order to support HVM vcpu add/remove, we need set dsdt infrastructure. -- By using mk_dsdt.c, it auto-produce related asl code when compiling. -- It define processor related objects and control methods (_MAT, _EJ0, _STA, etc). -- It also define GPE _L02 and Notify control method for SCI interrupt, which will trigger HVM acpi driver to add/remove cpu. Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix bug in 20510:749b5d46e7a9 (GPE notifications)Keir Fraser2009-12-012-315/+315
| | | | | | The GPE notification decision tree was inverted. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* build: Execute mk_dsdt with pathKeir Fraser2009-11-271-1/+1
| | | | Signed-off-by: Simon Horman <horms@verge.net.au>
* hvmloader: Auto-generate IRQ routing tables in ACPI DSDT.Keir Fraser2009-11-263-8259/+7789
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Auto-generate the lengthy pattern-based sections of ACPI DSDT.Keir Fraser2009-11-264-16476/+6986
| | | | | | | At the same time, replace a lengthy linear GPE notification method, with a logarithmic binary chop. Based on a patch by Simon Horman. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Advertise ECC memory in SMBIOS tables.Keir Fraser2009-11-251-1/+1
| | | | | | | | | Microsoft's Windows logo certified hardware requires ECC; since the SVVP certification runs the same test on the guest, Xen domains will currently fail it. From: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* rombios: don't busy-wait for keystrokesKeir Fraser2009-11-231-1/+1
| | | | | | | Spinning waiting for the keyboard is a bit rude on a virtual machine. Wait for an interrupt instead. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Extend the max vcpu number for HVM guest.Keir Fraser2009-10-291-37/+10
| | | | | | | | | | | | - Originally the max vcpu number for HVM guest is 32, this patch extend the number to 128 on x86_64 hypervisor. (For i386 hypervisor, the max vcpu number is still 32). - This patch extends the mp-table size to fit more vcpus. - HVM PV driver should call VCPUOP_register_vcpu_info hypercall to initialize the vcpu info if the vcpu number is more than 32. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: Guests should scan CPUID range 40000000-4000ff00 for Xen leaves.Keir Fraser2009-09-161-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 passthru:: graphics passthroughKeir Fraser2009-09-011-2/+9
| | | | | | | | | | This patch supports basic gfx passthrough on xen side: - add a VGA type for gfx passthrough, and get the size of VGA bios of passthrouged gfx in hvmloader - add a config option 'gfx_passthru' for gfx passthrough Signed-off-by: Ben Lin <ben.y.lin@intel.com> Signed-off-by: Weidong Han <weidong.han@intel.com>
* hvmloader: Regression tests need 16MB to run. Check for this.Keir Fraser2009-08-061-0/+6
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits.Keir Fraser2009-07-241-1/+2
| | | | Signed-off-by: Joe Jin <joe.jin@oracle.com>
* hvmloader: Add new test for MSR_SHADOW_GS_BASE validity after SWAPGS ↵Keir Fraser2009-07-164-18/+109
| | | | | | instruction. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: Allow delivery of legacy 8259 interrupts to VCPUs != 0.Keir Fraser2009-07-012-23/+29
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvmloader: pass-through: multi-function PCI hot-plugKeir Fraser2009-06-272-1032/+15633
| | | | | | | | | This registers information to allow guests to recognise non-zero functions when hot-plugged. Cc: Dexuan Cui <dexuan.cui@intel.com> Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
* tools: don't require hardcoded firmware path in guest config fileKeir Fraser2009-06-231-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>