spapr.c (c86580b889a0c22deba3afd4672472f23a1249d0) spapr.c (e35704ba9ce0cd1e3c401f3bfbf3faf98b0b6885)
1/*
2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
3 *
4 * Copyright (c) 2004-2007 Fabrice Bellard
5 * Copyright (c) 2007 Jocelyn Mayer
6 * Copyright (c) 2010 David Gibson, IBM Corporation.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 11 unchanged lines hidden (view full) ---

20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27#include "sysemu/sysemu.h"
1/*
2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
3 *
4 * Copyright (c) 2004-2007 Fabrice Bellard
5 * Copyright (c) 2007 Jocelyn Mayer
6 * Copyright (c) 2010 David Gibson, IBM Corporation.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 11 unchanged lines hidden (view full) ---

20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27#include "sysemu/sysemu.h"
28#include "sysemu/numa.h"
28#include "hw/hw.h"
29#include "hw/fw-path-provider.h"
30#include "elf.h"
31#include "net/net.h"
32#include "sysemu/block-backend.h"
33#include "sysemu/cpus.h"
34#include "sysemu/kvm.h"
35#include "kvm_ppc.h"

--- 1492 unchanged lines hidden (view full) ---

1528 /* Graphics */
1529 if (spapr_vga_init(phb->bus)) {
1530 spapr->has_graphics = true;
1531 machine->usb |= defaults_enabled();
1532 }
1533
1534 if (machine->usb) {
1535 pci_create_simple(phb->bus, -1, "pci-ohci");
29#include "hw/hw.h"
30#include "hw/fw-path-provider.h"
31#include "elf.h"
32#include "net/net.h"
33#include "sysemu/block-backend.h"
34#include "sysemu/cpus.h"
35#include "sysemu/kvm.h"
36#include "kvm_ppc.h"

--- 1492 unchanged lines hidden (view full) ---

1529 /* Graphics */
1530 if (spapr_vga_init(phb->bus)) {
1531 spapr->has_graphics = true;
1532 machine->usb |= defaults_enabled();
1533 }
1534
1535 if (machine->usb) {
1536 pci_create_simple(phb->bus, -1, "pci-ohci");
1536
1537 if (spapr->has_graphics) {
1537 if (spapr->has_graphics) {
1538 USBBus *usb_bus = usb_bus_find(-1);
1539
1540 usb_create_simple(usb_bus, "usb-kbd");
1541 usb_create_simple(usb_bus, "usb-mouse");
1538 usbdevice_create("keyboard");
1539 usbdevice_create("mouse");
1542 }
1543 }
1544
1545 if (spapr->rma_size < (MIN_RMA_SLOF << 20)) {
1546 fprintf(stderr, "qemu: pSeries SLOF firmware requires >= "
1547 "%ldM guest RMA (Real Mode Area memory)\n", MIN_RMA_SLOF);
1548 exit(1);
1549 }

--- 254 unchanged lines hidden ---
1540 }
1541 }
1542
1543 if (spapr->rma_size < (MIN_RMA_SLOF << 20)) {
1544 fprintf(stderr, "qemu: pSeries SLOF firmware requires >= "
1545 "%ldM guest RMA (Real Mode Area memory)\n", MIN_RMA_SLOF);
1546 exit(1);
1547 }

--- 254 unchanged lines hidden ---