mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
Mostly bugfixes + Alexey's interface-based implementation
of the NMI monitor command. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJT/zeaAAoJEBvWZb6bTYby/QQP/0QjyI70Jri2/CyFQOVOEzau W79N1k7IjHaGQQau0Vu3GjhI0P7rhJ/xL789otr8f1oeBbM6c9n78mKf3sTXJ5RS u+7aVRyJtDYyzIc7FWigUiMUqaIXELHkv8FdA59F1eq0tvszjBi2xPf5RlRwq/9d vGD10ZubM/dY61lWUqxmgXp9gg/2Ewdm9vCZ7rBbzvAFg6ASreUXJ0/PUUU/lA6L 5JmfgQJg8ZtbEViTaVtEhpUlkOS6d0c6jnb8T1USLErwH/GUGS9AJba+/3WD+fKr Z37rZeB6Wl6bc0ZNjEliDSmcr+tetfz4A3j+mCUEksgnvL6o83bHkcIHPMDO9cvf lZ5csWiZaD7wqNUjI1pI4hpbKPPrsu+inypJnjmrd29roQ7tHsGzEIatN8922M3k PjnGL5VwQuFfKyndRJF8TfKKA465k+id2t6XSbEdU2m08thFDG2HZnGSCoDLs6Mz rEm4RK42AtdFdybrsirVofdKEJU5XmYRy612ZUSRd5Ki4PWk9UESMVvBrs0MZfep mVCak7tYKWHmll628xS+WM3qU8VyDpsQD5o8FuW6c1R9Rhs0VxJBcve4oapkm53P DXIYnFPImpmoEHltCOxx+07rf4g1O5O4r8gTdsE8xEjDBWelOUQWIuws25X+6tvW OZ7UglgB5bf0e3EIi0Ms =tbi2 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kvm/tags/for-upstream' into staging Mostly bugfixes + Alexey's interface-based implementation of the NMI monitor command. # gpg: Signature made Thu 28 Aug 2014 15:07:22 BST using RSA key ID 9B4D86F2 # gpg: Good signature from "Paolo Bonzini <pbonzini@redhat.com>" # gpg: aka "Paolo Bonzini <bonzini@gnu.org>" * remotes/kvm/tags/for-upstream: mc146818rtc: reinitialize irq_reinject_on_ack_count on reset target-i386: Add "tsc_adjust" CPU feature name target-i386: Add "mpx" CPU feature name vl: process -object after other backend options checkpatch.pl: adjust typedef definition to QEMU coding style x86: Clear MTRRs on vCPU reset x86: kvm: Add MTRR support for kvm_get|put_msrs() x86: Use common variable range MTRR counts target-i386: Don't forbid NX bit on PAE PDEs and PTEs spapr: Add support for new NMI interface s390x: Migrate to new NMI interface s390x: Convert QEMUMachine to MachineClass cpus: Define callback for QEMU "nmi" command kvm: run cpu state synchronization on target vcpu thread Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
38a01e55d2
22 changed files with 399 additions and 78 deletions
49
include/hw/nmi.h
Normal file
49
include/hw/nmi.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* NMI monitor handler class and helpers definitions.
|
||||
*
|
||||
* Copyright IBM Corp., 2014
|
||||
*
|
||||
* Author: Alexey Kardashevskiy <aik@ozlabs.ru>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License,
|
||||
* or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef NMI_H
|
||||
#define NMI_H 1
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_NMI "nmi"
|
||||
|
||||
#define NMI_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(NMIClass, (klass), TYPE_NMI)
|
||||
#define NMI_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(NMIClass, (obj), TYPE_NMI)
|
||||
#define NMI(obj) \
|
||||
INTERFACE_CHECK(NMI, (obj), TYPE_NMI)
|
||||
|
||||
typedef struct NMIState {
|
||||
Object parent_obj;
|
||||
} NMIState;
|
||||
|
||||
typedef struct NMIClass {
|
||||
InterfaceClass parent_class;
|
||||
|
||||
void (*nmi_monitor_handler)(NMIState *n, int cpu_index, Error **errp);
|
||||
} NMIClass;
|
||||
|
||||
void nmi_monitor_handle(int cpu_index, Error **errp);
|
||||
|
||||
#endif /* NMI_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue