[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/5] Qemu: mark pci rom readonly
From: |
Xiao Guangrong |
Subject: |
[Qemu-devel] [PATCH v2 5/5] Qemu: mark pci rom readonly |
Date: |
Thu, 25 Oct 2012 17:23:19 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
Since it is ROM which is really readonly in the system
Signed-off-by: Xiao Guangrong <address@hidden>
---
hw/pci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 2ca6ff6..2a287bb 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1803,6 +1803,7 @@ static int pci_add_option_rom(PCIDevice *pdev, bool
is_default_rom)
}
pdev->has_rom = true;
memory_region_init_ram(&pdev->rom, name, size);
+ memory_region_set_readonly(&pdev->rom, true);
vmstate_register_ram(&pdev->rom, &pdev->qdev);
ptr = memory_region_get_ram_ptr(&pdev->rom);
load_image(path, ptr);
--
1.7.7.6
- [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, (continued)
- [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Xiao Guangrong, 2012/10/25
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Jan Kiszka, 2012/10/26
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Xiao Guangrong, 2012/10/29
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Jan Kiszka, 2012/10/29
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Xiao Guangrong, 2012/10/29
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Jan Kiszka, 2012/10/31
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Xiao Guangrong, 2012/10/31
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Jan Kiszka, 2012/10/31
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Xiao Guangrong, 2012/10/31
- Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly, Jan Kiszka, 2012/10/31
[Qemu-devel] [PATCH v2 5/5] Qemu: mark pci rom readonly,
Xiao Guangrong <=
[Qemu-devel] [PATCH v2 2/5] Qemu: update header files, Xiao Guangrong, 2012/10/25