pc.c (48008198270e3ebcc9394401d676c54ed5ac139c) pc.c (7e83a77f96ee18cb891f309dc617caa5e07ff51e)
1/*
2 * QEMU PC System Emulator
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

1193
1194 /*
1195 * Check if an HPET shall be created.
1196 *
1197 * Without KVM_CAP_PIT_STATE2, we cannot switch off the in-kernel PIT
1198 * when the HPET wants to take over. Thus we have to disable the latter.
1199 */
1200 if (!no_hpet && (!kvm_irqchip_in_kernel() || kvm_has_pit_state2())) {
1/*
2 * QEMU PC System Emulator
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

1193
1194 /*
1195 * Check if an HPET shall be created.
1196 *
1197 * Without KVM_CAP_PIT_STATE2, we cannot switch off the in-kernel PIT
1198 * when the HPET wants to take over. Thus we have to disable the latter.
1199 */
1200 if (!no_hpet && (!kvm_irqchip_in_kernel() || kvm_has_pit_state2())) {
1201 /* In order to set property, here not using sysbus_try_create_simple */
1202 hpet = qdev_try_create(NULL, TYPE_HPET);
1203 if (hpet) {
1204 /* For pc-piix-*, hpet's intcap is always IRQ2. For pc-q35-1.7
1205 * and earlier, use IRQ2 for compat. Otherwise, use IRQ16~23,
1206 * IRQ8 and IRQ2.
1207 */
1208 uint8_t compat = object_property_get_uint(OBJECT(hpet),
1209 HPET_INTCAP, NULL);

--- 785 unchanged lines hidden ---
1201 hpet = qdev_try_create(NULL, TYPE_HPET);
1202 if (hpet) {
1203 /* For pc-piix-*, hpet's intcap is always IRQ2. For pc-q35-1.7
1204 * and earlier, use IRQ2 for compat. Otherwise, use IRQ16~23,
1205 * IRQ8 and IRQ2.
1206 */
1207 uint8_t compat = object_property_get_uint(OBJECT(hpet),
1208 HPET_INTCAP, NULL);

--- 785 unchanged lines hidden ---