Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96931
b: refs/heads/master
c: b6e7b44
h: refs/heads/master
i:
  96929: 17e77e6
  96927: 64bf526
v: v3
  • Loading branch information
Sonic Zhang authored and Jeff Garzik committed May 19, 2008
1 parent 7d3f0c0 commit a985c35
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 84 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c4bab3a1aadaf4e38b2bfaf557eab74322a9fd4
refs/heads/master: b6e7b447975b0364c3430284c7b16e2e89ccf9e9
14 changes: 7 additions & 7 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2352,24 +2352,24 @@ S: Supported
KERNEL VIRTUAL MACHINE (KVM)
P: Avi Kivity
M: avi@qumranet.com
L: kvm@vger.kernel.org
W: http://kvm.qumranet.com
L: kvm-devel@lists.sourceforge.net
W: kvm.sourceforge.net
S: Supported

KERNEL VIRTUAL MACHINE (KVM) FOR POWERPC
P: Hollis Blanchard
M: hollisb@us.ibm.com
L: kvm-ppc@vger.kernel.org
W: http://kvm.qumranet.com
L: kvm-ppc-devel@lists.sourceforge.net
W: kvm.sourceforge.net
S: Supported

KERNEL VIRTUAL MACHINE For Itanium (KVM/IA64)
KERNEL VIRTUAL MACHINE For Itanium(KVM/IA64)
P: Anthony Xu
M: anthony.xu@intel.com
P: Xiantao Zhang
M: xiantao.zhang@intel.com
L: kvm-ia64@vger.kernel.org
W: http://kvm.qumranet.com
L: kvm-ia64-devel@lists.sourceforge.net
W: kvm.sourceforge.net
S: Supported

KERNEL VIRTUAL MACHINE for s390 (KVM/s390)
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/ia64/kvm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ offsets-file := asm-offsets.h
always := $(offsets-file)
targets := $(offsets-file)
targets += arch/ia64/kvm/asm-offsets.s
clean-files := $(addprefix $(objtree)/,$(targets) $(obj)/memcpy.S $(obj)/memset.S)

# Default sed regexp - multiline due to syntax constraints
define sed-y
Expand Down Expand Up @@ -53,5 +54,5 @@ EXTRA_CFLAGS_vcpu.o += -mfixed-range=f2-f5,f12-f127
kvm-intel-objs = vmm.o vmm_ivt.o trampoline.o vcpu.o optvfault.o mmio.o \
vtlb.o process.o
#Add link memcpy and memset to avoid possible structure assignment error
kvm-intel-objs += memcpy.o memset.o
kvm-intel-objs += ../lib/memset.o ../lib/memcpy.o
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
1 change: 0 additions & 1 deletion trunk/arch/ia64/kvm/memcpy.S

This file was deleted.

1 change: 0 additions & 1 deletion trunk/arch/ia64/kvm/memset.S

This file was deleted.

2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ int pit_has_pending_timer(struct kvm_vcpu *vcpu)
{
struct kvm_pit *pit = vcpu->kvm->arch.vpit;

if (pit && vcpu->vcpu_id == 0 && pit->pit_state.inject_pending)
if (pit && vcpu->vcpu_id == 0)
return atomic_read(&pit->pit_state.pit_timer.pending);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ int apic_has_pending_timer(struct kvm_vcpu *vcpu)
{
struct kvm_lapic *lapic = vcpu->arch.apic;

if (lapic && apic_enabled(lapic) && apic_lvt_enabled(lapic, APIC_LVTT))
if (lapic)
return atomic_read(&lapic->timer.pending);

return 0;
Expand Down
7 changes: 2 additions & 5 deletions trunk/arch/x86/kvm/x86_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,8 @@ static int decode_modrm(struct x86_emulate_ctxt *ctxt,
c->use_modrm_ea = 1;

if (c->modrm_mod == 3) {
c->modrm_ptr = decode_register(c->modrm_rm,
c->regs, c->d & ByteOp);
c->modrm_val = *(unsigned long *)c->modrm_ptr;
c->modrm_val = *(unsigned long *)
decode_register(c->modrm_rm, c->regs, c->d & ByteOp);
return rc;
}

Expand Down Expand Up @@ -1006,7 +1005,6 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
if ((c->d & ModRM) && c->modrm_mod == 3) {
c->src.type = OP_REG;
c->src.val = c->modrm_val;
c->src.ptr = c->modrm_ptr;
break;
}
c->src.type = OP_MEM;
Expand Down Expand Up @@ -1051,7 +1049,6 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
if ((c->d & ModRM) && c->modrm_mod == 3) {
c->dst.type = OP_REG;
c->dst.val = c->dst.orig_val = c->modrm_val;
c->dst.ptr = c->modrm_ptr;
break;
}
c->dst.type = OP_MEM;
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/ata/pata_bf54x.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,10 @@ static void bfin_bmdma_start(struct ata_queued_cmd *qc)
/* Reset all transfer count */
ATAPI_SET_CONTROL(base, ATAPI_GET_CONTROL(base) | TFRCNT_RST);

/* Set transfer length to buffer len */
/* Set ATAPI state machine contorl in terminate sequence */
ATAPI_SET_CONTROL(base, ATAPI_GET_CONTROL(base) | END_ON_TERM);

/* Set transfer length to buffer len */
for_each_sg(qc->sg, sg, qc->n_elem, si) {
ATAPI_SET_XFER_LEN(base, (sg_dma_len(sg) >> 1));
}
Expand Down
40 changes: 17 additions & 23 deletions trunk/drivers/s390/kvm/kvm_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,32 +78,27 @@ static unsigned desc_size(const struct kvm_device_desc *desc)
+ desc->config_len;
}

/* This gets the device's feature bits. */
static u32 kvm_get_features(struct virtio_device *vdev)
/*
* This tests (and acknowleges) a feature bit.
*/
static bool kvm_feature(struct virtio_device *vdev, unsigned fbit)
{
unsigned int i;
u32 features = 0;
struct kvm_device_desc *desc = to_kvmdev(vdev)->desc;
u8 *in_features = kvm_vq_features(desc);
u8 *features;

for (i = 0; i < min(desc->feature_len * 8, 32); i++)
if (in_features[i / 8] & (1 << (i % 8)))
features |= (1 << i);
return features;
}
if (fbit / 8 > desc->feature_len)
return false;

static void kvm_set_features(struct virtio_device *vdev, u32 features)
{
unsigned int i;
struct kvm_device_desc *desc = to_kvmdev(vdev)->desc;
/* Second half of bitmap is features we accept. */
u8 *out_features = kvm_vq_features(desc) + desc->feature_len;
features = kvm_vq_features(desc);
if (!(features[fbit / 8] & (1 << (fbit % 8))))
return false;

memset(out_features, 0, desc->feature_len);
for (i = 0; i < min(desc->feature_len * 8, 32); i++) {
if (features & (1 << i))
out_features[i / 8] |= (1 << (i % 8));
}
/*
* We set the matching bit in the other half of the bitmap to tell the
* Host we want to use this feature.
*/
features[desc->feature_len + fbit / 8] |= (1 << (fbit % 8));
return true;
}

/*
Expand Down Expand Up @@ -226,8 +221,7 @@ static void kvm_del_vq(struct virtqueue *vq)
* The config ops structure as defined by virtio config
*/
static struct virtio_config_ops kvm_vq_configspace_ops = {
.get_features = kvm_get_features,
.set_features = kvm_set_features,
.feature = kvm_feature,
.get = kvm_get,
.set = kvm_set,
.get_status = kvm_get_status,
Expand Down
27 changes: 13 additions & 14 deletions trunk/fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <linux/pagemap.h>
#include <linux/idr.h>
#include <linux/file.h>
#include <linux/mutex.h>
#include <linux/sctp.h>
#include <net/sctp/user.h>

Expand Down Expand Up @@ -139,7 +138,7 @@ static struct workqueue_struct *recv_workqueue;
static struct workqueue_struct *send_workqueue;

static DEFINE_IDR(connections_idr);
static DEFINE_MUTEX(connections_lock);
static DECLARE_MUTEX(connections_lock);
static int max_nodeid;
static struct kmem_cache *con_cache;

Expand Down Expand Up @@ -206,9 +205,9 @@ static struct connection *nodeid2con(int nodeid, gfp_t allocation)
{
struct connection *con;

mutex_lock(&connections_lock);
down(&connections_lock);
con = __nodeid2con(nodeid, allocation);
mutex_unlock(&connections_lock);
up(&connections_lock);

return con;
}
Expand All @@ -219,15 +218,15 @@ static struct connection *assoc2con(int assoc_id)
int i;
struct connection *con;

mutex_lock(&connections_lock);
down(&connections_lock);
for (i=0; i<=max_nodeid; i++) {
con = __nodeid2con(i, 0);
if (con && con->sctp_assoc == assoc_id) {
mutex_unlock(&connections_lock);
up(&connections_lock);
return con;
}
}
mutex_unlock(&connections_lock);
up(&connections_lock);
return NULL;
}

Expand Down Expand Up @@ -382,7 +381,7 @@ static void sctp_init_failed(void)
int i;
struct connection *con;

mutex_lock(&connections_lock);
down(&connections_lock);
for (i=1; i<=max_nodeid; i++) {
con = __nodeid2con(i, 0);
if (!con)
Expand All @@ -394,7 +393,7 @@ static void sctp_init_failed(void)
}
}
}
mutex_unlock(&connections_lock);
up(&connections_lock);
}

/* Something happened to an association */
Expand Down Expand Up @@ -931,7 +930,7 @@ static void tcp_connect_to_sock(struct connection *con)
* errors we try again until the max number of retries is reached.
*/
if (result != -EHOSTUNREACH && result != -ENETUNREACH &&
result != -ENETDOWN && result != -EINVAL
result != -ENETDOWN && result != EINVAL
&& result != -EPROTONOSUPPORT) {
lowcomms_connect_sock(con);
result = 0;
Expand Down Expand Up @@ -1418,7 +1417,7 @@ void dlm_lowcomms_stop(void)
/* Set all the flags to prevent any
socket activity.
*/
mutex_lock(&connections_lock);
down(&connections_lock);
for (i = 0; i <= max_nodeid; i++) {
con = __nodeid2con(i, 0);
if (con) {
Expand All @@ -1427,11 +1426,11 @@ void dlm_lowcomms_stop(void)
con->sock->sk->sk_user_data = NULL;
}
}
mutex_unlock(&connections_lock);
up(&connections_lock);

work_stop();

mutex_lock(&connections_lock);
down(&connections_lock);
clean_writequeues();

for (i = 0; i <= max_nodeid; i++) {
Expand All @@ -1444,7 +1443,7 @@ void dlm_lowcomms_stop(void)
}
}
max_nodeid = 0;
mutex_unlock(&connections_lock);
up(&connections_lock);
kmem_cache_destroy(con_cache);
idr_init(&connections_idr);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/dlm/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int __init dlm_netlink_init(void)
return rv;
}

void dlm_netlink_exit(void)
void __exit dlm_netlink_exit(void)
{
genl_unregister_ops(&family, &dlm_nl_ops);
genl_unregister_family(&family);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/dlm/plock.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
struct plock_xop *xop;
xop = (struct plock_xop *)op;
if (xop->callback)
dlm_plock_callback(op);
count = dlm_plock_callback(op);
else
wake_up(&recv_wq);
} else
Expand Down
12 changes: 3 additions & 9 deletions trunk/include/asm-ia64/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
*/

#include <asm/types.h>
#include <asm/fpu.h>

#include <linux/ioctl.h>

/* Architectural interrupt line count. */
#define KVM_NR_INTERRUPTS 256

#define KVM_IOAPIC_NUM_PINS 48
#define KVM_IOAPIC_NUM_PINS 24

struct kvm_ioapic_state {
__u64 base_address;
Expand Down Expand Up @@ -60,13 +61,6 @@ struct kvm_ioapic_state {

#define KVM_CONTEXT_SIZE 8*1024

struct kvm_fpreg {
union {
unsigned long bits[2];
long double __dummy; /* force 16-byte alignment */
} u;
};

union context {
/* 8K size */
char dummy[KVM_CONTEXT_SIZE];
Expand All @@ -83,7 +77,7 @@ union context {
unsigned long ibr[8];
unsigned long dbr[8];
unsigned long pkr[8];
struct kvm_fpreg fr[128];
struct ia64_fpreg fr[128];
};
};

Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-x86/kvm_x86_emulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ struct decode_cache {
u8 modrm_rm;
u8 use_modrm_ea;
unsigned long modrm_ea;
void *modrm_ptr;
unsigned long modrm_val;
struct fetch_cache fetch;
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ header-y += ixjuser.h
header-y += jffs2.h
header-y += keyctl.h
header-y += limits.h
header-y += dlm_plock.h
header-y += magic.h
header-y += major.h
header-y += matroxfb.h
Expand Down Expand Up @@ -189,7 +190,6 @@ unifdef-y += cyclades.h
unifdef-y += dccp.h
unifdef-y += dirent.h
unifdef-y += dlm.h
unifdef-y += dlm_plock.h
unifdef-y += edd.h
unifdef-y += elf.h
unifdef-y += elfcore.h
Expand Down
Loading

0 comments on commit a985c35

Please sign in to comment.