qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] x86: Reboot CPU on triple fault - Version 6


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] x86: Reboot CPU on triple fault - Version 6
Date: Mon, 21 Apr 2008 13:53:33 +0200
User-agent: Thunderbird 1.5.0.8 (X11/20060911)

Anthony Liguori schrieb:
>>   Index: dyngen-exec.h
>> ===================================================================
>> --- dyngen-exec.h    (Revision 4215)
>> +++ dyngen-exec.h    (Arbeitskopie)
>> @@ -86,6 +86,7 @@
>>  extern int fprintf(FILE *, const char *, ...);
>>  extern int fputs(const char *, FILE *);
>>  extern int printf(const char *, ...);
>> +extern FILE *stderr;
>>   
> 
> This is unnecessary.

Right. I'll fix this with the next version.

>> +
>> +        qemu_system_reset_request();
>>   
> 
> This isn't the right function to use here.  If we supported ACPI
> shutdown, this would generate an ACPI shutdown request.  You probably
> want to just do:
> 
> cpu_interrupt(env, CPU_INTERRUPT_EXIT);

Your suggestion doesn't work for me either. qemu keeps hanging producing
lots of triple faults, but there is no CPU reset. Is there even a
function to correctly request a CPU reset only? Directly calling
cpu_reset doesn't work here.

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]