Revision a8170e5e target-i386/kvm.c
b/target-i386/kvm.c | ||
---|---|---|
229 | 229 |
return -ENOSYS; |
230 | 230 |
} |
231 | 231 |
|
232 |
static void kvm_mce_inject(CPUX86State *env, target_phys_addr_t paddr, int code)
|
|
232 |
static void kvm_mce_inject(CPUX86State *env, hwaddr paddr, int code)
|
|
233 | 233 |
{ |
234 | 234 |
uint64_t status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN | |
235 | 235 |
MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S; |
... | ... | |
257 | 257 |
int kvm_arch_on_sigbus_vcpu(CPUX86State *env, int code, void *addr) |
258 | 258 |
{ |
259 | 259 |
ram_addr_t ram_addr; |
260 |
target_phys_addr_t paddr;
|
|
260 |
hwaddr paddr;
|
|
261 | 261 |
|
262 | 262 |
if ((env->mcg_cap & MCG_SER_P) && addr |
263 | 263 |
&& (code == BUS_MCEERR_AR || code == BUS_MCEERR_AO)) { |
... | ... | |
290 | 290 |
{ |
291 | 291 |
if ((first_cpu->mcg_cap & MCG_SER_P) && addr && code == BUS_MCEERR_AO) { |
292 | 292 |
ram_addr_t ram_addr; |
293 |
target_phys_addr_t paddr;
|
|
293 |
hwaddr paddr;
|
|
294 | 294 |
|
295 | 295 |
/* Hope we are lucky for AO MCE */ |
296 | 296 |
if (qemu_ram_addr_from_host(addr, &ram_addr) || |
Also available in: Unified diff