- 30 Jul, 2012 2 commits
-
-
Anthony Liguori authored
* bonzini/scsi-next: (32 commits) virtio-scsi: enable MSI-X support virtio-scsi: add ioeventfd support virtio-scsi: report parameter change events virtio-scsi: do not report dropped events after reset virtio-scsi: Report missed events virtio-scsi: Implement hotplug support for virtio-scsi scsi: report parameter changes to HBA drivers scsi-disk: report resized disk via sense codes scsi: establish precedence levels for unit attention scsi: introduce hotplug() and hot_unplug() interfaces for SCSI bus scsi: add tracepoint for scsi_req_cancel scsi-disk: removable hard disks support load/eject scsi-disk: Fail medium writes with proper sense for readonly LUNs scsi-disk: improve the lba-out-of-range tests for read/write/verify scsi-disk: rd/wr/vr-protect !=0 is an error scsi-disk: support toggling the write cache scsi-disk: parse MODE SELECT commands and parameters scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR scsi-disk: adjust offsets in MODE SENSE by 2 scsi-disk: support emulated TO_DEV requests ...
-
Anthony Liguori authored
* commit '6c779f22': Change ram_save_block to return -1 if there are no more changes ram: save_live_setup() we don't need to synchronize the dirty bitmap. ram: iterate phase ram: save_live_complete() only do one loop ram: save_live_setup() don't need to sent pages savevm: split save_live into stage2 and stage3 savevm: split save_live_setup from save_live_state savevm: introduce is_active method savevm: Refactor cancel operation in its own operation savevm: remove SaveLiveStateHandler savevm: remove SaveSetParamsHandler savevm: Live migration handlers register the struct directly savevm: Use a struct to pass all handlers
-
- 29 Jul, 2012 3 commits
-
-
Vitaly Chipounov authored
According to the Intel manual "Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3", "3.4.4 Segment Loading Instructions in IA-32e Mode": "When in compatibility mode, FS and GS overrides operate as defined by 32-bit mode behavior regardless of the value loaded into the upper 32 linear-address bits of the hidden descriptor register base field. Compatibility mode ignores the upper 32 bits when calculating an effective address." However, the code misses the 64-bit mode case, where an instruction with address and segment size override would be translated incorrectly. For example, inc dword ptr gs:260h[ebx*4] gets incorrectly translated to: (uint32_t)(gs.base + ebx * 4 + 0x260) instead of gs.base + (uint32_t)(ebx * 4 + 0x260) Signed-off-by:
Vitaly Chipounov <vitaly.chipounov@epfl.ch> Reviewed-by:
Max Filippov <jcmvbkbc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
Past contributions since 2012-01-13 were only made by Red Hat people, so they are already available under GPLv2+. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Stefan Weil <sw@weilnetz.de> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Dunrong Huang authored
This patch will fix the following linking failed: LINK qemu-ga gcc: error: qga/../qapi-generated/qga-qapi-types.o: No such file or directory gcc: error: qga/../qapi-generated/qga-qapi-visit.o: No such file or directory gcc: error: qga/../qapi-generated/qga-qmp-marshal.o: No such file or directory make: *** [qemu-ga] Error 1 Commit cdc976b0 changes the dependencies of qemu-ga to depend "../qapi-generated/qga-qapi-types.o", which will be expanded to "qga/../qapi-generated/qga-qapi-types.o" when building qemu-ga. In top-level Makefile, we defined a target "qapi-generated/qga-qapi-types.o" which was not equal to "qga/../qapi-generated/qga-qapi-types" in the Makefile world. So "No such file" error happened when qemu-ga was linking. The easy approach to fix is to change the target name to "qga/../qapi-generated/qga-qapi-types.o", but it is weird. So, in order to solve it more graciously, I move those temporary files(qga-qapi-*.{c,h}) qemu-ga depends on to qemu-ga/qapi-generated, this makes dependencies more clearer. Signed-off-by:
Dunrong Huang <riegamaths@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- 28 Jul, 2012 8 commits
-
-
Blue Swirl authored
System headers (e.g. gutils.h) may define 'inline', #undefine it before #defining. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Blue Swirl authored
It's silly and non-conforming to standards to return void, don't do it. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Peter Maydell authored
Drop a duplicate definition of the 'disabled' property from the escc qdev property list: this redefinition is currently effectively ignored but will become an error. (The duplication was inadvertently introduced in 2009 in commit ec02f7de .) Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Acked-by:
Andreas Färber <afaerber@suse.de> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
After commit dcff25f2 , Dependency file are taken from the directories that have a Makefile.objs file. This is not enough, since files can be included from other directories. So, pick them from directories that have an object file in them. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
No reason to leave them out, and it will ensure that the dependencies are picked up. Later we can perhaps move the files to another directory to avoid ../ usage. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Eduardo Habkost authored
Otherwise 'make check' won't recompile files that need to be recompiled because of header changes. To reproduce the bug, run: $ make check # succeeds $ echo B0RKED > hw/mc146818rtc_regs.h $ make check # is supposed to try to rebuild tests/rtc-test.o and fail Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Acked-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Peter Maydell authored
The qemu_chr_new() function doesn't set errno on failure, so don't print strerror(errno) on the error handling path when dealing with the -serial, -parallel and -virtioconsole arguments. This avoids nonsensical error messages like: $ ./arm-softmmu/qemu-system-arm -serial wombat qemu: could not open serial device 'wombat': Success We also rephrase the message slightly to make it a little clearer that we're expecting the name of a QEMU chr backend rather than a host or guest serial/parallel/etc device. Reported-by:
Christian Müller <christian.mueller@heig-vd.ch> Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Max Filippov authored
Quote from ISA, 2.1: For most Xtensa instructions, bit numbering is irrelevant; only the BBC and BBS instructions assign bit numbers to values on which the processor operates. The BBC/BBS instructions use big-endian bit ordering (0 is the most-significant bit) on a big-endian processor configuration. Signed-off-by:
Max Filippov <jcmvbkbc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- 27 Jul, 2012 27 commits
-
-
Jia Liu authored
Add testcases for OpenRISC. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add QEMU OpenRISC linux user support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC linux syscall, signal and termbits. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC gdb stub support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC system instructions. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add a IIS dummy board. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC timer support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC Programmable Interrupt Controller support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC instruction tanslation routines. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC float instruction helpers. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC int instruction helpers. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC exception support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC interrupt support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC MMU support. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Jia Liu authored
Add OpenRISC target stubs, QOM cpu and basic machine. Signed-off-by:
Jia Liu <proljc@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Paolo Bonzini authored
While virtio-scsi does support multiqueue, the default number of interrupt vectors is not enough to actually enable usage of multiple queues in the driver; this is because with only 2 vectors the driver will not be able to use a separate interrupt for each request queue. Derive the desired number of vectors from the number of request queues. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Probably due to bad merge months ago, virtio-scsi-pci did not have ioeventfd support. Fix this and enable it by default, as is the case for other virtio-pci devices. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
When an event is reported but no buffers are present in the event vq, we can set a flag and report a dummy event as soon as one is added. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Cong Meng authored
Implement the hotplug() and hot_unplug() interfaces in virtio-scsi, by signal the virtio_scsi.ko in guest kernel via event virtual queue. The counterpart patch of virtio_scsi.ko will be sent soon in another thread. Signed-off-by:
Sen Wang <senwang@linux.vnet.ibm.com> Signed-off-by:
Cong Meng <mc@linux.vnet.ibm.com> [ Add memset, fix LUN field, placate checkpatch - Paolo ] Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Linux will not use these, but a very similar mechanism will be used to report the condition via virtio-scsi events. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
When a device is resized, we will report a unit attention condition for CAPACITY DATA HAS CHANGED. However, we should ensure that this condition does not override a more important unit attention condition. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Cong Meng authored
Add two interfaces hotplug() and hot_unplug() to scsi bus info. The scsi bus can implement these two interfaces to signal the HBA driver of guest kernel to add/remove the scsi device in question. Signed-off-by:
Sen Wang <senwang@linux.vnet.ibm.com> Signed-off-by:
Cong Meng <mc@linux.vnet.ibm.com> [ Fixed braces and indentation - Paolo ] Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Support for the LOEJ bit of the START/STOP UNIT command right now is limited to CD-ROMs. This is wrong, since removable hard disks (in the real world: SD card readers) also support it in pretty much the same way. Without the LOEJ bit, START/STOP UNIT does nothing for all devices. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-