All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	'Keir Fraser' <keir.fraser@eu.citrix.com>
Subject: Re: guest attempted write to read-only memory page.
Date: Thu, 25 Dec 2008 10:54:06 +0900	[thread overview]
Message-ID: <4952E7BE.1070103@jp.fujitsu.com> (raw)
In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD603BB49CE@pdsmsx502.ccr.corp.intel.com>

Tian, Kevin wrote:
>> From: Tian, Kevin
>> Sent: Monday, December 22, 2008 9:11 PM
>>> Possibly we should silence the shadow code too, at least 
>>> perhaps while in
>>> real mode or for a certain EIP range.
>>>
>> I'm not sure that's the right fix. Why is write access to rom disabled
>> before rom scan when etherboot is known to have write requirement?
>>
>> #ifdef HVMASSIST
>>  call _enable_rom_write_access
>>  call _clobber_entry_point
>>  call _copy_e820_table
>>  call smbios_init
>>  call _disable_rom_write_access
>> #endif
>>
>>  call _init_boot_vectors
>>
>>  mov  cx, #0xc800  ;; init option roms
>>  mov  ax, #0xe000
>>  call rom_scan
>>
>> Should we move disable action to post rom_scan? If shadow warning
>> is simply silenced for such case, it seems breaking the purpose of
>> disable_dom_write_access...
>>
> 
> I make a quick test, that warning disappears after moving disable
> action post rom_scan. But I haven't found the place triggering such
> write violation, as in previous revision write access is also disabled
> before rom_scan. It could come from recent bochs update on 
> expansion rom part by 18931.

Sorry for my late response.
That's a bug of mine.

Some option ROMs would do write accesses.
So rombios need to enable write acess before rom_scan.
I'll post a patch to fix.

Best Regards,

Akio Takebe

  parent reply	other threads:[~2008-12-25  1:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-22 10:12 guest attempted write to read-only memory page Tian, Kevin
2008-12-22 10:33 ` Keir Fraser
2008-12-22 13:11   ` Tian, Kevin
2008-12-22 13:20     ` Tian, Kevin
2008-12-22 13:42       ` Keir Fraser
2008-12-22 14:21         ` Tian, Kevin
2008-12-22 15:11           ` Keir Fraser
2008-12-23  2:37             ` Tian, Kevin
2008-12-25  1:54       ` Akio Takebe [this message]
2008-12-25  8:09         ` Keir Fraser
2008-12-25  8:36           ` Akio Takebe
2008-12-25  9:09             ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4952E7BE.1070103@jp.fujitsu.com \
    --to=takebe_akio@jp.fujitsu.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.